Skip to content

Commit

Permalink
Remove Prometheus metrics expiration time (#1592)
Browse files Browse the repository at this point in the history
* Remove Prometheus metrics expiration time
  • Loading branch information
vcastellm authored Jun 8, 2023
1 parent 52cae7e commit 67d4970
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/server_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ func (s *Server) setupTelemetry() error {
inm := metrics.NewInmemSink(10*time.Second, time.Minute)
metrics.DefaultInmemSignal(inm)

promSink, err := prometheus.NewPrometheusSink()
promSink, err := prometheus.NewPrometheusSinkFrom(prometheus.PrometheusOpts{
Name: "edge_prometheus_sink",
Expiration: 0,
})
if err != nil {
return err
}
Expand Down

0 comments on commit 67d4970

Please sign in to comment.