Skip to content

stats: do not show orphan metrics for stats prometheus#4921

Merged
furiel merged 2 commits intosyslog-ng:masterfrom
MrAnno:prometheus-filter-orphan
Apr 24, 2024
Merged

stats: do not show orphan metrics for stats prometheus#4921
furiel merged 2 commits intosyslog-ng:masterfrom
MrAnno:prometheus-filter-orphan

Conversation

@MrAnno
Copy link
Collaborator

@MrAnno MrAnno commented Apr 24, 2024

As the stats prometheus command is intended to be used to forward metrics to Prometheus or any other time-series database, displaying orphaned metrics should be avoided in order not to insert new data points when a given metric is no longer alive.

In case you are interested in the last known value of orphaned counters, use the stats or query subcommands.

MrAnno added 2 commits April 24, 2024 15:35
As the `stats prometheus` command is intended to be used
to forward metrics to Prometheus or any other time-series
database, displaying orphaned metrics should be avoided
in order not to insert new data points when a given metric
is no longer alive.

Signed-off-by: László Várady <[email protected]>
Signed-off-by: László Várady <[email protected]>
@MrAnno MrAnno requested a review from furiel April 24, 2024 13:37
@furiel furiel merged commit 859fb5a into syslog-ng:master Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants