The metrics file has been modified.
The original serie was set as a counter, so prometheus create it as counter.
We have modify the metrics file because the data must be traited as gauge.
Prometheus continue to treat it as a counter. So it always increase the value but in the metric file, the value move up and down.
# HELP mystat_nblead Nombre de lead
# TYPE mystat_nblead gauge
mystat_nblead {client="client1"} 172
mystat_nblead {client="client2"} 3867
mystat_nblead {client="client3"} 19409
So are you scraping these metrics via the Node Exporter textfile collector?
When you are saying the metric is always increasing in Prometheus, are you saying that the values being returned from queries don’t match what was put in the file? If you query the /metrics endpoint of the Node Exporter do you see the values you’d expect? What queries are you trying in Prometheus?