Skip to content

Commit

Permalink
internal/gateway: use prom namespace & subsystem
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmy Zelinskie <jimmy@zelinskie.com>
  • Loading branch information
jzelinskie committed Oct 25, 2021
1 parent 4e604f5 commit 66372f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/gateway/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ import (
)

var histogram = promauto.NewHistogramVec(prometheus.HistogramOpts{
Name: "spicedb_rest_gateway_request_duration_seconds",
Help: "A histogram of the duration spent processing requests to the SpiceDB REST Gateway.",
Namespace: "spicedb",
Subsystem: "rest_gateway",
Name: "request_duration_seconds",
Help: "A histogram of the duration spent processing requests to the SpiceDB REST Gateway.",
}, []string{"method"})

// Config represents the require configuration for initializing a REST gateway.
Expand Down

0 comments on commit 66372f8

Please sign in to comment.