Documentation ¶
Index ¶
Constants ¶
View Source
const Namespace = "platform"
Namespace is the global qualifier of all metrics. It should be passed to all Prometheus metric opts.
Variables ¶
View Source
var GRPCRequestDuration = promauto.NewHistogramVec( prometheus.HistogramOpts{ Namespace: Namespace, Name: "grpc_request_duration_seconds", Help: "Duration of gRPC requests in seconds.", Buckets: prometheus.LinearBuckets(0.01, 0.01, 10), }, []string{"service_id", "code", "method", "type"}, )
GRPCRequestDuration represents the duration of gRPC requests in seconds.
View Source
var GRPCRequestsTotal = promauto.NewCounterVec( prometheus.CounterOpts{ Namespace: Namespace, Name: "grpc_requests_total", Help: "Total number of gRPC requests.", }, []string{"service_id", "code", "method", "type"}, )
GRPCRequestsTotal represents the total number of gRPC requests.
View Source
var ServiceInfo = promauto.NewCounterVec( prometheus.CounterOpts{ Namespace: Namespace, Name: "service_info", Help: "Service specific information.", }, []string{"service_id", "version"}, )
ServiceInfo represents an indivdual service.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.