Add Prometheus metrics

Closes #197

Co-authored-by: haywo <haywo@nct08.de>
This commit is contained in:
Tulir Asokan
2020-06-17 17:50:06 +03:00
parent 8e30262275
commit beed19fdad
7 changed files with 370 additions and 25 deletions

View File

@ -61,6 +61,11 @@ type Config struct {
HSToken string `yaml:"hs_token"`
} `yaml:"appservice"`
Metrics struct {
Enabled bool `yaml:"enabled"`
Listen string `yaml:"listen"`
} `yaml:"metrics"`
Bridge BridgeConfig `yaml:"bridge"`
Logging appservice.LogConfig `yaml:"logging"`