Prometheus exporter config -> type_suffix needs clarification #4265
Labels
sig-issue
A specific SIG should look into this before discussing at the spec
spec:metrics
Related to the specification/metrics directory
What are you trying to achieve?
The current prometheus exporter spec suggests that there can be a configuration -
without_type_suffix
which if enabled, produces metrics withouttype_suffix
.IIUC, this only applies to
_total
that gets added in case counters are used. Unlike units, the possible values oftype_suffix
are not apparent when reading the metric metadata portion of the spec.This could cause some confusion where
type_suffix
could be confused with_bucket
or_sum
that gets added to the metrics when using histograms or summaries.What did you expect to see?
If the only possible
type_suffix
, currently is a_total
. The config option could be renamed towithout_counter_suffix
OR the spec mentions thatwithout_type_suffix
only affects Counters.I'm not sure if this is a legitimate ask, but I feel making this more explicit could be useful.
The text was updated successfully, but these errors were encountered: