mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
* Update dskit for gRPC interface change * Update vendor * Update vendor * bump dskit * update go.sum * manifest --------- Co-authored-by: javiermolinar <[email protected]>
16 lines
741 B
Go
16 lines
741 B
Go
package middleware
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
|
)
|
|
|
|
// NewInvalidClusterRequests registers and returns a new counter metric server_invalid_cluster_validation_label_requests_total, with namespace.
|
|
func NewInvalidClusterRequests(reg prometheus.Registerer, namespace string) *prometheus.CounterVec {
|
|
return promauto.With(reg).NewCounterVec(prometheus.CounterOpts{
|
|
Name: "server_invalid_cluster_validation_label_requests_total",
|
|
Namespace: namespace,
|
|
Help: "Number of requests received by server with invalid cluster validation label.",
|
|
}, []string{"protocol", "method", "cluster_validation_label", "request_cluster_validation_label"})
|
|
}
|