mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 00:36:46 +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(
|
gatewayFunctionInvocation := prometheus.NewCounterVec(
|
||||||
prometheus.CounterOpts{
|
prometheus.CounterOpts{
|
||||||
Name: "gateway_function_invocation_total",
|
Namespace: "gateway",
|
||||||
Help: "Individual function metrics",
|
Subsystem: "function",
|
||||||
|
Name: "invocation_total",
|
||||||
|
Help: "Function metrics",
|
||||||
},
|
},
|
||||||
[]string{"function_name", "code"},
|
[]string{"function_name", "code"},
|
||||||
)
|
)
|
||||||
|
|
||||||
serviceReplicas := prometheus.NewGaugeVec(
|
serviceReplicas := prometheus.NewGaugeVec(
|
||||||
prometheus.GaugeOpts{
|
prometheus.GaugeOpts{
|
||||||
Name: "gateway_service_count",
|
Namespace: "gateway",
|
||||||
Help: "Docker service replicas",
|
Name: "service_count",
|
||||||
|
Help: "Service replicas",
|
||||||
},
|
},
|
||||||
[]string{"function_name"},
|
[]string{"function_name"},
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user