[VOL-5506] Enable grpc stats
Change-Id: I9a417066c4c3f1b4974863c96ae6fa713ae932ee
Signed-off-by: Abhay Kumar <abhay.kumar@radisys.com>
diff --git a/internal/pkg/config/config.go b/internal/pkg/config/config.go
index e951584..704aa77 100644
--- a/internal/pkg/config/config.go
+++ b/internal/pkg/config/config.go
@@ -41,6 +41,7 @@
EventTopic string
LogLevel string
ProbeHost string
+ PrometheusAddress string
TraceAgentAddress string
OnuVendorIds string
AdapterEndpoint string
@@ -148,6 +149,11 @@
8080,
"The port on which to listen to answer liveness and readiness probe queries over HTTP")
+ fs.StringVar(&(so.PrometheusAddress),
+ "prometheus_port",
+ ":8081",
+ "Used for exposing the metrics to prometheus.")
+
fs.DurationVar(&(so.LiveProbeInterval),
"live_probe_interval",
60*time.Second,