Re: [prometheus-users] AlertManager firing duplicate alerts

2020-04-04 Thread Sagar
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:

Re: [prometheus-users] AlertManager firing duplicate alerts

2020-04-04 Thread Christian Hoffmann
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

Re: [prometheus-users] AlertManager firing duplicate alerts

2020-04-04 Thread Sagar
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

Re: [prometheus-users] AlertManager firing duplicate alerts

2020-04-03 Thread Christian Hoffmann
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

Re: [prometheus-users] AlertManager firing duplicate alerts

2020-04-03 Thread Sagar
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

Re: [prometheus-users] AlertManager firing duplicate alerts

2020-03-25 Thread Christian Hoffmann
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:

Re: [prometheus-users] AlertManager firing duplicate alerts

2020-03-25 Thread sunil sagar
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 > -