diff --git a/grafana/non-prod/docker/Dockerfile b/grafana/non-prod/docker/Dockerfile new file mode 100644 index 000000000..a92eed305 --- /dev/null +++ b/grafana/non-prod/docker/Dockerfile @@ -0,0 +1,40 @@ +# Use the official Grafana image +FROM grafana/grafana:latest + +# Install Python +USER root +RUN echo "Installing Python..." \ + && apk add --no-cache python3 py3-pip \ + && echo "Python installed successfully." + +# set timeout for plugin installation +ENV GF_INSTALL_PLUGINS_TIMEOUT=6000 +ENV GF_UPDATE_CHECK=false + +# Install Grafana plugins +RUN echo "Installing plugins..." \ + && grafana-cli plugins install grafana-lokiexplore-app \ + && grafana-cli plugins install grafana-pyroscope-app + +# Copy custom grafana.ini configuration file +COPY ./grafana.ini /etc/grafana/grafana.ini + +# Copy provisioning and dashboards +RUN echo "=========\n\n\n\Copying provisioning files..." +COPY ./provisioning /etc/grafana/provisioning +RUN echo "Provisioning files copied." + +RUN echo "Copying dashboard files..." +COPY ./dashboards /var/lib/grafana/dashboards +RUN echo "Dashboard files copied." + +COPY run.sh /run.sh +RUN chmod +x /run.sh + +# Expose Grafana port +EXPOSE 3000 + +# Switch to the non-root user provided by the base image +USER grafana + +ENTRYPOINT ["/run.sh"] diff --git a/grafana/non-prod/docker/build_push_to_ecr.sh b/grafana/non-prod/docker/build_push_to_ecr.sh new file mode 100755 index 000000000..8b4d11989 --- /dev/null +++ b/grafana/non-prod/docker/build_push_to_ecr.sh @@ -0,0 +1,64 @@ +#!/bin/bash + +# Set variables + +dirname=$(dirname "$0") +DOCKERFILE_DIR=$(realpath "$dirname") +echo "DOCKERFILE_DIR: $DOCKERFILE_DIR" + +AWS_REGION="eu-west-2" +ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text) +REPOSITORY_NAME="imms-fhir-api-grafana" +IMAGE_TAG="11.0.0-22.04_stable" +LOCAL_IMAGE_NAME="$REPOSITORY_NAME:$IMAGE_TAG" +IMAGE_NAME="$ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/$LOCAL_IMAGE_NAME" +TAGS="Key=Environment,Value=non-prod Key=Project,Value=immunisation-fhir-api-grafana" +LIFECYCLE_POLICY_FILE="lifecycle-policy.json" + +# Change to the directory containing the Dockerfile +cd $DOCKERFILE_DIR + +# Check if Dockerfile exists +if [ ! -f Dockerfile ]; then + echo "Dockerfile not found in the current directory." + exit 1 +fi + +# Create ECR repository if it does not exist +aws ecr describe-repositories --repository-names $REPOSITORY_NAME --region $AWS_REGION > /dev/null 2>&1 + +if [ $? -ne 0 ]; then + echo "Creating ECR repository: $REPOSITORY_NAME" + aws ecr create-repository --repository-name $REPOSITORY_NAME --region $AWS_REGION + # Add tags to the repository + aws ecr tag-resource --resource-arn arn:aws:ecr:$AWS_REGION:$ACCOUNT_ID:repository/$REPOSITORY_NAME --tags $TAGS +fi + +# Apply lifecycle policy to the ECR repository +aws ecr put-lifecycle-policy --repository-name $REPOSITORY_NAME --lifecycle-policy-text file://$LIFECYCLE_POLICY_FILE --region $AWS_REGION + +printf "Building and pushing Docker image to ECR...\n" +# Authenticate Docker to ECR +aws ecr get-login-password --region $AWS_REGION | docker login --username AWS --password-stdin $ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com + +printf "Building Docker image...\n" +# Remove existing Docker image if it exists +docker rmi $IMAGE_NAME --force + +# Pull the base image for linux/amd64 architecture +docker pull --platform linux/amd64 grafana/grafana:latest + +# Build Docker image for linux/amd64 architecture and push to ECR +docker buildx create --use +docker buildx build --platform linux/amd64 -t $IMAGE_NAME --push . + +# Check if the build was successful +if [ $? -ne 0 ]; then + echo "Docker build failed." + exit 1 +fi + +# Inspect the built image +echo "Image: $LOCAL_IMAGE_NAME" + +echo "Docker image built and pushed to ECR successfully." \ No newline at end of file diff --git a/grafana/non-prod/docker/dashboards/APIGateway_rev11.json b/grafana/non-prod/docker/dashboards/APIGateway_rev11.json new file mode 100644 index 000000000..39fa4a2ac --- /dev/null +++ b/grafana/non-prod/docker/dashboards/APIGateway_rev11.json @@ -0,0 +1,1100 @@ +{ + "__inputs": [], + "__requires": [ + { + "type": "datasource", + "id": "cloudwatch", + "name": "CloudWatch", + "version": "1.0.0" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "7.1.5" + }, + { + "type": "panel", + "id": "graph", + "name": "Graph", + "version": "" + }, + { + "type": "panel", + "id": "text", + "name": "Text", + "version": "7.1.0" + } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "description": "Visualize AWS API Gateway metrics", + "editable": false, + "gnetId": 1516, + "graphTooltip": 0, + "id": null, + "iteration": 1601391274139, + "links": [], + "panels": [ + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 0 + }, + "hiddenSeries": false, + "id": 7, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sort": "current", + "sortDesc": true, + "total": true, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null as zero", + "percentage": false, + "pluginVersion": "7.1.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "Latency_Average", + "yaxis": 2 + }, + { + "alias": "TargetResponseTime_Average", + "yaxis": 2 + }, + { + "alias": "ClientConnections_Sum", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "ApiName": "$apiname", + "Stage": "$stage" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "matchExact": true, + "metricName": "Count", + "mode": 0, + "namespace": "AWS/ApiGateway", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "A", + "region": "$region", + "statistics": [ + "Sum" + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Count", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:124", + "format": "none", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "$$hashKey": "object:125", + "format": "none", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": false + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 7 + }, + "hiddenSeries": false, + "id": 14, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sort": "current", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null as zero", + "percentage": false, + "pluginVersion": "7.1.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "Latency_Average", + "yaxis": 1 + }, + { + "alias": "TargetResponseTime_Average", + "yaxis": 2 + }, + { + "alias": "ClientConnections_Sum", + "yaxis": 2 + }, + { + "alias": "IntegrationLatency_Average", + "yaxis": 2 + }, + { + "alias": "IntegrationLatency", + "yaxis": 2 + }, + { + "alias": "IntegrationLatency Average", + "yaxis": 1 + }, + { + "alias": "Latency Maximum", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "ApiName": "$apiname", + "Stage": "$stage" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "metricName": "Latency", + "mode": 0, + "namespace": "AWS/ApiGateway", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "A", + "region": "$region", + "statistics": [ + "Average" + ] + }, + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "ApiName": "$apiname", + "Stage": "$stage" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "metricName": "IntegrationLatency", + "mode": 0, + "namespace": "AWS/ApiGateway", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "B", + "region": "$region", + "statistics": [ + "Average" + ] + }, + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "ApiName": "$apiname", + "Stage": "$stage" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "metricName": "Latency", + "mode": 0, + "namespace": "AWS/ApiGateway", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "C", + "region": "$region", + "statistics": [ + "Maximum" + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Latency / IntegrationLatency", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "ms", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "ms", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": { + "4XXError Sum": "#e24d42", + "5XXError Sum": "#ef843c" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 14 + }, + "hiddenSeries": false, + "id": 15, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sort": "current", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null as zero", + "percentage": false, + "pluginVersion": "7.1.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "Total Error Rate", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "ApiName": "$apiname", + "Stage": "$stage" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "e400", + "item": { + "filter": "" + }, + "metricName": "4XXError", + "mode": 0, + "namespace": "AWS/ApiGateway", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "A", + "region": "$region", + "statistics": [ + "Sum" + ] + }, + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "ApiName": "$apiname", + "Stage": "$stage" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "e500", + "item": { + "filter": "" + }, + "metricName": "5XXError", + "mode": 0, + "namespace": "AWS/ApiGateway", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "B", + "region": "$region", + "statistics": [ + "Sum" + ] + }, + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "ApiName": "$apiname", + "Stage": "$stage" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "hide": true, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "countt", + "item": { + "filter": "" + }, + "metricName": "Count", + "mode": 0, + "namespace": "AWS/ApiGateway", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "E", + "region": "$region", + "statistics": [ + "Sum" + ] + }, + { + "alias": "Total Error Rate", + "application": { + "filter": "" + }, + "dimensions": { + "ApiName": "$apiname", + "Stage": "$stage" + }, + "expression": "SUM([e400,e500])*100/countt", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "rate", + "item": { + "filter": "" + }, + "metricName": "Count", + "mode": 0, + "namespace": "AWS/ApiGateway", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "D", + "region": "$region", + "statistics": [ + "Sum" + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "4XXError / 5XXError", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "none", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "percent", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 21 + }, + "hiddenSeries": false, + "id": 16, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sort": "current", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null as zero", + "percentage": false, + "pluginVersion": "7.1.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "Latency_Average", + "yaxis": 1 + }, + { + "alias": "TargetResponseTime_Average", + "yaxis": 2 + }, + { + "alias": "ClientConnections_Sum", + "yaxis": 2 + }, + { + "alias": "IntegrationLatency_Average", + "yaxis": 2 + }, + { + "alias": "5XXError_Average", + "yaxis": 2 + }, + { + "alias": "CacheHitCount Sum", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "ApiName": "$apiname", + "Stage": "$stage" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "matchExact": true, + "metricName": "CacheHitCount", + "mode": 0, + "namespace": "AWS/ApiGateway", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "A", + "region": "$region", + "statistics": [ + "Sum" + ] + }, + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "ApiName": "$apiname", + "Stage": "$stage" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "matchExact": true, + "metricName": "CacheMissCount", + "mode": 0, + "namespace": "AWS/ApiGateway", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "B", + "region": "$region", + "statistics": [ + "Sum" + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "CacheHitCount / CacheMissCount", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:207", + "format": "none", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "$$hashKey": "object:208", + "format": "none", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "content": "\nAWS CloudWatch API Gateway documentation
\nInstalled from Grafana.com dashboards\n
", + "datasource": "", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 24, + "x": 0, + "y": 28 + }, + "id": 2, + "links": [], + "mode": "html", + "options": { + "content": " | \nAWS CloudWatch API Gateway documentation | \nInstalled from Grafana.com dashboards", + "mode": "html" + }, + "pluginVersion": "7.1.0", + "title": "Documentation", + "type": "text" + } + ], + "refresh": false, + "schemaVersion": 26, + "style": "dark", + "tags": [ + "monitoringartist", + "cloudwatch" + ], + "templating": { + "list": [ + { + "current": {}, + "hide": 0, + "includeAll": false, + "label": "Datasource", + "multi": false, + "name": "datasource", + "options": [], + "query": "cloudwatch", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "auto": true, + "auto_count": 30, + "auto_min": "10s", + "current": { + "selected": true, + "text": "auto", + "value": "$__auto_interval_agg" + }, + "hide": 0, + "label": "Aggregation", + "name": "agg", + "options": [ + { + "selected": true, + "text": "auto", + "value": "$__auto_interval_agg" + }, + { + "selected": false, + "text": "1s", + "value": "1s" + }, + { + "selected": false, + "text": "5s", + "value": "5s" + }, + { + "selected": false, + "text": "10s", + "value": "10s" + }, + { + "selected": false, + "text": "30s", + "value": "30s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "15m", + "value": "15m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" + }, + { + "selected": false, + "text": "7d", + "value": "7d" + }, + { + "selected": false, + "text": "30d", + "value": "30d" + } + ], + "query": "1s,5s,10s,30s,1m,5m,15m,1h,6h,1d,7d,30d", + "refresh": 2, + "skipUrlSync": false, + "type": "interval" + }, + { + "allValue": null, + "current": {}, + "datasource": "$datasource", + "definition": "regions()", + "hide": 0, + "includeAll": false, + "label": "Region", + "multi": false, + "name": "region", + "options": [], + "query": "regions()", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": {}, + "datasource": "$datasource", + "definition": "dimension_values($region,AWS/ApiGateway,Count,ApiName)", + "hide": 0, + "includeAll": false, + "label": "ApiName", + "multi": false, + "name": "apiname", + "options": [], + "query": "dimension_values($region,AWS/ApiGateway,Count,ApiName)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": "*", + "current": {}, + "datasource": "$datasource", + "definition": "dimension_values($region,AWS/ApiGateway,Count,Stage, {\"ApiName\": \"$apiname\"})", + "hide": 0, + "includeAll": false, + "label": "AND Stage", + "multi": false, + "name": "stage", + "options": [], + "query": "dimension_values($region,AWS/ApiGateway,Count,Stage, {\"ApiName\": \"$apiname\"})", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { + "from": "now-7d", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "timezone": "browser", + "title": "AWS API Gateway", + "uid": "AWSAPIGat", + "version": 1 +} \ No newline at end of file diff --git a/grafana/non-prod/docker/dashboards/CWLogs_rev1.json b/grafana/non-prod/docker/dashboards/CWLogs_rev1.json new file mode 100644 index 000000000..b15f06a1c --- /dev/null +++ b/grafana/non-prod/docker/dashboards/CWLogs_rev1.json @@ -0,0 +1,629 @@ +{ + "__inputs": [ + { + "name": "DS_CLOUDWATCH", + "label": "cloudwatch", + "description": "", + "type": "datasource", + "pluginId": "cloudwatch", + "pluginName": "CloudWatch" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "datasource", + "id": "cloudwatch", + "name": "CloudWatch", + "version": "1.0.0" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "10.3.0-64796" + }, + { + "type": "panel", + "id": "logs", + "name": "Logs", + "version": "" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "description": "An AWS CloudWatch logs dashboard, for fetching CloudWatch logs by log groups with the possibility of searching by any terms to filter the log results (the log result contains all the metadata needed to debug: requestId, timestamp, logStream, ...).\r\nThe dashboard contains the following:\r\n- Log results panel\r\n- Log results distribution panel\r\n- Total results panel\r\n- Incoming log events distribution panel\r\n- Total incoming log events panel", + "editable": true, + "fiscalYearStartMonth": 0, + "gnetId": 20303, + "graphTooltip": 0, + "id": null, + "links": [], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "DS_CLOUDWATCH" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short", + "unitScale": true + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 18, + "x": 0, + "y": 0 + }, + "id": 4, + "interval": "5m", + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "10.3.0-64796", + "targets": [ + { + "alias": "Log events", + "datasource": { + "type": "cloudwatch", + "uid": "DS_CLOUDWATCH" + }, + "dimensions": { + "LogGroupName": "$log_group_name" + }, + "expression": "", + "id": "", + "label": "Log events", + "matchExact": true, + "metricEditorMode": 0, + "metricName": "IncomingLogEvents", + "metricQueryType": 0, + "namespace": "AWS/Logs", + "period": "", + "queryMode": "Metrics", + "refId": "A", + "region": "default", + "statistic": "Sum" + } + ], + "title": "Events timeline", + "type": "timeseries" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "DS_CLOUDWATCH" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unitScale": true + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 6, + "x": 18, + "y": 0 + }, + "id": 6, + "options": { + "colorMode": "background", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": ["sum"], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.3.0-64796", + "targets": [ + { + "alias": "", + "datasource": { + "type": "cloudwatch", + "uid": "DS_CLOUDWATCH" + }, + "dimensions": { + "LogGroupName": "$log_group_name" + }, + "expression": "", + "id": "", + "label": "", + "matchExact": true, + "metricEditorMode": 0, + "metricName": "IncomingLogEvents", + "metricQueryType": 0, + "namespace": "AWS/Logs", + "period": "", + "refId": "A", + "region": "default", + "statistic": "Average" + } + ], + "title": "Total events", + "type": "stat" + }, + { + "datasource": { + "type": "datasource", + "uid": "-- Dashboard --" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 70, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unitScale": true + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 18, + "x": 0, + "y": 5 + }, + "id": 7, + "options": { + "legend": { + "calcs": [], + "displayMode": "hidden", + "placement": "right", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "datasource", + "uid": "-- Dashboard --" + }, + "panelId": 2, + "refId": "A" + } + ], + "title": "Searched Events Timeline", + "transformations": [ + { + "id": "calculateField", + "options": { + "binary": { + "left": "@requestId" + }, + "mode": "reduceRow", + "reduce": { + "include": ["@log"], + "reducer": "count" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "@log": true, + "@logStream": true, + "@message": true, + "@requestId": true, + "Time": false, + "__log__grafana_internal__": true, + "__logstream__grafana_internal__": true + }, + "includeByName": {}, + "indexByName": {}, + "renameByName": {} + } + }, + { + "disabled": true, + "id": "heatmap", + "options": { + "xBuckets": { + "mode": "size" + }, + "yBuckets": { + "mode": "size", + "scale": { + "type": "linear" + }, + "value": "" + } + } + }, + { + "disabled": true, + "id": "groupBy", + "options": { + "fields": { + "Count": { + "aggregations": ["count"], + "operation": "aggregate" + }, + "Time": { + "aggregations": [], + "operation": "groupby" + } + } + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "datasource", + "uid": "-- Dashboard --" + }, + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "short", + "unitScale": true + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 6, + "x": 18, + "y": 5 + }, + "id": 8, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": ["sum"], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.3.0-64796", + "targets": [ + { + "datasource": { + "type": "datasource", + "uid": "-- Dashboard --" + }, + "panelId": 2, + "refId": "A" + } + ], + "title": "Total Searched Events", + "transformations": [ + { + "id": "calculateField", + "options": { + "binary": { + "left": "@requestId" + }, + "mode": "reduceRow", + "reduce": { + "include": ["@log"], + "reducer": "count" + }, + "replaceFields": true + } + }, + { + "disabled": true, + "id": "heatmap", + "options": { + "xBuckets": { + "mode": "size" + }, + "yBuckets": { + "mode": "size", + "scale": { + "type": "linear" + }, + "value": "" + } + } + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "DS_CLOUDWATCH" + }, + "gridPos": { + "h": 15, + "w": 24, + "x": 0, + "y": 10 + }, + "id": 2, + "options": { + "dedupStrategy": "none", + "enableLogDetails": true, + "prettifyLogMessage": false, + "showCommonLabels": false, + "showLabels": false, + "showTime": true, + "sortOrder": "Descending", + "wrapLogMessage": false + }, + "pluginVersion": "7.4.2", + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "DS_CLOUDWATCH" + }, + "expression": "fields @timestamp, @message, @requestId, @logStream, @log\n| filter @message like /(?i)$search/\n| sort @timestamp desc\n#| limit 20", + "id": "", + "logGroups": [ + { + "arn": "$log_group_name", + "name": "$log_group_name" + } + ], + "namespace": "", + "queryMode": "Logs", + "refId": "A", + "region": "default", + "statsGroups": [] + } + ], + "title": "Logs", + "transformations": [ + { + "id": "calculateField", + "options": { + "index": { + "asPercentile": false + }, + "mode": "index", + "reduce": { + "reducer": "sum" + }, + "replaceFields": false + } + } + ], + "type": "logs" + } + ], + "refresh": "", + "schemaVersion": 39, + "tags": ["AWS", "Amazon", "CloudWatch", "Logs"], + "templating": { + "list": [ + { + "current": {}, + "datasource": { + "type": "cloudwatch", + "uid": "DS_CLOUDWATCH" + }, + "definition": "", + "hide": 0, + "includeAll": false, + "label": "Log Groups", + "multi": false, + "name": "log_group_name", + "options": [], + "query": { + "dimensionFilters": {}, + "dimensionKey": "LogGroupName", + "logGroupPrefix": "$log_group", + "metricName": "IncomingLogEvents", + "namespace": "AWS/Logs", + "queryType": "dimensionValues", + "refId": "CloudWatchVariableQueryEditor-VariableQuery", + "region": "default" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": { + "selected": false, + "text": "hotel catalog creation started", + "value": "hotel catalog creation started" + }, + "hide": 0, + "label": "Search", + "name": "search", + "options": [ + { + "selected": false, + "text": "task timed out", + "value": "task timed out" + } + ], + "query": "hotel catalog creation started", + "skipUrlSync": false, + "type": "textbox" + } + ] + }, + "time": { + "from": "now-2d", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Cloudwatch Logs", + "uid": "lYQ8-oQGk", + "version": 4, + "weekStart": "" +} diff --git a/grafana/non-prod/docker/dashboards/Dynamo_rev6.json b/grafana/non-prod/docker/dashboards/Dynamo_rev6.json new file mode 100644 index 000000000..bb99f39fb --- /dev/null +++ b/grafana/non-prod/docker/dashboards/Dynamo_rev6.json @@ -0,0 +1,4038 @@ +{ + "__inputs": [], + "__elements": {}, + "__requires": [ + { + "type": "datasource", + "id": "cloudwatch", + "name": "CloudWatch", + "version": "1.0.0" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.3.0-75826" + }, + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": null, + "links": [ + { + "asDropdown": false, + "icon": "external link", + "includeVars": false, + "keepTime": false, + "tags": [], + "targetBlank": true, + "title": "AWS DynamoDB Monitoring", + "tooltip": "", + "type": "link", + "url": "https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Monitoring-metrics-with-Amazon-CloudWatch.html" + }, + { + "asDropdown": false, + "icon": "cloud", + "includeVars": false, + "keepTime": false, + "tags": [], + "targetBlank": true, + "title": "github", + "tooltip": "", + "type": "link", + "url": "https://github.com/cboudereau/grafana-dashboards/tree/main/aws/dynamodb" + } + ], + "panels": [ + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 6, + "panels": [ + { + "datasource": { + "default": false, + "type": "cloudwatch", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "red", + "mode": "shades" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 12, + "x": 0, + "y": 1 + }, + "id": 10, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": {}, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "UserErrors", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "A", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + } + ], + "title": "Errors (${period})", + "type": "timeseries" + }, + { + "datasource": { + "default": false, + "type": "cloudwatch", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "yellow", + "mode": "shades" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 12, + "x": 12, + "y": 1 + }, + "id": 17, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "Class": "None", + "Resource": "*", + "Service": "DynamoDB", + "Type": "Resource" + }, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ResourceCount", + "metricQueryType": 0, + "namespace": "AWS/Usage", + "period": "${period}", + "queryMode": "Metrics", + "refId": "A", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + } + ], + "title": "Usage (${period})", + "type": "timeseries" + }, + { + "datasource": { + "default": false, + "type": "cloudwatch", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/Utilization/" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "right" + }, + { + "id": "unit", + "value": "percent" + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/AccountMax/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "dark-red", + "mode": "shades" + } + } + ] + } + ] + }, + "gridPos": { + "h": 10, + "w": 12, + "x": 0, + "y": 11 + }, + "id": 18, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": {}, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "AccountMaxReads", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "A", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": {}, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "AccountMaxTableLevelReads", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "B", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": {}, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "AccountProvisionedReadCapacityUtilization", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "C", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": {}, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "MaxProvisionedTableReadCapacityUtilization", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "D", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + } + ], + "title": "Reads (${period})", + "type": "timeseries" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/Utilization/" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "right" + }, + { + "id": "unit", + "value": "percent" + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "/AccountMax/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "dark-red", + "mode": "shades" + } + } + ] + } + ] + }, + "gridPos": { + "h": 10, + "w": 12, + "x": 12, + "y": 11 + }, + "id": 2, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": {}, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "AccountMaxWrites", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "A", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": {}, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "AccountMaxTableLevelWrites", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "B", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": {}, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "AccountProvisionedWriteCapacityUtilization", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "C", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": {}, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "MaxProvisionedTableWriteCapacityUtilization", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "D", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + } + ], + "title": "Writes (${period})", + "type": "timeseries" + } + ], + "title": "Account", + "type": "row" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 1 + }, + "id": 24, + "panels": [], + "title": "Tables", + "type": "row" + }, + { + "datasource": { + "default": false, + "type": "cloudwatch", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "red", + "mode": "shades" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "hue", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 0, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ + { + "targetBlank": false, + "title": "${__field.labels.TableName} details", + "url": "/d/${__dashboard.uid}/${__dashboard}/?${datasource:queryparam}&${period:queryparam}&${__url_time_range}&var-table=${__field.labels.TableName}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 4, + "x": 0, + "y": 2 + }, + "id": 25, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "right", + "showLegend": false, + "sortBy": "Last *", + "sortDesc": true + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "Operation": "*", + "TableName": "*" + }, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "SystemErrors", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "A", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + } + ], + "title": "Errors (${period})", + "type": "timeseries" + }, + { + "datasource": { + "default": false, + "type": "cloudwatch", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "orange", + "mode": "shades" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "hue", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 0, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ + { + "title": "${__field.labels.TableName} details", + "url": "/d/${__dashboard.uid}/${__dashboard}/?${datasource:queryparam}&${period:queryparam}&${__url_time_range}&var-table=${__field.labels.TableName}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 4, + "x": 4, + "y": 2 + }, + "id": 15, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": false, + "sortBy": "Last *", + "sortDesc": true + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "Operation": "*", + "TableName": "*" + }, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ThrottledRequests", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "A", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "TableName": "*" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ReadThrottleEvents", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "B", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "TableName": "*" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "WriteThrottleEvents", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "C", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "GlobalSecondaryIndexName": "*", + "TableName": "*" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ReadThrottleEvents", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "D", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "GlobalSecondaryIndexName": "*", + "TableName": "*" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "WriteThrottleEvents", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "E", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "GlobalSecondaryIndexName": "*", + "TableName": "*" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "OnlineIndexThrottleEvents", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "F", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + } + ], + "title": "Throttling (${period})", + "type": "timeseries" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "green", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 0, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ + { + "title": "${__field.labels.TableName} details", + "url": "/d/${__dashboard.uid}/${__dashboard}/?${datasource:queryparam}&${period:queryparam}&${__url_time_range}&var-table=${__field.labels.TableName}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 4, + "x": 8, + "y": 2 + }, + "id": 27, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": false, + "sortBy": "Last *", + "sortDesc": true + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "Operation": "*", + "TableName": "*" + }, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "SuccessfulRequestLatency", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "A", + "region": "default", + "sqlExpression": "", + "statistic": "SampleCount" + } + ], + "title": "Requests Count (${period})", + "type": "timeseries" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ + { + "title": "${__field.labels.TableName} details", + "url": "/d/${__dashboard.uid}/${__dashboard}/?${datasource:queryparam}&${period:queryparam}&${__url_time_range}&var-table=${__field.labels.TableName}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 4, + "x": 12, + "y": 2 + }, + "id": 19, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": false, + "sortBy": "Last *", + "sortDesc": true + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "Operation": "*", + "TableName": "*" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "SuccessfulRequestLatency", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "B", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + } + ], + "title": "Requests Durations (${period})", + "type": "timeseries" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ + { + "title": "${__field.labels.TableName} details", + "url": "/d/${__dashboard.uid}/${__dashboard}/?${datasource:queryparam}&${period:queryparam}&${__url_time_range}&var-table=${__field.labels.TableName}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 4, + "x": 16, + "y": 2 + }, + "id": 29, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": false, + "sortBy": "Last *", + "sortDesc": true + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "TableName": "*" + }, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ConditionalCheckFailedRequests", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "A", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "TableName": "*" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ConsumedReadCapacityUnits", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "B", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "TableName": "*" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "OnDemandMaxReadRequestUnits", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "C", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "TableName": "*" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ProvisionedReadCapacityUnits", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "D", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "Operation": "*", + "TableName": "*" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ReturnedItemCount", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "F", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + } + ], + "title": "Reads (${period})", + "type": "timeseries" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ + { + "title": "${__field.labels.TableName} details", + "url": "/d/${__dashboard.uid}/${__dashboard}/?${datasource:queryparam}&${period:queryparam}&${__url_time_range}&var-table=${__field.labels.TableName}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 4, + "x": 20, + "y": 2 + }, + "id": 30, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": false, + "sortBy": "Last *", + "sortDesc": true + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "TableName": "*" + }, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ConsumedWriteCapacityUnits", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "A", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "TableName": "*" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "OnDemandMaxWriteRequestUnits", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "B", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "TableName": "*" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ProvisionedWriteCapacityUnits", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "C", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "TableName": "*" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "TimeToLiveDeletedItemCount", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "D", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "TableName": "*" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "TransactionConflict", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "E", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + } + ], + "title": "Writes (${period})", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 8 + }, + "id": 3, + "panels": [], + "repeat": "table", + "repeatDirection": "h", + "title": "Table: ${table}", + "type": "row" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "red", + "mode": "shades" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 12, + "x": 0, + "y": 9 + }, + "id": 14, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "Operation": "*", + "TableName": "${table}" + }, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "SystemErrors", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "A", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + } + ], + "title": "Errors (${period})", + "type": "timeseries" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "orange", + "mode": "shades" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 12, + "x": 12, + "y": 9 + }, + "id": 26, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "Operation": "*", + "TableName": "${table}" + }, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ThrottledRequests", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "A", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ReadThrottleEvents", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "B", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "WriteThrottleEvents", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "C", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "GlobalSecondaryIndexName": "*", + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ReadThrottleEvents", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "D", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "GlobalSecondaryIndexName": "*", + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "WriteThrottleEvents", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "E", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "GlobalSecondaryIndexName": "*", + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "OnlineIndexThrottleEvents", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "F", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + } + ], + "title": "Throttling (${period})", + "type": "timeseries" + }, + { + "datasource": { + "default": false, + "type": "cloudwatch", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "green", + "mode": "shades" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 12, + "x": 0, + "y": 21 + }, + "id": 16, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "Operation": "*", + "TableName": "${table}" + }, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "SuccessfulRequestLatency", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "A", + "region": "default", + "sqlExpression": "", + "statistic": "SampleCount" + } + ], + "title": "Successful Requests Count (${period})", + "type": "timeseries" + }, + { + "datasource": { + "default": false, + "type": "cloudwatch", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "shades" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 12, + "x": 12, + "y": 21 + }, + "id": 28, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "Operation": "*", + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "SuccessfulRequestLatency", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "B", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + } + ], + "title": "Successful Requests Durations (${period})", + "type": "timeseries" + }, + { + "datasource": { + "default": false, + "type": "cloudwatch", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "shades" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 12, + "x": 0, + "y": 31 + }, + "id": 1, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "TableName": "${table}" + }, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ConditionalCheckFailedRequests", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "A", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ConsumedReadCapacityUnits", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "B", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "OnDemandMaxReadRequestUnits", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "C", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ProvisionedReadCapacityUnits", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "D", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "Operation": "*", + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ReturnedItemCount", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "F", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + } + ], + "title": "Reads (${period})", + "type": "timeseries" + }, + { + "datasource": { + "default": false, + "type": "cloudwatch", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "shades" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 12, + "x": 12, + "y": 31 + }, + "id": 7, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "TableName": "${table}" + }, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ConsumedWriteCapacityUnits", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "A", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "OnDemandMaxWriteRequestUnits", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "B", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ProvisionedWriteCapacityUnits", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "C", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "TimeToLiveDeletedItemCount", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "D", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "TransactionConflict", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "E", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + } + ], + "title": "Writes (${period})", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 43 + }, + "id": 23, + "panels": [], + "repeat": "table", + "repeatDirection": "h", + "title": "Global Secondary Index: ${table}", + "type": "row" + }, + { + "datasource": { + "default": false, + "type": "cloudwatch", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "shades" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 12, + "x": 0, + "y": 44 + }, + "id": 8, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "GlobalSecondaryIndexName": "*", + "TableName": "${table}" + }, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ConsumedReadCapacityUnits", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "A", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "GlobalSecondaryIndexName": "*", + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "OnDemandMaxReadRequestUnits", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "B", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "GlobalSecondaryIndexName": "*", + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ProvisionedReadCapacityUnits", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "C", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + } + ], + "title": "Global Secondary Indexes Reads", + "type": "timeseries" + }, + { + "datasource": { + "default": false, + "type": "cloudwatch", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "shades" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 12, + "x": 12, + "y": 44 + }, + "id": 9, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "GlobalSecondaryIndexName": "*", + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ConsumedWriteCapacityUnits", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "A", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "GlobalSecondaryIndexName": "*", + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "OnDemandMaxWriteRequestUnits", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "B", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "GlobalSecondaryIndexName": "*", + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "OnlineIndexConsumedWriteCapacity", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "C", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "GlobalSecondaryIndexName": "*", + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "OnlineIndexPercentageProgress", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "D", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "GlobalSecondaryIndexName": "*", + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "PendingReplicationCount", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "F", + "region": "default", + "sqlExpression": "", + "statistic": "Average" + } + ], + "title": "Global Secondary Indexes Writes", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 56 + }, + "id": 20, + "panels": [], + "repeat": "table", + "repeatDirection": "h", + "title": "DynamoDB Streams: ${table}", + "type": "row" + }, + { + "datasource": { + "default": false, + "type": "cloudwatch", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "shades" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/Bytes/" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "right" + }, + { + "id": "unit", + "value": "bytes" + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 12, + "x": 0, + "y": 57 + }, + "id": 12, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "Operation": "*", + "StreamLabel": "*", + "TableName": "${table}" + }, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ReturnedBytes", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "A", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "Operation": "*", + "StreamLabel": "*", + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ReturnedRecordsCount", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "B", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + } + ], + "title": "DynamoDB Stream", + "type": "timeseries" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "shades" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 12, + "x": 12, + "y": 57 + }, + "id": 13, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "Operation": "*", + "StreamLabel": "*", + "TableName": "${table}" + }, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "SuccessfulRequestLatency", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "A", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + } + ], + "title": "DynamoDB Stream Durations", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 69 + }, + "id": 21, + "panels": [], + "repeat": "table", + "repeatDirection": "h", + "title": "Kinesis Data Streams: ${table}", + "type": "row" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "shades" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/Throttle/" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "orange", + "mode": "shades" + } + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + } + ] + }, + "gridPos": { + "h": 12, + "w": 12, + "x": 0, + "y": 70 + }, + "id": 5, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "DelegatedOperation": "*", + "TableName": "${table}" + }, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "AgeOfOldestUnreplicatedRecord", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "A", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "DelegatedOperation": "*", + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ConsumedChangeDataCaptureUnits", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "B", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "DelegatedOperation": "*", + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "FailedToReplicateRecordCount", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "C", + "region": "default", + "sqlExpression": "", + "statistic": "Sum" + }, + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "DelegatedOperation": "*", + "TableName": "${table}" + }, + "expression": "", + "hide": false, + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ThrottledPutRecordCount", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "D", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + } + ], + "title": "Kinesis Data Stream", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 82 + }, + "id": 22, + "panels": [], + "repeat": "table", + "repeatDirection": "h", + "title": "Global Table: ${table}", + "type": "row" + }, + { + "datasource": { + "default": false, + "type": "cloudwatch", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "shades" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ms" + }, + "overrides": [] + }, + "gridPos": { + "h": 12, + "w": 12, + "x": 0, + "y": 83 + }, + "id": 11, + "options": { + "legend": { + "calcs": [ + "min", + "max", + "lastNotNull" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "dimensions": { + "ReceivingRegion": "*", + "TableName": "${table}" + }, + "expression": "", + "id": "", + "label": "", + "logGroups": [], + "matchExact": true, + "metricEditorMode": 0, + "metricName": "ReplicationLatency", + "metricQueryType": 0, + "namespace": "AWS/DynamoDB", + "period": "${period}", + "queryMode": "Metrics", + "refId": "A", + "region": "default", + "sqlExpression": "", + "statistic": "Maximum" + } + ], + "title": "Global Table", + "type": "timeseries" + } + ], + "refresh": "auto", + "schemaVersion": 39, + "tags": [ + "cloudwatch" + ], + "templating": { + "list": [ + { + "current": {}, + "hide": 1, + "includeAll": false, + "multi": false, + "name": "datasource", + "options": [], + "query": "cloudwatch", + "queryValue": "", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "auto": true, + "auto_count": 30, + "auto_min": "10s", + "current": { + "selected": false, + "text": "auto", + "value": "$__auto_interval_period" + }, + "hide": 0, + "name": "period", + "options": [ + { + "selected": true, + "text": "auto", + "value": "$__auto_interval_period" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "10m", + "value": "10m" + }, + { + "selected": false, + "text": "30m", + "value": "30m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "12h", + "value": "12h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" + }, + { + "selected": false, + "text": "7d", + "value": "7d" + }, + { + "selected": false, + "text": "14d", + "value": "14d" + }, + { + "selected": false, + "text": "30d", + "value": "30d" + } + ], + "query": "1m,10m,30m,1h,6h,12h,1d,7d,14d,30d", + "queryValue": "", + "refresh": 2, + "skipUrlSync": false, + "type": "interval" + }, + { + "allValue": "*", + "current": {}, + "datasource": { + "type": "cloudwatch", + "uid": "${datasource}" + }, + "definition": "", + "hide": 0, + "includeAll": false, + "multi": true, + "name": "table", + "options": [], + "query": { + "dimensionKey": "TableName", + "metricName": "ConsumedWriteCapacityUnits", + "namespace": "AWS/DynamoDB", + "queryType": "dimensionValues", + "refId": "CloudWatchVariableQueryEditor-VariableQuery", + "region": "default" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-1h", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "AWS DynamoDB CloudWatch", + "uid": "aws-dynamodb-cloudwatch", + "version": 4, + "weekStart": "", + "gnetId": 21974, + "description": "AWS DynamoDB CloudWatch metrics" +} \ No newline at end of file diff --git a/grafana/non-prod/docker/dashboards/ECS_rev7.json b/grafana/non-prod/docker/dashboards/ECS_rev7.json new file mode 100644 index 000000000..ba5b243dc --- /dev/null +++ b/grafana/non-prod/docker/dashboards/ECS_rev7.json @@ -0,0 +1,689 @@ +{ + "__inputs": [], + "__requires": [ + { + "type": "datasource", + "id": "cloudwatch", + "name": "CloudWatch", + "version": "1.0.0" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "7.4.1" + }, + { + "type": "panel", + "id": "graph", + "name": "Graph", + "version": "" + }, + { + "type": "panel", + "id": "text", + "name": "Text", + "version": "" + } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + }, + { + "datasource": "${datasource}", + "dimensions": { + "ServiceName": "$service" + }, + "enable": false, + "iconColor": "rgba(255, 96, 96, 1)", + "metricName": "*", + "name": "Alarms", + "namespace": "AWS/ECS", + "period": "", + "region": "$region", + "statistics": [ + "Average" + ] + } + ] + }, + "description": "Visualize AWS ECS metrics", + "editable": false, + "gnetId": 551, + "graphTooltip": 0, + "id": null, + "iteration": 1613557010485, + "links": [], + "panels": [ + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "${datasource}", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 0 + }, + "hiddenSeries": false, + "id": 1, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.4.1", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "", + "dimensions": { + "ClusterName": "$cluster", + "ServiceName": "$service" + }, + "expression": "", + "id": "", + "matchExact": true, + "metricName": "CPUUtilization", + "namespace": "AWS/ECS", + "period": "", + "refId": "A", + "region": "$region", + "statistics": [ + "Average" + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "CPUUtilization (cluster $cluster, service $service)", + "tooltip": { + "msResolution": true, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:343", + "format": "percent", + "label": null, + "logBase": 1, + "max": 100, + "min": 0, + "show": true + }, + { + "$$hashKey": "object:344", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": false + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "${datasource}", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 7 + }, + "hiddenSeries": false, + "id": 2, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.4.1", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "dimensions": { + "ClusterName": "$cluster", + "ServiceName": "$service" + }, + "metricName": "MemoryUtilization", + "namespace": "AWS/ECS", + "period": "", + "refId": "A", + "region": "$region", + "statistics": [ + "Average" + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "MemoryUtilization (cluster $cluster, service $service)", + "tooltip": { + "msResolution": true, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percent", + "label": null, + "logBase": 1, + "max": 100, + "min": 0, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": false + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": { + "CPUReservation_Average": "#EAB839" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "${datasource}", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 14 + }, + "hiddenSeries": false, + "id": 3, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.4.1", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "", + "dimensions": { + "ClusterName": "$cluster" + }, + "expression": "", + "id": "", + "matchExact": true, + "metricName": "CPUReservation", + "namespace": "AWS/ECS", + "period": "", + "refId": "A", + "region": "$region", + "statistics": [ + "Average" + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "CPUReservation (cluster $cluster)", + "tooltip": { + "msResolution": true, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:130", + "format": "percent", + "label": null, + "logBase": 1, + "max": 100, + "min": "0", + "show": true + }, + { + "$$hashKey": "object:131", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": false + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": { + "MemoryReservation_Average": "#EAB839" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "${datasource}", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 21 + }, + "hiddenSeries": false, + "id": 4, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.4.1", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "", + "dimensions": { + "ClusterName": "$cluster" + }, + "expression": "", + "id": "", + "matchExact": true, + "metricName": "MemoryReservation", + "namespace": "AWS/ECS", + "period": "", + "refId": "A", + "region": "$region", + "statistics": [ + "Average" + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "MemoryReservation (cluster $cluster)", + "tooltip": { + "msResolution": true, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:214", + "format": "percent", + "label": null, + "logBase": 1, + "max": 100, + "min": 0, + "show": true + }, + { + "$$hashKey": "object:215", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": false + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "datasource": "${datasource}", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 24, + "x": 0, + "y": 28 + }, + "id": 5, + "isNew": true, + "links": [], + "options": { + "content": " | \nAWS CloudWatch ECS documentation | \nInstalled from Grafana.com dashboards", + "mode": "html" + }, + "pluginVersion": "7.4.1", + "title": "Documentation", + "type": "text" + } + ], + "schemaVersion": 27, + "style": "dark", + "tags": [ + "monitoringartist", + "cloudwatch" + ], + "templating": { + "list": [ + { + "current": {}, + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Datasource", + "multi": false, + "name": "datasource", + "options": [], + "query": "cloudwatch", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "allValue": null, + "current": {}, + "datasource": "${datasource}", + "definition": "", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Region", + "multi": false, + "name": "region", + "options": [], + "query": "regions()", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": {}, + "datasource": "${datasource}", + "definition": "", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Cluster", + "multi": false, + "name": "cluster", + "options": [], + "query": "dimension_values($region,AWS/ECS,CPUUtilization,ClusterName)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": {}, + "datasource": "${datasource}", + "definition": "", + "description": null, + "error": null, + "hide": 0, + "includeAll": false, + "label": "Service", + "multi": false, + "name": "service", + "options": [], + "query": "dimension_values($region,AWS/ECS,CPUUtilization,ServiceName)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { + "from": "now-24h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "timezone": "browser", + "title": "AWS ECS", + "uid": "eKASolEGk", + "version": 7 +} \ No newline at end of file diff --git a/grafana/non-prod/docker/dashboards/Kinesis_rev5.json b/grafana/non-prod/docker/dashboards/Kinesis_rev5.json new file mode 100644 index 000000000..8524d5317 --- /dev/null +++ b/grafana/non-prod/docker/dashboards/Kinesis_rev5.json @@ -0,0 +1,1274 @@ +{ + "__inputs": [], + "__requires": [ + { + "type": "datasource", + "id": "cloudwatch", + "name": "CloudWatch", + "version": "1.0.0" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "7.1.5" + }, + { + "type": "panel", + "id": "graph", + "name": "Graph", + "version": "" + }, + { + "type": "panel", + "id": "text", + "name": "Text", + "version": "7.1.0" + } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "description": "Visualize AWS Kinesis metrics", + "editable": true, + "gnetId": 13018, + "graphTooltip": 0, + "id": null, + "iteration": 1600203820219, + "links": [], + "panels": [ + { + "aliasColors": { + "Maximum": "#e24d42" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "decimals": 1, + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 0 + }, + "hiddenSeries": false, + "id": 1, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sort": "current", + "sortDesc": true, + "total": true, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pluginVersion": "7.1.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "IncomingBytes Sum", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "StreamName": "$streamname" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "matchExact": true, + "metricName": "IncomingRecords", + "mode": 0, + "namespace": "AWS/Kinesis", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "A", + "region": "$region", + "returnData": false, + "statistics": [ + "Sum" + ] + }, + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "StreamName": "$streamname" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "matchExact": true, + "metricName": "IncomingBytes", + "mode": 0, + "namespace": "AWS/Kinesis", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "B", + "region": "$region", + "returnData": false, + "statistics": [ + "Sum" + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "IncomingRecords/IncomingBytes", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "bytes", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": { + "Maximum": "#e24d42" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "decimals": 1, + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 7 + }, + "hiddenSeries": false, + "id": 4, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sort": "current", + "sortDesc": true, + "total": true, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pluginVersion": "7.1.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "GetRecords.Records Sum", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "StreamName": "$streamname" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "matchExact": true, + "metricName": "GetRecords.Latency", + "mode": 0, + "namespace": "AWS/Kinesis", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "A", + "region": "$region", + "returnData": false, + "statistics": [ + "Average" + ] + }, + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "StreamName": "$streamname" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "matchExact": true, + "metricName": "GetRecords.Records", + "mode": 0, + "namespace": "AWS/Kinesis", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "B", + "region": "$region", + "returnData": false, + "statistics": [ + "Sum" + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "GetRecords.Latency/GetRecords.Records", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "ms", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": { + "Maximum": "#e24d42" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "decimals": null, + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 14 + }, + "hiddenSeries": false, + "id": 8, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sort": "current", + "sortDesc": true, + "total": true, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pluginVersion": "7.1.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "GetRecords.Latency Average", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "StreamName": "$streamname" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "matchExact": true, + "metricName": "GetRecords.Success", + "mode": 0, + "namespace": "AWS/Kinesis", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "A", + "region": "$region", + "returnData": false, + "statistics": [ + "Sum" + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "GetRecords.Success", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "ms", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": { + "Maximum": "#e24d42" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "decimals": null, + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 21 + }, + "hiddenSeries": false, + "id": 5, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sort": "current", + "sortDesc": true, + "total": true, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pluginVersion": "7.1.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "WriteProvisionedThroughputExceeded Sum", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "StreamName": "$streamname" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "matchExact": true, + "metricName": "ReadProvisionedThroughputExceeded", + "mode": 0, + "namespace": "AWS/Kinesis", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "A", + "region": "$region", + "returnData": false, + "statistics": [ + "Average" + ] + }, + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "StreamName": "$streamname" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "matchExact": true, + "metricName": "WriteProvisionedThroughputExceeded", + "mode": 0, + "namespace": "AWS/Kinesis", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "B", + "region": "$region", + "returnData": false, + "statistics": [ + "Sum" + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "ReadProvisionedThroughputExceeded/WriteProvisionedThroughputExceeded", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percentunit", + "label": null, + "logBase": 1, + "max": "1", + "min": 0, + "show": true + }, + { + "format": "percentunit", + "label": null, + "logBase": 1, + "max": "1", + "min": "0", + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": { + "Maximum": "#e24d42" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "decimals": null, + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 28 + }, + "hiddenSeries": false, + "id": 7, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sort": "current", + "sortDesc": true, + "total": true, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pluginVersion": "7.1.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "StreamName": "$streamname" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "matchExact": true, + "metricName": "PutRecords.Success", + "mode": 0, + "namespace": "AWS/Kinesis", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "A", + "region": "$region", + "returnData": false, + "statistics": [ + "Sum" + ] + }, + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "StreamName": "$streamname" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "matchExact": true, + "metricName": "PutRecord.Success", + "mode": 0, + "namespace": "AWS/Kinesis", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "B", + "region": "$region", + "returnData": false, + "statistics": [ + "Sum" + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "PutRecord.Success/PutRecords.Success", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": { + "Maximum": "#e24d42" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "decimals": null, + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "custom": {}, + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 35 + }, + "hiddenSeries": false, + "id": 6, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sort": "current", + "sortDesc": true, + "total": true, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "percentage": false, + "pluginVersion": "7.1.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "GetRecords.IteratorAgeMilliseconds Maximum", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "StreamName": "$streamname" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "matchExact": true, + "metricName": "GetRecords.IteratorAgeMilliseconds", + "mode": 0, + "namespace": "AWS/Kinesis", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "A", + "region": "$region", + "returnData": false, + "statistics": [ + "Average" + ] + }, + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "StreamName": "$streamname" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "matchExact": true, + "metricName": "GetRecords.IteratorAgeMilliseconds", + "mode": 0, + "namespace": "AWS/Kinesis", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "B", + "region": "$region", + "returnData": false, + "statistics": [ + "Maximum" + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "GetRecords.IteratorAgeMilliseconds", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "ms", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "ms", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "content": " | \nAWS CloudWatch Kinesis documentation | \nInstalled from Grafana.com dashboards", + "datasource": "", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 24, + "x": 0, + "y": 42 + }, + "id": 2, + "links": [], + "mode": "html", + "options": { + "content": " | \nAWS CloudWatch Kinesis documentation | \nInstalled from Grafana.com dashboards", + "mode": "html" + }, + "pluginVersion": "7.1.0", + "title": "Documentation", + "type": "text" + } + ], + "refresh": false, + "schemaVersion": 26, + "style": "dark", + "tags": [ + "monitoringartist", + "cloudwatch" + ], + "templating": { + "list": [ + { + "current": {}, + "hide": 0, + "includeAll": false, + "label": "Datasource", + "multi": false, + "name": "datasource", + "options": [], + "query": "cloudwatch", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "auto": true, + "auto_count": 30, + "auto_min": "10s", + "current": { + "selected": false, + "text": "auto", + "value": "$__auto_interval_agg" + }, + "hide": 0, + "label": "Aggregation", + "name": "agg", + "options": [ + { + "selected": true, + "text": "auto", + "value": "$__auto_interval_agg" + }, + { + "selected": false, + "text": "1s", + "value": "1s" + }, + { + "selected": false, + "text": "5s", + "value": "5s" + }, + { + "selected": false, + "text": "10s", + "value": "10s" + }, + { + "selected": false, + "text": "30s", + "value": "30s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "15m", + "value": "15m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" + }, + { + "selected": false, + "text": "7d", + "value": "7d" + }, + { + "selected": false, + "text": "30d", + "value": "30d" + } + ], + "query": "1s,5s,10s,30s,1m,5m,15m,1h,6h,1d,7d,30d", + "refresh": 2, + "skipUrlSync": false, + "type": "interval" + }, + { + "allValue": null, + "current": {}, + "datasource": "$datasource", + "definition": "regions()", + "hide": 0, + "includeAll": false, + "label": "Region", + "multi": false, + "name": "region", + "options": [], + "query": "regions()", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": {}, + "datasource": "$datasource", + "definition": "dimension_values($region,AWS/Kinesis,IncomingRecords,StreamName)", + "hide": 0, + "includeAll": false, + "label": "StreamName", + "multi": false, + "name": "streamname", + "options": [], + "query": "dimension_values($region,AWS/Kinesis,IncomingRecords,StreamName)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { + "from": "now-7d", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "timezone": "browser", + "title": "AWS Kinesis", + "uid": "AWSKinesi", + "version": 1 +} \ No newline at end of file diff --git a/grafana/non-prod/docker/dashboards/Lambda_rev13.json b/grafana/non-prod/docker/dashboards/Lambda_rev13.json new file mode 100644 index 000000000..34c1d7fc7 --- /dev/null +++ b/grafana/non-prod/docker/dashboards/Lambda_rev13.json @@ -0,0 +1,1010 @@ +{ + "__inputs": [], + "__requires": [ + { + "type": "datasource", + "id": "cloudwatch", + "name": "CloudWatch", + "version": "1.0.0" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "6.0.0" + }, + { + "type": "panel", + "id": "graph", + "name": "Graph", + "version": "" + }, + { + "type": "panel", + "id": "text", + "name": "Text", + "version": "" + } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "description": "Visualize AWS Lambda metrics", + "editable": false, + "gnetId": 593, + "graphTooltip": 0, + "id": null, + "iteration": 1569516349067, + "links": [], + "panels": [ + { + "aliasColors": { + "Maximum": "#e24d42" + }, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "decimals": 3, + "editable": true, + "error": false, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 1, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sort": "current", + "sortDesc": true, + "total": true, + "values": true + }, + "lines": false, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "Duration Maximum", + "bars": false, + "fill": 0, + "lines": true, + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "FunctionName": "$functionname" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "metricName": "Duration", + "mode": 0, + "namespace": "AWS/Lambda", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "A", + "region": "$region", + "returnData": false, + "statistics": [ + "Average" + ] + }, + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "FunctionName": "$functionname" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "hide": false, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "metricName": "Duration", + "mode": 0, + "namespace": "AWS/Lambda", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "B", + "region": "$region", + "returnData": false, + "statistics": [ + "Maximum" + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Duration", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "ms", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "ms", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "decimals": 0, + "editable": true, + "error": false, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 7 + }, + "id": 7, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sort": "current", + "sortDesc": true, + "total": true, + "values": true + }, + "lines": false, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "FunctionName": "$functionname" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "metricName": "Invocations", + "mode": 0, + "namespace": "AWS/Lambda", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "A", + "region": "$region", + "returnData": false, + "statistics": [ + "Sum" + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Invocations", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "none", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": false + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": { + "Errors Sum": "#e24d42", + "Errors_Average": "#BF1B00", + "Errors_Sum": "#BF1B00" + }, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "editable": true, + "error": false, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 14 + }, + "id": 8, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sort": "current", + "sortDesc": true, + "total": true, + "values": true + }, + "lines": false, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "FunctionName": "$functionname" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "metricName": "Errors", + "mode": 0, + "namespace": "AWS/Lambda", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "A", + "region": "$region", + "returnData": false, + "statistics": [ + "Sum" + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Errors", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "none", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": false + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": { + "Throttles Sum": "#e24d42", + "Throttles_Average": "#EAB839", + "Throttles_Sum": "#EAB839" + }, + "bars": true, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "editable": true, + "error": false, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 21 + }, + "id": 9, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sort": "current", + "sortDesc": true, + "total": true, + "values": true + }, + "lines": false, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "Dead Letter Error Sum", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "FunctionName": "$functionname" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "metricName": "Throttles", + "mode": 0, + "namespace": "AWS/Lambda", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "A", + "region": "$region", + "returnData": false, + "statistics": [ + "Sum" + ] + }, + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": { + "FunctionName": "$functionname" + }, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "metricName": "Dead Letter Error", + "mode": 0, + "namespace": "AWS/Lambda", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "B", + "region": "$region", + "returnData": false, + "statistics": [ + "Sum" + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Throttles", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "none", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "none", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": { + "Throttles Sum": "#e24d42", + "Throttles_Average": "#EAB839", + "Throttles_Sum": "#EAB839" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "editable": true, + "error": false, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 28 + }, + "id": 10, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sort": "current", + "sortDesc": true, + "total": true, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "UnreservedConcurrentExecutions Average", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": {}, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "metricName": "ConcurrentExecutions", + "mode": 0, + "namespace": "AWS/Lambda", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "A", + "region": "$region", + "returnData": false, + "statistics": [ + "Average" + ] + }, + { + "alias": "{{metric}} {{stat}}", + "application": { + "filter": "" + }, + "dimensions": {}, + "expression": "", + "functions": [], + "group": { + "filter": "" + }, + "highResolution": false, + "host": { + "filter": "" + }, + "id": "", + "item": { + "filter": "" + }, + "metricName": "UnreservedConcurrentExecutions", + "mode": 0, + "namespace": "AWS/Lambda", + "options": { + "showDisabledItems": false + }, + "period": "$agg", + "refId": "B", + "region": "$region", + "returnData": false, + "statistics": [ + "Average" + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Global Concurrent Executions", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "none", + "label": null, + "logBase": 1, + "max": null, + "min": 0, + "show": true + }, + { + "format": "none", + "label": null, + "logBase": 1, + "max": null, + "min": "0", + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "content": "\nAWS CloudWatch Lambda documentation
\nInstalled from Grafana.net dashboards\n
", + "editable": true, + "error": false, + "gridPos": { + "h": 3, + "w": 24, + "x": 0, + "y": 35 + }, + "id": 2, + "links": [], + "mode": "html", + "options": {}, + "title": "Documentation", + "type": "text" + } + ], + "refresh": false, + "schemaVersion": 19, + "style": "dark", + "tags": [ + "monitoringartist", + "cloudwatch" + ], + "templating": { + "list": [ + { + "current": {}, + "hide": 0, + "includeAll": false, + "label": "Datasource", + "multi": false, + "name": "datasource", + "options": [], + "query": "cloudwatch", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "auto": true, + "auto_count": 30, + "auto_min": "10s", + "current": { + "selected": true, + "text": "auto", + "value": "$__auto_interval_agg" + }, + "hide": 0, + "label": "Aggregation", + "name": "agg", + "options": [ + { + "selected": true, + "text": "auto", + "value": "$__auto_interval_agg" + }, + { + "selected": false, + "text": "1s", + "value": "1s" + }, + { + "selected": false, + "text": "5s", + "value": "5s" + }, + { + "selected": false, + "text": "10s", + "value": "10s" + }, + { + "selected": false, + "text": "30s", + "value": "30s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "15m", + "value": "15m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" + }, + { + "selected": false, + "text": "7d", + "value": "7d" + }, + { + "selected": false, + "text": "30d", + "value": "30d" + } + ], + "query": "1s,5s,10s,30s,1m,5m,15m,1h,6h,1d,7d,30d", + "refresh": 2, + "skipUrlSync": false, + "type": "interval" + }, + { + "allValue": null, + "current": {}, + "datasource": "$datasource", + "definition": "regions()", + "hide": 0, + "includeAll": false, + "label": "Region", + "multi": false, + "name": "region", + "options": [], + "query": "regions()", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": null, + "current": {}, + "datasource": "$datasource", + "definition": "dimension_values($region,AWS/Lambda,Duration,FunctionName)", + "hide": 0, + "includeAll": false, + "label": "FunctionName", + "multi": false, + "name": "functionname", + "options": [], + "query": "dimension_values($region,AWS/Lambda,Duration,FunctionName)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { + "from": "now-7d", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "timezone": "browser", + "title": "AWS Lambda", + "uid": "AWSLambda", + "version": 1 +} \ No newline at end of file diff --git a/grafana/non-prod/docker/dashboards/Redis_rev5.json b/grafana/non-prod/docker/dashboards/Redis_rev5.json new file mode 100644 index 000000000..92cb448e6 --- /dev/null +++ b/grafana/non-prod/docker/dashboards/Redis_rev5.json @@ -0,0 +1,1861 @@ +{ + "__inputs": [], + "__elements": [], + "__requires": [ + { + "type": "datasource", + "id": "cloudwatch", + "name": "CloudWatch", + "version": "1.0.0" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "8.3.3" + }, + { + "type": "panel", + "id": "graph", + "name": "Graph (old)", + "version": "" + }, + { + "type": "panel", + "id": "text", + "name": "Text", + "version": "" + } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "description": "Visualize AWS ElastiCache Redis metrics", + "editable": false, + "fiscalYearStartMonth": 0, + "gnetId": 969, + "graphTooltip": 0, + "id": null, + "iteration": 1641482595110, + "links": [], + "liveNow": false, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "uid": "${datasource}" + }, + "decimals": 3, + "editable": true, + "error": false, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 0 + }, + "hiddenSeries": false, + "id": 13, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.3", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "CacheHits", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "A", + "region": "$region", + "statistic": "Average" + }, + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "CacheMisses", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "B", + "region": "$region", + "statistic": "Average" + }, + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "Evictions", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "D", + "region": "$region", + "statistic": "Average" + }, + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "Reclaimed", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "C", + "region": "$region", + "statistic": "Average" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Cache", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "none", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "none", + "logBase": 1, + "min": 0, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "uid": "${datasource}" + }, + "decimals": 3, + "editable": true, + "error": false, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 7 + }, + "hiddenSeries": false, + "id": 17, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sort": "max", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.3", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "GetTypeCmds", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "A", + "region": "$region", + "statistic": "Average" + }, + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "HashBasedCmds", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "B", + "region": "$region", + "statistic": "Average" + }, + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "ListBasedCmds", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "C", + "region": "$region", + "statistic": "Average" + }, + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "SetBasedCmds", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "D", + "region": "$region", + "statistic": "Average" + }, + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "SetTypeCmds", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "E", + "region": "$region", + "statistic": "Average" + }, + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "SortedSetBasedCmds", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "F", + "region": "$region", + "statistic": "Average" + }, + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "StringBasedCmds", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "G", + "region": "$region", + "statistic": "Average" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Cmds", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "none", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "none", + "logBase": 1, + "min": 0, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "uid": "${datasource}" + }, + "decimals": 3, + "editable": true, + "error": false, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 14 + }, + "hiddenSeries": false, + "id": 14, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.3", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "CurrConnections_Average", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "NewConnections", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "A", + "region": "$region", + "statistic": "Average" + }, + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "CurrConnections", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "B", + "region": "$region", + "statistic": "Average" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Connections", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "none", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "none", + "logBase": 1, + "min": 0, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "uid": "${datasource}" + }, + "decimals": 3, + "editable": true, + "error": false, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 21 + }, + "hiddenSeries": false, + "id": 16, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.3", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "CurrItems_Average", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "SaveInProgress", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "A", + "region": "$region", + "statistic": "Average" + }, + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "CurrItems", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "B", + "region": "$region", + "statistic": "Average" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "SaveInProgress / CurrItems", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "none", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "none", + "logBase": 1, + "min": 0, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "uid": "${datasource}" + }, + "decimals": 3, + "editable": true, + "error": false, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 28 + }, + "hiddenSeries": false, + "id": 12, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sort": "current", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.3", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "ReplicationBytes_Average", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "BytesUsedForCache", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "A", + "region": "$region", + "statistic": "Average" + }, + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "ReplicationBytes", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "B", + "region": "$region", + "statistic": "Average" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "BytesUsedForCache / ReplicationBytes", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bytes", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "bytes", + "logBase": 1, + "min": 0, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "uid": "${datasource}" + }, + "decimals": 3, + "editable": true, + "error": false, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 35 + }, + "hiddenSeries": false, + "id": 15, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.3", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "ReplicationLag_Average", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "HyperLogLogBasedCmds", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "A", + "region": "$region", + "statistic": "Average" + }, + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "ReplicationLag", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "B", + "region": "$region", + "statistic": "Average" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "HyperLogLogBasedCmds / ReplicationLag", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "none", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "s", + "logBase": 1, + "min": 0, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "uid": "${datasource}" + }, + "decimals": 3, + "editable": true, + "error": false, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 42 + }, + "hiddenSeries": false, + "id": 1, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sort": "current", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.3", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId", + "CacheNodeId": "$cachenodeid" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "DatabaseMemoryUsagePercentage", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "A", + "region": "$region", + "statistic": "Average" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "CacheNodeId $cachenodeid DatabaseMemoryUsagePercentage", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percent", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "uid": "${datasource}" + }, + "decimals": 3, + "editable": true, + "error": false, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 49 + }, + "hiddenSeries": false, + "id": 18, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sort": "current", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.3", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId", + "CacheNodeId": "$cachenodeid" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "CPUUtilization", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "A", + "region": "$region", + "statistic": "Average" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "CacheNodeId $cachenodeid CPUUtilization", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "percent", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "uid": "${datasource}" + }, + "decimals": 3, + "editable": true, + "error": false, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 56 + }, + "hiddenSeries": false, + "id": 10, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sort": "current", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.3", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "NetworkBytesIn_Average", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId", + "CacheNodeId": "$cachenodeid" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "NetworkBytesIn", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "A", + "region": "$region", + "statistic": "Average" + }, + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId", + "CacheNodeId": "$cachenodeid" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "NetworkBytesOut", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "B", + "region": "$region", + "statistic": "Average" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "CacheNodeId $cachenodeid NetworkBytes", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bytes", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "bytes", + "logBase": 1, + "min": 0, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "uid": "${datasource}" + }, + "decimals": 3, + "editable": true, + "error": false, + "fill": 1, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 63 + }, + "hiddenSeries": false, + "id": 11, + "isNew": true, + "legend": { + "alignAsTable": true, + "avg": true, + "current": true, + "max": true, + "min": true, + "show": true, + "sort": "current", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.3", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "FreeableMemory_Average", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId", + "CacheNodeId": "$cachenodeid" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "SwapUsage", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "A", + "region": "$region", + "statistic": "Average" + }, + { + "alias": "", + "application": { + "filter": "" + }, + "dimensions": { + "CacheClusterId": "$cacheclusterId", + "CacheNodeId": "$cachenodeid" + }, + "functions": [], + "group": { + "filter": "" + }, + "host": { + "filter": "" + }, + "item": { + "filter": "" + }, + "metricEditorMode": 0, + "metricName": "FreeableMemory", + "metricQueryType": 0, + "mode": 0, + "namespace": "AWS/ElastiCache", + "options": { + "showDisabledItems": false + }, + "period": "", + "refId": "B", + "region": "$region", + "statistic": "Average" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "CacheNodeId $cachenodeid FreeableMemory / SwapUsage", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 0, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "bytes", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "bytes", + "logBase": 1, + "min": 0, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "editable": true, + "error": false, + "gridPos": { + "h": 3, + "w": 24, + "x": 0, + "y": 70 + }, + "id": 2, + "isNew": true, + "links": [], + "options": { + "content": " | \nAWS CloudWatch ElastiCache documentation | \nInstalled from Grafana.com dashboards", + "mode": "html" + }, + "pluginVersion": "8.3.3", + "title": "Documentation", + "type": "text" + } + ], + "refresh": false, + "schemaVersion": 34, + "style": "dark", + "tags": [ + "monitoringartist", + "cloudwatch" + ], + "templating": { + "list": [ + { + "current": {}, + "hide": 0, + "includeAll": false, + "label": "Datasource", + "multi": false, + "name": "datasource", + "options": [], + "query": "cloudwatch", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "type": "datasource" + }, + { + "current": {}, + "datasource": { + "uid": "${datasource}" + }, + "definition": "", + "hide": 0, + "includeAll": false, + "label": "Region", + "multi": false, + "name": "region", + "options": [], + "query": "regions()", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "uid": "${datasource}" + }, + "definition": "", + "hide": 0, + "includeAll": false, + "label": "CacheClusterId", + "multi": false, + "name": "cacheclusterId", + "options": [], + "query": "dimension_values($region,AWS/ElastiCache,CPUUtilization,CacheClusterId)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + }, + { + "current": {}, + "datasource": { + "uid": "${datasource}" + }, + "definition": "", + "hide": 0, + "includeAll": false, + "label": "CacheNodeId", + "multi": false, + "name": "cachenodeid", + "options": [], + "query": "dimension_values($region,AWS/ElastiCache,CPUUtilization,CacheNodeId)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-12h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "timezone": "browser", + "title": "AWS ElastiCache Redis", + "uid": "AWSERedis", + "version": 2, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/non-prod/docker/grafana.ini b/grafana/non-prod/docker/grafana.ini new file mode 100644 index 000000000..614a71b04 --- /dev/null +++ b/grafana/non-prod/docker/grafana.ini @@ -0,0 +1,7 @@ +# Custom grafana.ini file + +[analytics] +check_for_updates = false + +[plugins] +enable_alpha = false diff --git a/grafana/non-prod/docker/lifecycle-policy.json b/grafana/non-prod/docker/lifecycle-policy.json new file mode 100644 index 000000000..ec9b81354 --- /dev/null +++ b/grafana/non-prod/docker/lifecycle-policy.json @@ -0,0 +1,17 @@ +{ + "rules": [ + { + "rulePriority": 1, + "description": "Retain only the latest 10 images", + "selection": { + "tagStatus": "any", + "countType": "imageCountMoreThan", + "countNumber": 10, + "tagPrefixList": [""] + }, + "action": { + "type": "expire" + } + } + ] +} \ No newline at end of file diff --git a/grafana/non-prod/docker/provisioning/dashboards/dashboard.yml b/grafana/non-prod/docker/provisioning/dashboards/dashboard.yml new file mode 100644 index 000000000..2d2266dcc --- /dev/null +++ b/grafana/non-prod/docker/provisioning/dashboards/dashboard.yml @@ -0,0 +1,11 @@ +apiVersion: 1 + +providers: + - name: "default" + orgId: 1 + folder: "" + type: file + disableDeletion: false + updateIntervalSeconds: 10 + options: + path: /var/lib/grafana/dashboards \ No newline at end of file diff --git a/grafana/non-prod/docker/provisioning/datasources/datasource.yml b/grafana/non-prod/docker/provisioning/datasources/datasource.yml new file mode 100644 index 000000000..e272f9bb7 --- /dev/null +++ b/grafana/non-prod/docker/provisioning/datasources/datasource.yml @@ -0,0 +1,80 @@ +# config file version +apiVersion: 1 + +# list of datasources that should be deleted from the database +deleteDatasources: + - name: Prometheus + orgId: 1 + - name: Loki + orgId: 1 + +datasources: + - name: DS_CLOUDWATCH # name of the datasource + type: cloudwatch # type of the data source + access: proxy # make grafana perform the requests + org_id: 1 # id of the organization to tie this datasource to + url: '' # url of the instance + password: # database password, if used + user: # database user, if used + database: # database name, if used + basicAuth: false # enable/disable basic auth + basicAuthUser: # basic auth username, if used + basicAuthPassword: # basic auth password, if used + withCredentials: false # enable/disable with credentials headers + isDefault: true # mark as default datasource. Max one per org + jsonData: # fields that will be converted to json and stored in json_data + authType: keys + defaultRegion: eu-west-2 + editable: true # whether it should be editable + version: 1 + + + - name: 'Prometheus' # name of the datasource + type: 'prometheus' # type of the data source + access: 'proxy' # make grafana perform the requests + org_id: 1 # id of the organization to tie this datasource to + url: 'http://prometheus:9090' # url of the prom instance + password: # database password, if used + user: # database user, if used + database: # database name, if used + basicAuth: false # enable/disable basic auth + basicAuthUser: # basic auth username, if used + basicAuthPassword: # basic auth password, if used + withCredentials: # enable/disable with credentials headers + isDefault: false # mark as default datasource. Max one per org + jsonData: # fields that will be converted to json and stored in json_data + graphiteVersion: "1.1" + tlsAuth: false + tlsAuthWithCACert: false + secureJsonData: # json object of data that will be encrypted. + tlsCACert: "..." + tlsClientCert: "..." + tlsClientKey: "..." + editable: true # whether it should be editable + version: 1 + + - name: 'Loki' # name of the datasource + type: 'loki' # type of the data source + access: 'proxy' # make grafana perform the requests + org_id: 1 # id of the organization to tie this datasource to + url: 'http://loki:3100' # url of the instance + password: # database password, if used + user: # database user, if used + database: # database name, if used + basicAuth: false # enable/disable basic auth + basicAuthUser: # basic auth username, if used + basicAuthPassword: # basic auth password, if used + withCredentials: # enable/disable with credentials headers + isDefault: false # mark as default datasource. Max one per org + jsonData: # fields that will be converted to json and stored in json_data + graphiteVersion: "1.1" + tlsAuth: false + tlsAuthWithCACert: false + secureJsonData: # json object of data that will be encrypted. + tlsCACert: "..." + tlsClientCert: "..." + tlsClientKey: "..." + editable: true # whether it should be editable + version: 1 + + diff --git a/grafana/non-prod/docker/readme.md b/grafana/non-prod/docker/readme.md new file mode 100644 index 000000000..0a44becad --- /dev/null +++ b/grafana/non-prod/docker/readme.md @@ -0,0 +1,14 @@ +# Docker + +## Introduction +This docker folder is used to deploy a grafana docker image to AWS ECR for use by ECS + +## architecture +1. Dockerfile uses grafana/grafana:latest and is built for linux/amd64 for deploy to ECS +2. Entrypoint script `run.sh` starts grafana in a controlled manner and permits debug on startup + +## To Build and deploy Grafana Docker image to AWS ECR + +1. Start docker +2. execute `build_push_to_ecr.sh` +3. Success message "Docker image built and pushed to ECR successfully." diff --git a/grafana/non-prod/docker/run.sh b/grafana/non-prod/docker/run.sh new file mode 100644 index 000000000..a5cb3c34c --- /dev/null +++ b/grafana/non-prod/docker/run.sh @@ -0,0 +1,32 @@ +#!/bin/sh +echo "Grafana Docker container startup..." + +GRAFANA_SERVER_PATH=$(which grafana-server) +if [ -z "$GRAFANA_SERVER_PATH" ]; then + echo "grafana-server not found. Exiting." + exit 1 +else + echo "grafana-server found at $GRAFANA_SERVER_PATH" +fi + +echo "Starting Grafana with environment variables:" +env | grep GF_ + +# Check if Grafana configuration exists +if [ ! -f /etc/grafana/grafana.ini ]; then + echo "Grafana configuration not found. Exiting." + exit 1 +fi + +GF_UPDATE_CHECK=false + +# Start Grafana in the foreground +echo "Starting Grafana server..." +exec $GF_PATHS_HOME/bin/grafana-server \ + --homepath=$GF_PATHS_HOME \ + --config=/etc/grafana/grafana.ini \ + --packaging=docker \ + cfg:default.paths.data=/var/lib/grafana \ + cfg:default.paths.logs=/var/log/grafana \ + cfg:default.paths.plugins=/var/lib/grafana/plugins \ + cfg:default.paths.provisioning=/etc/grafana/provisioning \ No newline at end of file diff --git a/grafana/non-prod/readme.md b/grafana/non-prod/readme.md new file mode 100644 index 000000000..ad4238f29 --- /dev/null +++ b/grafana/non-prod/readme.md @@ -0,0 +1,35 @@ +# Grafana infrastructure + +The build comes in 2 parts +1. Docker image +2. AWS Infrastructure + +## Docker Image + +The docker file is built and pushed to the AWS ECT + +The code may be found in the docker folder. + +## Infrastructure + +### Terraform state +S3 bucket name : immunisation-grafana-terraform-state + +The infrastructure is built using terraform. The code may be found in the terraform folder. + +to rebuild the docker image from the ECR to ECS, run +``` +terraform taint aws_ecs_task_definition.app +``` + +to review the docker image +``` +docker image inspect imms-fhir-api-grafana:11.0.0-22.04_stable +``` + +### vpce vs nat gateway + +By default, grafana image requires access to internet for plugins and updates. +1. Disable internet access. The updates can be disabled and plugins can be preloaded. However, this was timeboxed and timed out. +2. Permit access via VPC Endpoints. This gives access to AWS services. However updates & & info updates require internet access by default. To avoid a natgw, a proxy could be used. +3. NatGateway - this is the current solutipn. However, it should be reviewed as it is more permissive and has higher costs. \ No newline at end of file