Thank you so much for the pointer Christian.
It resolved the issue.
Thanks
Sunil Sagar
On Sun, Apr 5, 2020 at 12:58 AM Christian Hoffmann <
m...@hoffmann-christian.info> wrote:
> On 4/4/20 6:42 PM, Sagar wrote:
> > relabel_configs:
> > - action: drop
> >source_labels: [replica]
On 4/4/20 6:42 PM, Sagar wrote:
> relabel_configs:
> - action: drop
> source_labels: [replica]
> regex: (.*)
[...]
>
> For other server, replica is secondary
> I want to drop only label in alert manager , but it drops entire alert
> in alert_manager.
Ah, now I see the pr
Hi Christian,
Thank you for the helping hand .
My prometheus.yml file looks like this :
global:
external_labels:
dc: europe
replica: primary
alerting:
alertmanagers:
- static_configs:
- targets:
- am:9093
relabel_configs:
- action: drop
source_l
Hi Sunil,
On 4/3/20 6:00 PM, Sagar wrote:
> For more information , there are more global labels (such as
> environment, cluster , etc) apart from replica .
>
> Do I need to remove other global variables and maintain only one label
> as replica .
You need to drop those labels which are used to d
Hi Christian ,
Thank you for helping me on this. For some reason, I am not able to drop
these global labels .
I tried config as mentioned in link you shared .
For more information , there are more global labels (such as environment,
cluster , etc) apart from replica .
Do I need to remove other g
Hi,
you seem to be using external_labels without alert_relabel_configs to
drop this label from your alerts again. Therefore, your alerts will have
different labels and will not be de-duplicated.
See this blog post:
https://www.robustperception.io/high-availability-prometheus-alerting-and-notifica
Hi All ,
Corrected on error :
Node 2 is marked as replica2
>
> Prometheus Config:
>
> Prometheus Node1:
> global:
>external_labels:
> replica: 1
>
> alerting:
> alertmanagers:
> -static_configs:
> - targets:
> - alertmanager1:9093
> - ale
Hi ,
I have Prometheus environment in HA mode . And AlertManager is also in HA
mode .
I am receiving duplicate alerts .
When I start both the prometheus , because of global label with different
replica name , getting duplicate alert . Please advise.
Prometheus Config:
Prometheus Node1:
glo
8 matches
Mail list logo