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
On Friday, February 28, 2020 at 7:30:37 AM UTC-8, Thomas Will wrote:
>
> 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?
>
>
>
--
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/187b26d1-b360-45fd-9e55-dc8ec039b563%40googlegroups.com.