You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From Prometheus metric type: https://prometheus.io/docs/concepts/metric_types/, I know that a counter is a cumulative metric that represents a single monotonically increasing counter whose value can only increase or be reset to zero on restart. A gauge is a metric that represents a single numerical value that can arbitrarily go up and down.
Behavior:
I can saw the value of 'gateway_service_count{function_name="***"}' goes up and down, so I think the type of gateway_service_count is gauge.
And in the code, it is also be defined as a gauge.
expectedServiceReplicasGaugeDesc := Desc{fqName: "gateway_service_count", help: "Service replicas", constLabels: {}, variableLabels: [function_name]}
From Prometheus metric type: https://prometheus.io/docs/concepts/metric_types/, I know that a counter is a cumulative metric that represents a single monotonically increasing counter whose value can only increase or be reset to zero on restart. A gauge is a metric that represents a single numerical value that can arbitrarily go up and down.
Behavior:
I can saw the value of 'gateway_service_count{function_name="***"}' goes up and down, so I think the type of gateway_service_count is gauge.
And in the code, it is also be defined as a gauge.
expectedServiceReplicasGaugeDesc :=
Desc{fqName: "gateway_service_count", help: "Service replicas", constLabels: {}, variableLabels: [function_name]}
Suggestion:
Change the metric 'gateway_service_count' type to a gauge in https://docs.openfaas.com/architecture/metrics/.
Thanks.
The text was updated successfully, but these errors were encountered: