Send collected metrics from prometheus to datadog

18 views
Skip to first unread message

Thomas Will

unread,
Feb 28, 2020, 10:30:37 AM2/28/20
to Prometheus Users
Hello techies, I am currently working on Prometheus. We already have setup on datadog but we want to cut our cost and don't want to send all the metrics to datadog. Can you guys please guide me on the ways to transfer metrics collected by Prometheus to datadog? And also is there a way to apply a filter in between?


Message has been deleted

Andrey Kezikov

unread,
Feb 28, 2020, 4:22:24 PM2/28/20
to Prometheus Users
If you "scraping" prometheus through federation endpoint - you need to provide query and this query allows you to limit scopes you requesting from prometheus:

You can play with queries using curl command:
curl -G --data-urlencode 'match[]={__name__!~""}' 'http://<prometheus instance>:<port>/prometheus/federate'

This example will query for all metrics with non-empty name, what can take too much time and probably fail by timeout, so you can start with any small metric name to see results.

You can also check github issue for other usage examples: https://github.com/prometheus/prometheus/issues/1811
Reply all
Reply to author
Forward
0 new messages