Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5060

Prometheus Federation match params do not work

$
0
0

I have been trying to achive federation in my Prometheus setup. While doing this, I want to exclude some metrics to be scraped by my scraper Prometheus.

Here is my federation config:

global:  scrape_interval: 15sscrape_configs:  - job_name: 'xxxxxxxx'    scrape_interval: 15s    honor_labels: true    metrics_path: '/federate'    params:'match[]':        - '{job!="kubernetes-nodes"}'    static_configs:      - targets:        - 'my-metrics-source'

As it can be seen from the config, I want to exclude any metric that has kubernetes-nodesjob label, and retrieve the rest of the metrics. However, when I deploy my config, no metric is scraped.

Is it a bug in Prometheus or I simply misunderstood how the match params work?


Viewing all articles
Browse latest Browse all 5060

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>