Skip to content

Commit c0a6f6b

Browse files
renaming the metrics name
Signed-off-by: Rakib Hossain <rakib.hossain.ctr@sumologic.com>
1 parent bb590f6 commit c0a6f6b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

backend/apid/apid.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ type Config struct {
9292
var (
9393
RequestCount = prometheus.NewCounterVec(
9494
prometheus.CounterOpts{
95-
Name: "http_requests_total",
95+
Name: "sensu_go_http_requests_total",
9696
Help: "Total number of HTTP requests",
9797
},
9898
[]string{"method", "path"},
9999
)
100100

101101
RequestDuration = prometheus.NewHistogramVec(
102102
prometheus.HistogramOpts{
103-
Name: "http_request_duration_seconds",
103+
Name: "sensu_go_http_request_duration_seconds",
104104
Help: "Histogram of request durations",
105105
Buckets: prometheus.DefBuckets, // [0.005, 0.01, ..., 10.24]
106106
},
@@ -109,7 +109,7 @@ var (
109109

110110
ClientErrorCount = prometheus.NewCounterVec(
111111
prometheus.CounterOpts{
112-
Name: "http_client_errors_total",
112+
Name: "sensu_go_http_client_errors_total",
113113
Help: "Total number of 4xx HTTP responses",
114114
},
115115
[]string{"method", "path", "status"},

0 commit comments

Comments
 (0)