Hi ,
Just want you to verify my configuration
These are my external labels that are defined
alerts: |
{}
prometheus.yaml.tmpl: |
global:
evaluation_interval: 1m
external_labels:
region: EastUS
replica: $(POD_NAME)
tier: stg
I get alerts like
*Details:*
• *alertname:* LatencyOfFirstASR
• *locale:* pt-br
• *region:* EastUS
• *replica:* promthanos-monitoring-thanos-sts-0
• *severity:* critical
• *tier:* stg
I want to remove replica label so below is my configuration
alertRelabelConfigs:
alert_relabel_configs:
- source_labels: replica
regex: promthanos-monitoring-thanos-sts.*
action: drop
Am i doing it right ? Because when i tried , i got error that unable to
convert replica to label.name format
On Wed, Apr 29, 2020 at 3:49 PM Brian Candler <[email protected]> wrote:
> You remove it only from alerts, using alert_relabel_configs
> <https://prometheus.io/docs/prometheus/latest/configuration/configuration/#alert_relabel_configs>.
> The forum link I posted before has a working example config.
>
> --
> 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/363c41b7-96f9-4548-85bb-ab56299f7447%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/363c41b7-96f9-4548-85bb-ab56299f7447%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
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/CAPz289t8VkUqRSB3MCVPDWTb-VUhAX5kU5mus9EuCgQYJ3_Shg%40mail.gmail.com.