Skip to content

Commit

Permalink
make resource kind plural in lag histograms
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Leong <[email protected]>
  • Loading branch information
adleong committed Oct 30, 2023
1 parent 3bf21a8 commit 9de968d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions controller/api/destination/watcher/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,39 +57,39 @@ var (

endpointsliceInformerLag = promauto.NewHistogram(
prometheus.HistogramOpts{
Name: "endpointslice_informer_lag_secs",
Name: "endpointslices_informer_lag_secs",
Help: "The amount of time between when an EndpointSlice resource is updated and when an informer observes it",
Buckets: informer_lag_secs_buckets,
},
)

serviceInformerLag = promauto.NewHistogram(
prometheus.HistogramOpts{
Name: "service_informer_lag_secs",
Name: "services_informer_lag_secs",
Help: "The amount of time between when a Service resource is updated and when an informer observes it",
Buckets: informer_lag_secs_buckets,
},
)

serverInformerLag = promauto.NewHistogram(
prometheus.HistogramOpts{
Name: "server_informer_lag_secs",
Name: "servers_informer_lag_secs",
Help: "The amount of time between when a Server resource is updated and when an informer observes it",
Buckets: informer_lag_secs_buckets,
},
)

podInformerLag = promauto.NewHistogram(
prometheus.HistogramOpts{
Name: "pod_informer_lag_secs",
Name: "pods_informer_lag_secs",
Help: "The amount of time between when a Pod resource is updated and when an informer observes it",
Buckets: informer_lag_secs_buckets,
},
)

serviceProfileInformerLag = promauto.NewHistogram(
prometheus.HistogramOpts{
Name: "serviceprofile_informer_lag_secs",
Name: "serviceprofiles_informer_lag_secs",
Help: "The amount of time between when a ServiceProfile resource is updated and when an informer observes it",
Buckets: informer_lag_secs_buckets,
},
Expand Down

0 comments on commit 9de968d

Please sign in to comment.