When you requesting for /metrics endpoint - you reaching inner exporter on 
the node, what gives you information about prometheus itself as it can 
query itself for own status to save into history.

Ben proposing you to use federation endpoint to retrieve all collected 
metrics from the Prometheus, you can try it with GET request to Prometheus, 
replacing in your URL part *'/metrics*' with federation endpoint and query: 
'*/federate?match[]={__name__=~"up"}*'

It will return you all metrics for your query. You can use more broad 
regexp, but it will put huge load on prometheus itself and possible 
"out-of-time" responses, so would be better to request reduce request 
scopes to exactly what you need to see in datadog


On Friday, February 28, 2020 at 11:13:04 AM UTC-8, adi garg wrote:
>
> Hey Ben, I tried reading about federation point, but I am not able to 
> connect how it can be helpful for my problem. can you please elaborate?
>
> On Friday, February 28, 2020 at 5:36:39 PM UTC+5:30, adi garg wrote:
>>
>> Isn't there any way to do this just by using datadog conf file?
>>
>> On Friday, February 28, 2020 at 4:59:59 PM UTC+5:30, Ben Kochie wrote:
>>>
>>> Try the federation endpoint.
>>>
>>> https://prometheus.io/docs/prometheus/latest/federation/
>>>
>>> On Fri, Feb 28, 2020 at 11:56 AM adi garg <[email protected]> wrote:
>>>
>>>> Hello experts,
>>>> I need to pass the metrics collected by Prometheus to datadog, I know 
>>>> that we need to make changes in datadog's conf file present in 
>>>> openmetrics.d directory. But as Prometheus only shows metrics about it's 
>>>> own server on /metrics. How can we send them to datadog?
>>>> Thnks,
>>>> Aditya Garg
>>>>
>>>> -- 
>>>> 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/5f88afae-2716-4464-806a-69d8c67f1471%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/prometheus-users/5f88afae-2716-4464-806a-69d8c67f1471%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>

-- 
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/6a2d257c-3a83-4e0c-bbcc-76ec8f832867%40googlegroups.com.

Reply via email to