mirror of
https://github.com/openfaas/faas.git
synced 2025-06-21 09:36:33 +00:00
Renamed ServiceReplicasCounter to ServiceReplicasGauge
To avoid future confusion, this fix renames ServiceReplicasCounter to ServiceReplicasGauge. Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
This commit is contained in:
@ -13,7 +13,7 @@ import (
|
||||
type MetricOptions struct {
|
||||
GatewayFunctionInvocation *prometheus.CounterVec
|
||||
GatewayFunctionsHistogram *prometheus.HistogramVec
|
||||
ServiceReplicasCounter *prometheus.GaugeVec
|
||||
ServiceReplicasGauge *prometheus.GaugeVec
|
||||
}
|
||||
|
||||
// PrometheusHandler Bootstraps prometheus for metrics collection
|
||||
@ -47,7 +47,7 @@ func BuildMetricsOptions() MetricOptions {
|
||||
metricsOptions := MetricOptions{
|
||||
GatewayFunctionsHistogram: gatewayFunctionsHistogram,
|
||||
GatewayFunctionInvocation: gatewayFunctionInvocation,
|
||||
ServiceReplicasCounter: serviceReplicas,
|
||||
ServiceReplicasGauge: serviceReplicas,
|
||||
}
|
||||
|
||||
return metricsOptions
|
||||
|
Reference in New Issue
Block a user