mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 16:26:47 +00:00
Namespace invocation_total
This should be a "no-harm" change to use the namespace/sub- system definition for CounterOpts. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
parent
c4f924cfb5
commit
37bf15e508
@ -50,16 +50,19 @@ func BuildMetricsOptions() MetricOptions {
|
||||
|
||||
gatewayFunctionInvocation := prometheus.NewCounterVec(
|
||||
prometheus.CounterOpts{
|
||||
Name: "gateway_function_invocation_total",
|
||||
Help: "Individual function metrics",
|
||||
Namespace: "gateway",
|
||||
Subsystem: "function",
|
||||
Name: "invocation_total",
|
||||
Help: "Function metrics",
|
||||
},
|
||||
[]string{"function_name", "code"},
|
||||
)
|
||||
|
||||
serviceReplicas := prometheus.NewGaugeVec(
|
||||
prometheus.GaugeOpts{
|
||||
Name: "gateway_service_count",
|
||||
Help: "Docker service replicas",
|
||||
Namespace: "gateway",
|
||||
Name: "service_count",
|
||||
Help: "Service replicas",
|
||||
},
|
||||
[]string{"function_name"},
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user