Skip to content

Adding Prometheus serialization format#293

Open
rodoufu wants to merge 1 commit intoprometheus:masterfrom
rodoufu:patch-1
Open

Adding Prometheus serialization format#293
rodoufu wants to merge 1 commit intoprometheus:masterfrom
rodoufu:patch-1

Conversation

@rodoufu
Copy link

@rodoufu rodoufu commented Mar 17, 2026

It should add an option to fix #51

Currently metrics are generated using the OpenMetrics format https://github.com/prometheus/OpenMetrics/blob/main/specification/OpenMetrics.md#counter-1

# HELP my_counter_seconds My counter.
# TYPE my_counter_seconds counter
# UNIT my_counter_seconds seconds
my_counter_seconds_total 0
# EOF

This MR adds the ability to generate then in the Prometheus format as well.
The prometheus format does not add the _total suffix to counter metrics neither the _info to info metrics.

# HELP my_counter_seconds My counter.
# TYPE my_counter_seconds counter
# UNIT my_counter_seconds seconds
my_counter_seconds 0
# EOF

Signed-off-by: Rodolfo P A

Signed-off-by: Rodolfo P A <6721075+rodoufu@users.noreply.github.com>
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.

Metric names are incorrectly generated

1 participant