nokia / OSSMediator

BSD 3-Clause "New" or "Revised" License
10 stars 10 forks source link

alarm_notifier configuration File #46

Open vgeannin opened 3 months ago

vgeannin commented 3 months ago

Hi All,

What should we put in this file if we want to be notify for all alarms ? Does this file is enough :

webhook_url: http://localhost:8090/ alarm_sync_duration: 30 group_events: false notify_clear_event: true message_format: json

Thanks

soursing commented 3 months ago

@vgeannin Currently alarm notifier only supports alerting for specific alarms specified using below configuration.

  radio_alarm_filters:
    - specific_problem: <ALARM SPECIFIC PROBLEM>
    - specific_problem: <ALARM SPECIFIC PROBLEM>
      fault_ids:
        - <FAULT ID>
        - <FAULT ID>
  dac_alarm_filters:
    - alarm_id: <ALARM ID>
  core_alarm_filters:
    - alarm_id: <ALARM ID>

We'll add support to enable all alarm notification in next release.

soursing commented 2 months ago

Hi @vgeannin,

We've released 4.2 version that supports wildcard to enable notification for all alarms. Please refer https://github.com/nokia/OSSMediator/blob/master/OSSMediatorCollector/README.md#alarm-notification for more detail.

Example configuration to enable notification for all alarms:

 radio_alarm_filters:
    - specific_problem: *
  dac_alarm_filters:
    - alarm_id: *
  core_alarm_filters:
    - alarm_id: *