Created
July 19, 2021 09:19
-
-
Save gspncr/9af139f6ab14a7e6bd0df0cda378f004 to your computer and use it in GitHub Desktop.
SLO demo dash example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "SLO Dashboard (WebPortal)", | |
"description": "", | |
"permissions": "PRIVATE", | |
"pages": [ | |
{ | |
"name": "SLO Dashboard (WebPortal)", | |
"description": "", | |
"widgets": [ | |
{ | |
"visualization": { | |
"id": "viz.billboard" | |
}, | |
"layout": { | |
"column": 1, | |
"row": 1, | |
"height": 3, | |
"width": 4 | |
}, | |
"title": "Current Latency & Error Performance", | |
"rawConfiguration": { | |
"nrqlQueries": [ | |
{ | |
"accountId": 2664312, | |
"query": "FROM Transaction SELECT percentile(duration, 90, 95, 99), percentage(count(*), WHERE error is true) AS 'Error %' WHERE appName='WebPortal' SINCE 1 WEEK AGO" | |
} | |
] | |
}, | |
"linkedEntityGuids": null | |
}, | |
{ | |
"visualization": { | |
"id": "viz.billboard" | |
}, | |
"layout": { | |
"column": 5, | |
"row": 1, | |
"height": 3, | |
"width": 4 | |
}, | |
"title": "SLI <= 2.0s", | |
"rawConfiguration": { | |
"nrqlQueries": [ | |
{ | |
"accountId": 2664312, | |
"query": "FROM Transaction SELECT percentage(count(*), WHERE duration <= 2.0 AND error is false ) AS 'SLI %' WHERE appName = 'WebPortal'" | |
} | |
] | |
}, | |
"linkedEntityGuids": null | |
}, | |
{ | |
"visualization": { | |
"id": "viz.billboard" | |
}, | |
"layout": { | |
"column": 9, | |
"row": 1, | |
"height": 3, | |
"width": 4 | |
}, | |
"title": "SLO Attainment", | |
"rawConfiguration": { | |
"nrqlQueries": [ | |
{ | |
"accountId": 2664312, | |
"query": "FROM Transaction SELECT clamp_max((percentage(count(*), WHERE duration <= 2.0 AND error is false)/95)*100, 100) AS 'SLO % Attainment' WHERE appName = 'WebPortal'" | |
} | |
], | |
"thresholds": [ | |
{ | |
"alertSeverity": "CRITICAL", | |
"value": 0 | |
}, | |
{ | |
"alertSeverity": "WARNING", | |
"value": 0 | |
} | |
] | |
}, | |
"linkedEntityGuids": null | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment