From e7048e40511374a91d285992fd7bfa718dcc541d Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Tue, 9 May 2023 16:48:11 -0400 Subject: [PATCH] wire in environment and share handlers (#319) --- controller/controller.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controller/controller.go b/controller/controller.go index 34905ed8..706bf16f 100644 --- a/controller/controller.go +++ b/controller/controller.go @@ -49,6 +49,8 @@ func Run(inCfg *config.Config) error { api.MetadataConfigurationHandler = newConfigurationHandler(cfg) if cfg.Metrics != nil && cfg.Metrics.Influx != nil { api.MetadataGetAccountMetricsHandler = newGetAccountMetricsHandler(cfg.Metrics.Influx) + api.MetadataGetEnvironmentMetricsHandler = newGetEnvironmentMetricsHandler(cfg.Metrics.Influx) + api.MetadataGetShareMetricsHandler = newGetShareMetricsHandler(cfg.Metrics.Influx) } api.MetadataGetEnvironmentDetailHandler = newEnvironmentDetailHandler() api.MetadataGetShareDetailHandler = newShareDetailHandler()