On Monday, 4 July 2022 at 15:33:03 UTC+1 [email protected] wrote:
> From exporter:
> pooler_my_db_name_query_count{<many labels>} it doesn't have label for
> databasename, the databasename is in metric name but all '-' replaced with
> '_'
>
Ugh, that's terrible design. It should have been:
pooler_query_count{database="my-db-name",<many labels>}
I think you could use metric relabelling the other way round, to turn those
metrics into this format. (I believe you can change the __name__ label to
rename a metric; haven't tested it though)
However, you won't know whether an underscore in the metric name was
originally an underscore or a dash, unless one of <many labels> carries the
correct database name.
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/f9a42d55-14a9-4d57-a893-deac887a5ae7n%40googlegroups.com.