Hi Team,
I just want to drop the metrics from federation instnace
by enabling the relabel concept but its not success
the sample metrics is
up{container="prometheus", endpoint="9090",
exported_exported_exported_exported_exported_instance="20.xxxxx......}
up{container="prometheus", endpoint="9090",
exported_instance="20.xxxxxxx.................}
I dont want to see this metrics which is having more than 1-time
exported_exported_.* i need the metrics which contain only
exported_instance label
I have tries this
- job_name: "aws-prometheus"
metrics_path: '/federate'
honor_timestamps: true
scrape_interval: 30s
scrape_timeout: 10s
params:
'match[]':
- '{job=~".*"}'
relabel_configs:
- source_labels: [__name__]
regex: (exported_exported_.*)
action: drop
static_configs:
- targets: ["k8s-mohan.prometheus.com"]
--
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/CALSpdGkqXe8F_x751ygdzMU62WGiUSBeNkcq2T4A9vD1Gmtr9g%40mail.gmail.com.