Skip to content

Instantly share code, notes, and snippets.

@wolfeidau
Last active October 14, 2019 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wolfeidau/ebfc8edfeee4edfbede9c0c45d448157 to your computer and use it in GitHub Desktop.
Save wolfeidau/ebfc8edfeee4edfbede9c0c45d448157 to your computer and use it in GitHub Desktop.
Cloudwatch Dashboard for Appsync which shows 500 Errors as Percentage of Total Requests
{
"metrics": [
[ { "expression": "(m2/m1)*100", "label": "percentage", "id": "e1", "yAxis": "right" } ],
[ "AWS/AppSync", "5XXError", "GraphQLAPIId", "XXXXX", { "label": "5xx errors", "id": "m2" } ],
[ "...", { "stat": "SampleCount", "label": "total requests", "id": "m1" } ]
],
"region": "ap-southeast-2",
"title": "500 Errors as Percentage of Total Requests",
"stat": "Sum",
"yAxis": {
"left": {
"label": "Count",
"showUnits": false
},
"right": {
"min": 0,
"max": 100
}
},
"view": "timeSeries",
"stacked": false,
"annotations": {
"horizontal": [
{
"label": "goal",
"value": 1
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment