summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorKeuin <[email protected]>2024-02-13 16:34:35 +0800
committerKeuin <[email protected]>2024-02-15 01:53:10 +0800
commit36bfa4aa45c8dd16e724c36684b69d8023115b76 (patch)
treebcee878981d1af49f658b305cbf05560b129efee /config
parenta89cbe5a93aede3703cd5981ea71827b55db0866 (diff)
feature: prometheus metrics exporterHEADmaster
Diffstat (limited to 'config')
-rw-r--r--config/config.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/config/config.go b/config/config.go
index 599f12c..5dfc933 100644
--- a/config/config.go
+++ b/config/config.go
@@ -14,8 +14,11 @@ type Config struct {
Prefix string `toml:"prefix"`
Proxy string `toml:"proxy"`
} `toml:"servers"`
- Debug bool `toml:"debug"`
- Listen string `toml:"listen"`
+ Debug bool `toml:"debug"`
+ Listen string `toml:"listen"`
+ Metrics struct {
+ Enabled bool `toml:"enabled"`
+ } `toml:"metrics"`
}
func (c Config) Validate() error {