From a09cf6dfff9f292b7c2236676fdc63de5a7cc341 Mon Sep 17 00:00:00 2001 From: Aaron Delaney Date: Sun, 15 Oct 2023 18:43:56 +0000 Subject: [PATCH] Make translog_size_in_bytes a gauge (#743) Signed-off-by: Aaron Delaney --- collector/nodes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/nodes.go b/collector/nodes.go index 7d648f86..364c541d 100644 --- a/collector/nodes.go +++ b/collector/nodes.go @@ -514,7 +514,7 @@ func NewNodes(logger log.Logger, client *http.Client, url *url.URL, all bool, no Labels: defaultNodeLabelValues, }, { - Type: prometheus.CounterValue, + Type: prometheus.GaugeValue, Desc: prometheus.NewDesc( prometheus.BuildFQName(namespace, "indices", "translog_size_in_bytes"), "Total translog size in bytes",