feat: prometheus metrics
This commit is contained in:
parent
c8e82d5d43
commit
afabaec45b
7 changed files with 120 additions and 17 deletions
|
@ -26,7 +26,8 @@ func LoadConfig() (*AppConfig, error) {
|
|||
viper.SetDefault("TemplateDir", "templates")
|
||||
viper.SetDefault("LogDir", "logs")
|
||||
viper.SetDefault("PasteDir", "pastes")
|
||||
viper.SetDefault("Expire", 24) // Default expiration duration in hours
|
||||
viper.SetDefault("Expire", 24) // in hours
|
||||
viper.SetDefault("Metrics", false)
|
||||
|
||||
// read the configuration file if it's present
|
||||
// goblin can also be configured through command lines during runtime
|
||||
|
|
Reference in a new issue