This utility will automatically close fully muted issues that are still open after a muting window's period ends, allowing for notifications to re-trigger for those previously muted issues.
NOTE
Host not reporting or signal loss triggered conditions will not be auto-closed. If no data is still not reporting back to New Relic post muting window, then closing that issue will not automatically re-trigger an issue. These cases are handled by writing a separate event back to New Relic, on each execution of this utility, under the SignalLossPersistAfterMutingWindow
eventType. This can be used to generate NRQL alerts and will represent data is still not reporting for any entities, after a muting period ends.
- Python3+
- requests module -
pip install requests
- New Relic user key, license key, and accountId
- Validate requirements above
- Input user/license keys and accountId into main.py
config
section - Run
python[3] main.py
It is recommended to run main.py
on a set, automated schedule - typically every 10-60 minutes. Below are helpful links to get you started, depending on your OS.
- Each execution's results are written back to NRDB, to a custom eventType
CloseMutedIssueResult
- This can be used to configure alerts or dashboards to keep track of the utility's status/results. - Logs are written to a
muting.log
file in the same directory asmain.py
- Debug logging can be enabled within
main.py
- change thelevel
tologging.DEBUG