>Ugh, that's terrible design. It should have been:
pooler_query_count{database="my-db-name",<many labels>}I'm totally agreed. But we have what we have, unfortunately понедельник, 4 июля 2022 г. в 22:55:42 UTC+3, Brian Candler: > 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/437ef80c-a5c4-4355-ba6d-dd9afe7ce52fn%40googlegroups.com.

