feat: prometheus metrics

This commit is contained in:
raf 2023-09-07 22:09:24 +03:00
commit afabaec45b
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
7 changed files with 120 additions and 17 deletions

View file

@ -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