From 9d78e8e94234fe10b29a97ea7e713f7dd9fe5db3 Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Wed, 12 Oct 2022 12:42:05 -0400 Subject: [PATCH] metrics config infrastructure (#74) --- controller/config.go | 13 +++++++------ controller/metrics.go | 12 ++++++++++++ 2 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 controller/metrics.go diff --git a/controller/config.go b/controller/config.go index adf3bf60..247460d8 100644 --- a/controller/config.go +++ b/controller/config.go @@ -7,12 +7,13 @@ import ( ) type Config struct { - Endpoint *EndpointConfig - Proxy *ProxyConfig - Email *EmailConfig - Registration *RegistrationConfig - Store *store.Config - Ziti *ZitiConfig + Endpoint *EndpointConfig + Proxy *ProxyConfig + Email *EmailConfig + Registration *RegistrationConfig + Store *store.Config + Ziti *ZitiConfig + MetricsConfig *MetricsConfig } type EndpointConfig struct { diff --git a/controller/metrics.go b/controller/metrics.go new file mode 100644 index 00000000..319ac3d2 --- /dev/null +++ b/controller/metrics.go @@ -0,0 +1,12 @@ +package controller + +type MetricsConfig struct { + Influx *InfluxConfig +} + +type InfluxConfig struct { + Url string + Bucket string + Org string + Token string +}