> May be you know any scraping proxy solutions? Could you please give a 
link?

Nothing in particular: just a few lines of code in python, go, or your 
favourite language.

You could look at an existing exporter which makes API calls behind the 
scenes, e.g.
https://github.com/prometheus-pve/prometheus-pve-exporter
 
On Friday, 8 July 2022 at 07:10:28 UTC+1 [email protected] wrote:

> >If you still need it - then write a scraping proxy (where you scrape the 
> proxy, the proxy scrapes the target, and the proxy modifies the labels in 
> whatever way you like)
>
> May be you know any scraping proxy solutions? Could you please give a link?
>
> пятница, 8 июля 2022 г. в 08:44:06 UTC+3, Aleksey Sysoev: 
>
>> 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/79884a06-f96c-456e-bf85-63161e4f681cn%40googlegroups.com.

Reply via email to