Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit 5712573

Browse files
authored
Merge pull request #45 from microservices-demo/rename-metrics
Rename HTTP metrics
2 parents 82ddab5 + b24d0d8 commit 5712573

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/cataloguesvc/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ const (
3131

3232
var (
3333
HTTPLatency = prometheus.NewHistogramVec(prometheus.HistogramOpts{
34-
Name: "request_duration_seconds",
34+
Name: "http_request_duration_seconds",
3535
Help: "Time (in seconds) spent serving HTTP requests.",
3636
Buckets: prometheus.DefBuckets,
37-
}, []string{"method", "route", "status_code", "isWS"})
37+
}, []string{"method", "path", "status_code", "isWS"})
3838
)
3939

4040
func init() {

0 commit comments

Comments
 (0)