- job_name: prometheus_openshift_prod
   honor_labels: true
   metrics_path: '/federate'
   params:
   'match
   - job_name: prometheus_openshift_prod
   honor_labels: true
   metrics_path: '/federate'
   params:
   'match[]':
   - '{job="kube-state-metrics"}'
   - '{job="kubelet"}'
   scheme: https

        static_configs:
         -targets:
           - endpoint
we made a config file in these way also  we are getting double amount of 
metrics

On Tuesday, April 14, 2020 at 9:49:06 AM UTC-5, Veera wrote:
>
> I try to scrape from a federation endpoint, which resides inside an open 
> shift cluster. The openshift-Prometheus-instance has two replicas. I am 
> getting the double amount of metrics, labeled with 
> "prometheus_replica=replica_0" and "prometheus_replica=replica_1".
>
> I would be great, if I could filter the replicas in my scrape-config.
>
>    - job_name: prometheus_openshift_prod
>    honor_labels: true
>    metrics_path: '/federate'
>    params:
>    'match[]':
>    - '{job="kube-state-metrics"}'
>    - '{job="kubelet"}'
>    - '{job="kube-controllers"}'
>    - '{job="apiserver"}'
>    - '{job="node-exporter"}'
>    - '{job="kubernetes-apiservers"}'
>    - '{name=~"job:.*"}'
>
> I use Version 2.15.0
> The problem is also described here:
>
> openshift/telemeter#151 
> <https://github.com/openshift/telemeter/issues/151>
>

-- 
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/061683ae-d93a-4116-8ac9-08ea09d04cf8%40googlegroups.com.

Reply via email to