From 36bfa4aa45c8dd16e724c36684b69d8023115b76 Mon Sep 17 00:00:00 2001 From: Keuin Date: Tue, 13 Feb 2024 16:34:35 +0800 Subject: feature: prometheus metrics exporter --- config/config.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'config/config.go') 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 { -- cgit v1.2.3