I guess your scrape config has some static labels like environment: prod,
region: central, etc. so add another static label with cluster name. Then
do a label replacement on your alert query to replace the instance value to
your cluster name. Then you have 1 instance name for the entire cluster. If
you want to add your vhost to it then try label_join which can add your
vhost name to the instance label.


On Thu, Jun 4, 2020, 12:48 PM '[email protected]' via Prometheus Users <
[email protected]> wrote:

> +1
>
> We get the same alert multiple times in the same email, because the
> monitor label (prometheus instance) being different for our simple
> replicated setup. Would be nice to be able to ignore certain labels so that
> alert bodies are higher signal.
>
> On Thursday, May 9, 2019 at 11:29:58 AM UTC-4, [email protected] wrote:
>>
>> Did you ever find a solution for this? I'm looking at the exact same
>> issue.
>>
>> // Tommy
>>
>> Den måndag 26 februari 2018 kl. 09:45:29 UTC+1 skrev Robin Ong:
>>>
>>> Hi all,
>>>
>>> I have a question regarding filtering messages to prevent getting
>>> multiple alerts on same error.
>>>
>>> *Case:*
>>> I have a rabbitMQ cluster that has 3 nodes. Each running on a different
>>> server. This rabbitMQ cluster duplicates the messages on a queue to all
>>> instances.
>>> So when an Error hits an Error queue I receive 3 alerts for each
>>> instance. The only value that makes each error unique is the instance value.
>>>
>>> I would like Alert Manager to just look at VHOST and queue name. This
>>> way I should only get 1 alert?
>>>
>>>
>>> Do you guys know a solution?
>>>
>>> Regards in advance.
>>>
>>>
>>> --
> 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/ffdeacd5-4bf8-48dc-83ab-a0e06869fc2f%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/ffdeacd5-4bf8-48dc-83ab-a0e06869fc2f%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/CAKimyZuKvHeWqthHd1Rfd-FBme9EW8PLt29bPaQXi_3OMthpkg%40mail.gmail.com.

Reply via email to