Skip to content

Instantly share code, notes, and snippets.

@mnanchev
Created March 2, 2022 22:56
Show Gist options
  • Save mnanchev/8658619a0f7e5075785ceade2fd15523 to your computer and use it in GitHub Desktop.
Save mnanchev/8658619a0f7e5075785ceade2fd15523 to your computer and use it in GitHub Desktop.
{
"start": "-PT3H",
"widgets": [
{
"height": 15,
"width": 24,
"y": 22,
"x": 0,
"type": "explorer",
"properties": {
"metrics": [
{
"metricName": "CPUUtilization",
"resourceType": "AWS::EC2::Instance",
"stat": "Average"
},
{
"metricName": "NetworkIn",
"resourceType": "AWS::EC2::Instance",
"stat": "Average"
},
{
"metricName": "StatusCheckFailed",
"resourceType": "AWS::EC2::Instance",
"stat": "Sum"
},
{
"metricName": "DiskReadOps",
"resourceType": "AWS::EC2::Instance",
"stat": "Average"
},
{
"metricName": "mem_used_percent",
"resourceType": "AWS::EC2::Instance",
"stat": "Average"
}
],
"aggregateBy": {
"key": "",
"func": ""
},
"labels": [
{
"key": "State",
"value": "running"
},
{
"key": "Name",
"value": "BB-ArtfundWeb-Auto"
},
{
"key": "Name",
"value": "BB-ArtfundWeb-EC1-Root"
},
{
"key": "Name",
"value": "BB-ArtfundWeb-EC2-Root"
},
{
"key": "Name",
"value": "BB-AT-Auto"
},
{
"key": "Name",
"value": "BB-AT-Root"
},
{
"key": "Name",
"value": "BB-FTP"
},
{
"key": "Name",
"value": "BB-GEARS-Auto"
},
{
"key": "Name",
"value": "BB-GEARS-Root"
},
{
"key": "Name",
"value": "BB-SAP-Auto"
},
{
"key": "Name",
"value": "BB-SAP-Root"
},
{
"key": "Name",
"value": "BB-unbooked-Auto"
},
{
"key": "Name",
"value": "BB-unbooked-Root"
},
{
"key": "Name",
"value": "BB-V3-Auto"
},
{
"key": "Name",
"value": "BB-V3-Root"
}
],
"widgetOptions": {
"legend": {
"position": "bottom"
},
"view": "singleValue",
"rowsPerPage": 2,
"widgetsPerRow": 3
},
"period": 300,
"splitBy": "",
"region": "eu-west-2",
"title": "Compute Performance"
}
},
{
"height": 3,
"width": 3,
"y": 10,
"x": 3,
"type": "metric",
"properties": {
"metrics": [
[ { "expression": "m1/m2", "label": "ErrorRate", "id": "e1", "region": "eu-west-2" } ],
[ { "expression": "SELECT SUM(HTTPCode_ELB_5XX_Count) FROM SCHEMA(\"AWS/ApplicationELB\", LoadBalancer)", "label": "Query1", "id": "q1", "region": "eu-west-2", "visible": false } ],
[ "AWS/ApplicationELB", "HTTPCode_ELB_5XX_Count", "LoadBalancer", "app/BigBangManual-AF-V3-LoadBalancer/94dfcfb5db0d5ded", { "id": "m1", "visible": false } ],
[ ".", "RequestCount", ".", ".", { "id": "m2", "visible": false } ]
],
"view": "singleValue",
"region": "eu-west-2",
"stat": "Sum",
"period": 300,
"stacked": false,
"title": "AF-V3"
}
},
{
"height": 3,
"width": 3,
"y": 10,
"x": 6,
"type": "metric",
"properties": {
"metrics": [
[ { "expression": "m3/m4", "label": "ErrorRate", "id": "e1", "region": "eu-west-2" } ],
[ { "expression": "SELECT SUM(HTTPCode_ELB_5XX_Count) FROM SCHEMA(\"AWS/ApplicationELB\", LoadBalancer)", "label": "Query1", "id": "q1", "region": "eu-west-2", "visible": false } ],
[ "AWS/ApplicationELB", "HTTPCode_ELB_5XX_Count", "LoadBalancer", "app/BigBangManual-AF-V3-LoadBalancer/94dfcfb5db0d5ded", { "id": "m1", "visible": false } ],
[ ".", "RequestCount", ".", ".", { "id": "m2", "visible": false } ],
[ ".", "HTTPCode_ELB_5XX_Count", ".", "app/BigBangManual-AT-LoadBalancer/03bafaf74b9a03c2", { "id": "m3", "visible": false } ],
[ ".", "RequestCount", ".", ".", { "id": "m4", "visible": false } ]
],
"view": "singleValue",
"region": "eu-west-2",
"stat": "Sum",
"period": 300,
"stacked": false,
"title": "AT"
}
},
{
"height": 3,
"width": 3,
"y": 10,
"x": 9,
"type": "metric",
"properties": {
"metrics": [
[ { "expression": "m6/m5", "label": "ErrorRate", "id": "e1", "region": "eu-west-2" } ],
[ { "expression": "SELECT SUM(HTTPCode_ELB_5XX_Count) FROM SCHEMA(\"AWS/ApplicationELB\", LoadBalancer)", "label": "Query1", "id": "q1", "region": "eu-west-2", "visible": false } ],
[ "AWS/ApplicationELB", "HTTPCode_ELB_5XX_Count", "LoadBalancer", "app/BigBangManual-AF-V3-LoadBalancer/94dfcfb5db0d5ded", { "id": "m1", "visible": false } ],
[ ".", "RequestCount", ".", ".", { "id": "m2", "visible": false } ],
[ ".", "HTTPCode_ELB_5XX_Count", ".", "app/BigBangManual-AT-LoadBalancer/03bafaf74b9a03c2", { "id": "m3", "visible": false } ],
[ ".", "RequestCount", ".", ".", { "id": "m4", "visible": false } ],
[ ".", "HTTPCode_ELB_5XX_Count", ".", "app/BigBangManual-Gears-LoadBalancer/790daabf22d233ff", { "id": "m6", "visible": false } ],
[ ".", "RequestCount", ".", ".", { "id": "m5", "visible": false } ]
],
"view": "singleValue",
"region": "eu-west-2",
"stat": "Sum",
"period": 300,
"stacked": false,
"title": "Gears"
}
},
{
"height": 3,
"width": 3,
"y": 10,
"x": 0,
"type": "metric",
"properties": {
"metrics": [
[ { "expression": "m7/m8", "label": "ErrorRate", "id": "e1", "region": "eu-west-2" } ],
[ { "expression": "SELECT SUM(HTTPCode_ELB_5XX_Count) FROM SCHEMA(\"AWS/ApplicationELB\", LoadBalancer)", "label": "Query1", "id": "q1", "region": "eu-west-2", "visible": false } ],
[ "AWS/ApplicationELB", "HTTPCode_ELB_5XX_Count", "LoadBalancer", "app/BigBangManual-AF-V3-LoadBalancer/94dfcfb5db0d5ded", { "id": "m1", "visible": false } ],
[ ".", "RequestCount", ".", ".", { "id": "m2", "visible": false } ],
[ ".", "HTTPCode_ELB_5XX_Count", ".", "app/BigBangManual-AT-LoadBalancer/03bafaf74b9a03c2", { "id": "m3", "visible": false } ],
[ ".", "RequestCount", ".", ".", { "id": "m4", "visible": false } ],
[ ".", "HTTPCode_Target_5XX_Count", ".", "app/BigBangManual-Gears-LoadBalancer/790daabf22d233ff", { "id": "m5", "visible": false } ],
[ ".", "HTTPCode_ELB_5XX_Count", ".", ".", { "id": "m6", "visible": false } ],
[ ".", "HTTPCode_Target_5XX_Count", ".", "app/BigBangManual-LoadBalancer/d2c374c0846ccab9", { "id": "m7", "visible": false } ],
[ ".", "RequestCount", ".", ".", { "id": "m8", "visible": false } ]
],
"view": "singleValue",
"region": "eu-west-2",
"stat": "Sum",
"period": 300,
"stacked": false,
"title": "Artfund"
}
},
{
"height": 3,
"width": 2,
"y": 10,
"x": 12,
"type": "metric",
"properties": {
"metrics": [
[ { "expression": "m9/m10", "label": "ErrorRate", "id": "e1", "region": "eu-west-2" } ],
[ { "expression": "SELECT SUM(HTTPCode_ELB_5XX_Count) FROM SCHEMA(\"AWS/ApplicationELB\", LoadBalancer)", "label": "Query1", "id": "q1", "region": "eu-west-2", "visible": false } ],
[ "AWS/ApplicationELB", "HTTPCode_ELB_5XX_Count", "LoadBalancer", "app/BigBangManual-AF-V3-LoadBalancer/94dfcfb5db0d5ded", { "id": "m1", "visible": false } ],
[ ".", "RequestCount", ".", ".", { "id": "m2", "visible": false } ],
[ ".", "HTTPCode_ELB_5XX_Count", ".", "app/BigBangManual-AT-LoadBalancer/03bafaf74b9a03c2", { "id": "m3", "visible": false } ],
[ ".", "RequestCount", ".", ".", { "id": "m4", "visible": false } ],
[ ".", "HTTPCode_Target_5XX_Count", ".", "app/BigBangManual-Gears-LoadBalancer/790daabf22d233ff", { "id": "m5", "visible": false } ],
[ ".", "HTTPCode_ELB_5XX_Count", ".", ".", { "id": "m6", "visible": false } ],
[ ".", "HTTPCode_Target_5XX_Count", ".", "app/BigBangManual-LoadBalancer/d2c374c0846ccab9", { "id": "m7", "visible": false } ],
[ ".", "RequestCount", ".", ".", { "id": "m8", "visible": false } ],
[ ".", "HTTPCode_ELB_5XX_Count", ".", "app/BigBangManual-SAP-LoadBalancer/ad7d1607b7ac0c49", { "id": "m9", "visible": false } ],
[ ".", "RequestCount", ".", ".", { "id": "m10", "visible": false } ]
],
"view": "singleValue",
"region": "eu-west-2",
"stat": "Sum",
"period": 300,
"stacked": false,
"title": "SAP"
}
},
{
"height": 3,
"width": 4,
"y": 10,
"x": 14,
"type": "metric",
"properties": {
"metrics": [
[ { "expression": "m9/m10", "label": "ErrorRate", "id": "e1", "region": "eu-west-2" } ],
[ { "expression": "SELECT SUM(HTTPCode_ELB_5XX_Count) FROM SCHEMA(\"AWS/ApplicationELB\", LoadBalancer)", "label": "Query1", "id": "q1", "region": "eu-west-2", "visible": false } ],
[ "AWS/ApplicationELB", "HTTPCode_ELB_5XX_Count", "LoadBalancer", "app/BigBangManual-AF-V3-LoadBalancer/94dfcfb5db0d5ded", { "id": "m1", "visible": false } ],
[ ".", "RequestCount", ".", ".", { "id": "m2", "visible": false } ],
[ ".", "HTTPCode_ELB_5XX_Count", ".", "app/BigBangManual-AT-LoadBalancer/03bafaf74b9a03c2", { "id": "m3", "visible": false } ],
[ ".", "RequestCount", ".", ".", { "id": "m4", "visible": false } ],
[ ".", "HTTPCode_Target_5XX_Count", ".", "app/BigBangManual-Gears-LoadBalancer/790daabf22d233ff", { "id": "m5", "visible": false } ],
[ ".", "HTTPCode_ELB_5XX_Count", ".", ".", { "id": "m6", "visible": false } ],
[ ".", "HTTPCode_Target_5XX_Count", ".", "app/BigBangManual-LoadBalancer/d2c374c0846ccab9", { "id": "m7", "visible": false } ],
[ ".", "RequestCount", ".", ".", { "id": "m8", "visible": false } ],
[ "...", "app/BigBangManual-Unbooked-LB/6a49674f51cb8482", { "id": "m10", "visible": false } ],
[ ".", "HTTPCode_Target_5XX_Count", ".", ".", { "id": "m9", "visible": false } ]
],
"view": "singleValue",
"region": "eu-west-2",
"stat": "Sum",
"period": 300,
"stacked": false,
"title": "Unbooked"
}
},
{
"height": 10,
"width": 24,
"y": 0,
"x": 0,
"type": "text",
"properties": {
"markdown": "# Load Balancers endpoints error rate\n## Check possible status code or log files according to different statuses \n\n \nStatus | Possible reason \n----|----- \n500 | You configured an AWS WAF web access control list (web ACL) and there was an error executing the web ACL rules. \n | The load balancer is unable to communicate with the IdP token endpoint or the IdP user info endpoint. Verify that the security groups for your load balancer and the network ACLs for your VPC allow outbound access to these endpoints. Verify that your VPC has internet access. If you have an internal-facing load balancer, use a NAT gateway to enable internet access.\n | Application exception\n502 | The load balancer received a TCP RST from the target when attempting to establish a connection. The keep-alive timeout of the application should be configured to be greater the the idle timeout of the ALB\n | The target response is malformed or contains HTTP headers that are not valid.\n503 | The target groups for the load balancer have no registered targets.\n504 | The network ACL for the subnet did not allow traffic from the targets to the load balancer nodes on the ephemeral ports (1024-65535).\n | The load balancer established a connection to the target but the target did not respond before the idle timeout period elapsed.\n | The target returns a content-length header that is larger than the entity body. The load balancer timed out waiting for the missing bytes.\n"
}
},
{
"height": 3,
"width": 24,
"y": 19,
"x": 0,
"type": "text",
"properties": {
"markdown": "# Performance for EC2\n- It is possible to filter running or terminated instances\n- The status check metric is also available\n- In case of terminated instances, please filter by `State` = terminated and check the metrics for memory leaks, CPU and disk issues"
}
},
{
"height": 2,
"width": 24,
"y": 37,
"x": 0,
"type": "text",
"properties": {
"markdown": "# Performance for RDS\n- Most valuable metrics to check RDS performance\n- Read and write latency should be below 1s\n- There should be no deadlock"
}
},
{
"height": 6,
"width": 24,
"y": 39,
"x": 0,
"type": "metric",
"properties": {
"metrics": [
[ "AWS/RDS", "CPUUtilization", "DBClusterIdentifier", "bigbangmanual-artfund-serverless" ],
[ "...", "bigbangmanual-atcluster-serverless" ],
[ ".", "WriteLatency", ".", "bigbangmanual-artfund-serverless" ],
[ "...", "bigbangmanual-atcluster-serverless" ],
[ ".", "ReadLatency", ".", "bigbangmanual-artfund-serverless" ],
[ "...", "bigbangmanual-atcluster-serverless" ],
[ ".", "Deadlocks", ".", "." ],
[ "...", "bigbangmanual-artfund-serverless" ]
],
"view": "singleValue",
"region": "eu-west-2",
"period": 300,
"title": "Aurora Serverless latency"
}
},
{
"height": 6,
"width": 24,
"y": 13,
"x": 0,
"type": "log",
"properties": {
"query": "SOURCE '/aws/ec2/instance/' | SOURCE '/aws/ec2/instance/AF-unbooked' | SOURCE '/aws/ec2/instance/ArtfundV3' | SOURCE '/aws/ec2/instance/ArtfundWeb' | SOURCE '/aws/ec2/instance/AT' | SOURCE '/aws/ec2/instance/Gears' | SOURCE '/aws/ec2/instance/SAP' | fields @timestamp, @message\n| sort @timestamp desc\n| limit 20",
"region": "eu-west-2",
"stacked": false,
"title": "Application logs (PHP)",
"view": "table"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment