Skip to content

Commit

Permalink
Add help text for metrics.
Browse files Browse the repository at this point in the history
  • Loading branch information
wi1dcard committed Apr 19, 2024
1 parent 21a2725 commit b9869b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/fingerprint/header_injector.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func RegisterDurationMetric(registry *prometheus.Registry, buckets []float64, pr
Namespace: prefix,
Name: "fingerprint_duration_seconds",
Buckets: buckets,
Help: "The duration of fingerprinting requests in seconds",
}, []string{"ok", "header_name"})
}

Expand Down
1 change: 1 addition & 0 deletions pkg/proxyserver/proxyserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ func (server *Server) registerMetrics() {
server.metricRequestsTotal = pm.NewCounterVec(prometheus.CounterOpts{
Namespace: prefix,
Name: "requests_total",
Help: "The total number of requests processed by fingerproxy",
}, []string{"ok", "negotiated_protocol"})

// ...
Expand Down

0 comments on commit b9869b3

Please sign in to comment.