remove legacy v0.3 metrics infrastructure (#128)

This commit is contained in:
Michael Quigley
2023-03-07 12:57:35 -05:00
parent 84bd7d391a
commit df4c52aae5
15 changed files with 25 additions and 600 deletions

View File

@ -15,7 +15,6 @@ import (
var cfg *Config
var str *store.Store
var mtr *metricsAgent
var idb influxdb2.Client
func Run(inCfg *Config) error {
@ -67,15 +66,6 @@ func Run(inCfg *Config) error {
idb = influxdb2.NewClient(cfg.Influx.Url, cfg.Influx.Token)
}
if cfg.Metrics != nil {
mtr = newMetricsAgent()
go mtr.run()
defer func() {
mtr.stop()
mtr.join()
}()
}
ctx, cancel := context.WithCancel(context.Background())
defer func() {
cancel()