Yandex

среда, 6 июля 2022 г. в 13:59:25 UTC+3, Brian Candler: 

> So which cloud exporter is it? (So I can avoid that cloud :-)
>
> On Wednesday, 6 July 2022 at 09:29:23 UTC+1 [email protected] wrote:
>
>> >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/04260f63-bfd9-4637-844e-7652edeebb47n%40googlegroups.com.

Reply via email to