Companion Code to an article of Dashboarding metrics
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
{ | |
"viz": "timeseries", | |
"requests": [ | |
{ | |
"q": "sum:astria.astria.api.count{$commit,$host,$environment,!respcode:200,!respcode:402,!respcode:422,!respcode:403} by {endpoint,respcode}.as_count()", | |
"type": "bars", | |
"style": { | |
"palette": "dog_classic", | |
"type": "solid", | |
"width": "normal" | |
} | |
}, | |
{ | |
"q": "sum:astria.auth.failed{$commit,$host,$environment} by {endpoint}.as_count()", | |
"type": "bars", | |
"style": { | |
"palette": "dog_classic", | |
"type": "solid", | |
"width": "normal" | |
} | |
} | |
], | |
"yaxis": { | |
"max": "auto", | |
"scale": "linear", | |
"min": "auto", | |
"label": "", | |
"includeZero": true | |
}, | |
"markers": [] | |
} |
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
{ | |
"viz": "timeseries", | |
"requests": [ | |
{ | |
"q": "sum:astria.astria.api.count{$commit,$host,$environment,!respcode:200,!respcode:402,!respcode:403,!respcode:422}.as_count()/sum:astria.astria.api.count{$commit,$host,$environment}.as_count()*100", | |
"type": "line", | |
"style": { | |
"palette": "dog_classic", | |
"type": "solid", | |
"width": "normal" | |
} | |
} | |
], | |
"yaxis": { | |
"max": "100", | |
"min": "0" | |
}, | |
"markers": [ | |
{ | |
"value": "y = 25", | |
"type": "info dashed" | |
}, | |
{ | |
"value": "y = 50", | |
"type": "warning dashed" | |
}, | |
{ | |
"value": "y = 75", | |
"type": "error dashed" | |
} | |
] | |
} |
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
{ | |
"viz": "timeseries", | |
"requests": [ | |
{ | |
"q": "max:astria.astria.api.95percentile{$commit,$host,$environment} by {endpoint}.fill(zero)/1000000", | |
"type": "line", | |
"style": { | |
"palette": "dog_classic", | |
"type": "solid", | |
"width": "normal" | |
} | |
}, | |
{ | |
"q": "autosmooth(week_before(max:astria.astria.api.95percentile{$commit,$host,$environment} by {endpoint}))/1000000", | |
"type": "line", | |
"style": { | |
"palette": "grey", | |
"type": "dotted", | |
"width": "normal" | |
} | |
} | |
], | |
"yaxis": { | |
"max": "auto", | |
"scale": "linear", | |
"min": "auto", | |
"label": "", | |
"includeZero": true | |
}, | |
"markers": [] | |
} |
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
{ | |
"viz": "timeseries", | |
"requests": [ | |
{ | |
"q": "((autosmooth(max:astria.astria.api.count{$commit,$host,$environment}.as_count().fill(zero))-autosmooth(week_before(max:astria.astria.api.count{$commit,$host,$environment}.as_count().fill(zero))))/autosmooth(week_before(max:astria.astria.api.count{$commit,$host,$environment}.as_count().fill(zero))))*100", | |
"type": "line", | |
"style": { | |
"palette": "dog_classic", | |
"type": "solid", | |
"width": "normal" | |
}, | |
"on_right_yaxis": false | |
} | |
], | |
"yaxis": { | |
"max": "auto", | |
"scale": "linear", | |
"min": "auto", | |
"label": "", | |
"includeZero": true | |
}, | |
"markers": [ | |
{ | |
"value": "y = 50", | |
"type": "info dashed" | |
}, | |
{ | |
"value": "y = 0", | |
"type": "info dashed" | |
}, | |
{ | |
"value": "y = -50", | |
"type": "error dashed" | |
}, | |
{ | |
"value": "y = 100", | |
"type": "info dashed" | |
}, | |
{ | |
"value": "y = -100", | |
"type": "info dashed" | |
} | |
] | |
} |
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
{ | |
"viz": "timeseries", | |
"requests": [ | |
{ | |
"q": "max:astria.astria.api.count{$commit,$host,$environment} by {endpoint}.as_count().fill(zero)", | |
"type": "line", | |
"style": { | |
"palette": "dog_classic", | |
"type": "solid", | |
"width": "normal" | |
}, | |
"on_right_yaxis": false | |
}, | |
{ | |
"q": "week_before(max:astria.astria.api.count{$commit,$host,$environment} by {endpoint}.as_count().fill(zero))", | |
"type": "line", | |
"style": { | |
"palette": "dog_classic", | |
"type": "dotted", | |
"width": "normal" | |
}, | |
"on_right_yaxis": false | |
} | |
], | |
"yaxis": { | |
"max": "auto", | |
"scale": "linear", | |
"min": "auto", | |
"label": "", | |
"includeZero": true | |
}, | |
"markers": [] | |
} |
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
{ | |
"viz": "timeseries", | |
"requests": [ | |
{ | |
"q": "sum:astria.astria.api.count{$commit,$environment,$host} by {endpoint}.as_rate()", | |
"type": "line", | |
"style": { | |
"palette": "dog_classic", | |
"type": "solid", | |
"width": "normal" | |
} | |
}, | |
{ | |
"q": "autosmooth(week_before(sum:astria.astria.api.count{$commit,$environment,$host} by {endpoint}.as_rate()))", | |
"type": "line", | |
"style": { | |
"palette": "dog_classic", | |
"type": "dotted", | |
"width": "normal" | |
}, | |
"on_right_yaxis": false | |
} | |
], | |
"yaxis": { | |
"max": "auto", | |
"scale": "linear", | |
"min": "auto", | |
"label": "", | |
"includeZero": true | |
}, | |
"markers": [] | |
} |
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
{ | |
"viz": "timeseries", | |
"requests": [ | |
{ | |
"q": "sum:astria.event{$commit,$host,$environment} by {type}.as_count()", | |
"type": "bars", | |
"style": { | |
"palette": "warm", | |
"type": "solid", | |
"width": "normal" | |
}, | |
"on_right_yaxis": false | |
}, | |
{ | |
"q": "sum:astria.config.err{$commit,$host,$environment}.as_count()", | |
"type": "bars", | |
"style": { | |
"palette": "warm", | |
"type": "solid", | |
"width": "normal" | |
}, | |
"on_right_yaxis": false | |
}, | |
{ | |
"q": "sum:astria.log.err{$commit,$host,$environment}.as_count()", | |
"type": "bars", | |
"style": { | |
"palette": "warm", | |
"type": "solid", | |
"width": "normal" | |
}, | |
"on_right_yaxis": false | |
}, | |
{ | |
"q": "sum:astria.log.panic{$commit,$host,$environment}.as_count()", | |
"type": "bars", | |
"style": { | |
"palette": "warm", | |
"type": "solid", | |
"width": "normal" | |
}, | |
"on_right_yaxis": false | |
}, | |
{ | |
"q": "sum:astria.log.fatal{$commit,$host,$environment}.as_count()", | |
"type": "bars", | |
"style": { | |
"palette": "warm", | |
"type": "solid", | |
"width": "normal" | |
}, | |
"on_right_yaxis": false | |
} | |
], | |
"yaxis": { | |
"max": "auto", | |
"scale": "linear", | |
"min": "auto", | |
"label": "", | |
"includeZero": true | |
}, | |
"markers": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment