Updated version that fixes the cause codes displayed in the "Top Alarms" bar chart and table views. You can also just make the changes instead of uploading a new dashboard:
In the Top Alarms bar chart view, change alarminfo.model_h to alarminfo.cause:
SELECT
count(alarminfo.alarm_title_id) as "Count",
alarmcondition.condition_name,
alarmtitle.title,
hex(alarminfo.model_h) as "PCauseCode"
FROM reporting.alarminfo alarminfo
INNER JOIN reporting.landscape landscape
to
SELECT
count(alarminfo.alarm_title_id) as "Count",
alarmcondition.condition_name,
alarmtitle.title,
hex(alarminfo.cause) as "PCauseCode"
FROM reporting.alarminfo alarminfo
INNER JOIN reporting.landscape landscape
Similar in the Top Alarm table view:
SELECT
count(alarminfo.alarm_title_id) as "Count",
alarmcondition.condition_name,
alarmtitle.title,
hex(alarminfo.model_h) as "PCauseCode"
FROM reporting.alarminfo alarminfo
INNER JOIN reporting.landscape landscape
ON alarminfo.landscape_h = landscape.landscape_h
to
SELECT
count(alarminfo.alarm_title_id) as "Count",
alarmcondition.condition_name,
alarmtitle.title,
concat("0x",hex(alarminfo.cause)) as "PCauseCode"
FROM reporting.alarminfo alarminfo
INNER JOIN reporting.landscape landscape
ON alarminfo.landscape_h = landscape.landscape_h
This gives us not only the correct cause code but provides the familiar 0x prefix for hex values. Enjoy!
Original Message:
Sent: 11-19-2020 03:41 PM
From: ROBERT KETTLES
Subject: Alarm Analytics with DX Spectrum and Grafana
Hello,
These are the materials from the September 22, 2020 "AIOps Office Hour for NetOps Solution from Broadcom" session. The zip file contains the JSON file to import into Grafana.