Hello again,
Sorry for so many queries but i am a newbie to prometheus .
I am running alertmanager in cluster.
Problem is both alert managers are sending alerts and due to this
duplication is happening.
Below is my configuration
Cluster-peer-timeout = 25s
global:
resolve_timeout: 12h
slack_api_url: '
https://hooks.slack.com/services/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
'
route:
receiver: "alertnow"
group_by: [alertname,locale]
group_wait: 5m
group_interval: 1m
repeat_interval: 1h
Please suggest some idea to remove duplication
I am getting alerts like this
[FIRING:2] Cloud|Azure|Monitoring Event Notification
<http://localhost:9093/#/alerts?receiver=alertnow>
*Alert:* LatencyOfFirstASR in es-US is high - critical
*Description:* LatencyOfFirstASR is high . Current value is 6144 ms
*Details:*
• *alertname:* LatencyOfFirstASR
• *locale:* es-US
• *region:* EastUS
• *replica:* *promthanos-monitoring-thanos-sts-0*
• *severity:* critical
• *tier:* stg
*Alert:* LatencyOfFirstASR in es-US is high - critical
*Description:* LatencyOfFirstASR is high . Current value is 6144 ms
*Details:*
• *alertname:* LatencyOfFirstASR
• *locale:* es-US
• *region:* EastUS
• *replica:* *promthanos-monitoring-thanos-sts-1*
• *severity:* critical
• *tier:* stg
On Wed, Apr 29, 2020 at 12:56 AM Brian Candler <[email protected]> wrote:
> You haven't shown real examples of what these metrics look like. I'm
> guessing you're not talking about metric names, but label values.
>
> If you want to filter out metrics which have particular labels or label
> patterns, then you need to use metric_relabeling
> <https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs>
> - although it's better to fix your exporters not to generate the bad
> metrics in the first place.
>
> --
> 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/17f066f8-49d0-484a-800b-2d872cd2dc79%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/17f066f8-49d0-484a-800b-2d872cd2dc79%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/CAPz289uEQxu6z3pf2RD%2Bc-bEmcQJ51rz9-HtM098aVEePA%2BgCw%40mail.gmail.com.