client_java icon indicating copy to clipboard operation
client_java copied to clipboard

add option to disable metric suffixes

Open zeitlinger opened this issue 5 months ago • 1 comments

Fixes #1555

Note: also add the flag to protobuf writer

zeitlinger avatar Sep 08 '25 11:09 zeitlinger

I think we should not continue with this before we have consensus in the Prometheus team on whether the exposition format should be determined at deploy time, or at scrape time via the Accept header. I put this on the agenda for the Prometheus dev summit.

If we decide on a deploy time config for suffixes we should at least allow users to explicitly use a suffix if they want. If a user explicitly creates a counter named requests_total it should not be renamed to requests, independent of config options.

Also note that some metric types like Histograms and Summaries will still require suffixes in text format.

fstab avatar Sep 09 '25 07:09 fstab