{
  "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": [

  ],
  "liveNow": false,
  "panels": [
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 1,
      "panels": [

      ],
      "title": "Overview",
      "type": "row"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "line",
            "fillOpacity": 10,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "showPoints": "never",
            "spanNulls": false
          },
          "mappings": [

          ],
          "unit": "short"
        },
        "overrides": [

        ]
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 1
      },
      "id": 2,
      "options": {
        "legend": {
          "calcs": [
            "lastNotNull",
            "max"
          ],
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "sum by (environment, dimension_TableName) (aws_dynamodb_throttled_requests_sum{environment=~\"$environment\", dimension_TableName=~\"$table_name\"})",
          "legendFormat": "{{environment}} {{dimension_TableName}} throttled",
          "range": true,
          "refId": "A"
        }
      ],
      "title": "Throttled Requests",
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "line",
            "fillOpacity": 10,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "showPoints": "never",
            "spanNulls": false
          },
          "mappings": [

          ],
          "unit": "ms"
        },
        "overrides": [

        ]
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 1
      },
      "id": 3,
      "options": {
        "legend": {
          "calcs": [
            "lastNotNull",
            "max"
          ],
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "avg by (environment, dimension_TableName) (aws_dynamodb_successful_request_latency_p95{environment=~\"$environment\", dimension_TableName=~\"$table_name\"})",
          "legendFormat": "{{environment}} {{dimension_TableName}} p95",
          "range": true,
          "refId": "A"
        }
      ],
      "title": "Successful Request Latency p95",
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "line",
            "fillOpacity": 10,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "showPoints": "never",
            "spanNulls": false
          },
          "mappings": [

          ],
          "unit": "short"
        },
        "overrides": [

        ]
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 9
      },
      "id": 4,
      "options": {
        "legend": {
          "calcs": [
            "lastNotNull",
            "max"
          ],
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "sum by (environment, dimension_TableName) (aws_dynamodb_system_errors_sum{environment=~\"$environment\", dimension_TableName=~\"$table_name\"})",
          "legendFormat": "{{environment}} {{dimension_TableName}} system errors",
          "range": true,
          "refId": "A"
        }
      ],
      "title": "System Errors",
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "line",
            "fillOpacity": 10,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "showPoints": "never",
            "spanNulls": false
          },
          "mappings": [

          ],
          "unit": "short"
        },
        "overrides": [

        ]
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 9
      },
      "id": 5,
      "options": {
        "legend": {
          "calcs": [
            "lastNotNull",
            "max"
          ],
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "sum by (environment, dimension_TableName) (aws_dynamodb_consumed_read_capacity_units_sum{environment=~\"$environment\", dimension_TableName=~\"$table_name\"})",
          "legendFormat": "{{environment}} {{dimension_TableName}} RCU consumed",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "sum by (environment, dimension_TableName) (aws_dynamodb_consumed_write_capacity_units_sum{environment=~\"$environment\", dimension_TableName=~\"$table_name\"})",
          "legendFormat": "{{environment}} {{dimension_TableName}} WCU consumed",
          "range": true,
          "refId": "B"
        }
      ],
      "title": "Consumed Capacity RCU / WCU",
      "type": "timeseries"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 17
      },
      "id": 6,
      "panels": [

      ],
      "title": "Drilldown",
      "type": "row"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "line",
            "fillOpacity": 10,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "showPoints": "never",
            "spanNulls": false
          },
          "mappings": [

          ],
          "unit": "short"
        },
        "overrides": [

        ]
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 18
      },
      "id": 7,
      "options": {
        "legend": {
          "calcs": [
            "lastNotNull",
            "max"
          ],
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "sum by (environment, dimension_TableName) (aws_dynamodb_read_throttle_events_sum{environment=~\"$environment\", dimension_TableName=~\"$table_name\"})",
          "legendFormat": "{{environment}} {{dimension_TableName}} read throttle",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "sum by (environment, dimension_TableName) (aws_dynamodb_write_throttle_events_sum{environment=~\"$environment\", dimension_TableName=~\"$table_name\"})",
          "legendFormat": "{{environment}} {{dimension_TableName}} write throttle",
          "range": true,
          "refId": "B"
        }
      ],
      "title": "Read / Write Throttle Split",
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "line",
            "fillOpacity": 10,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "showPoints": "never",
            "spanNulls": false
          },
          "mappings": [

          ],
          "unit": "short"
        },
        "overrides": [

        ]
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 18
      },
      "id": 8,
      "options": {
        "legend": {
          "calcs": [
            "lastNotNull",
            "max"
          ],
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "sum by (environment, dimension_TableName) (aws_dynamodb_user_errors_sum{environment=~\"$environment\", dimension_TableName=~\"$table_name\"})",
          "legendFormat": "{{environment}} {{dimension_TableName}} user errors",
          "range": true,
          "refId": "A"
        }
      ],
      "title": "User Errors",
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "line",
            "fillOpacity": 10,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "showPoints": "never",
            "spanNulls": false
          },
          "mappings": [

          ],
          "unit": "short"
        },
        "overrides": [

        ]
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 26
      },
      "id": 9,
      "options": {
        "legend": {
          "calcs": [
            "lastNotNull",
            "max"
          ],
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "sum by (environment, dimension_TableName) (aws_dynamodb_conditional_check_failed_requests_sum{environment=~\"$environment\", dimension_TableName=~\"$table_name\"})",
          "legendFormat": "{{environment}} {{dimension_TableName}} conditional failures",
          "range": true,
          "refId": "A"
        }
      ],
      "title": "Conditional Failures",
      "type": "timeseries"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 34
      },
      "id": 10,
      "panels": [

      ],
      "title": "Capacity",
      "type": "row"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "line",
            "fillOpacity": 10,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "showPoints": "never",
            "spanNulls": false
          },
          "mappings": [

          ],
          "unit": "short"
        },
        "overrides": [

        ]
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 35
      },
      "id": 11,
      "options": {
        "legend": {
          "calcs": [
            "lastNotNull",
            "max"
          ],
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "sum by (environment, dimension_TableName) (aws_dynamodb_consumed_read_capacity_units_sum{environment=~\"$environment\", dimension_TableName=~\"$table_name\"})",
          "legendFormat": "{{environment}} {{dimension_TableName}} RCU consumed",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "avg by (environment, dimension_TableName) (aws_dynamodb_provisioned_read_capacity_units_average{environment=~\"$environment\", dimension_TableName=~\"$table_name\"})",
          "legendFormat": "{{environment}} {{dimension_TableName}} RCU provisioned",
          "range": true,
          "refId": "B"
        }
      ],
      "title": "Read Consumed vs Provisioned",
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "line",
            "fillOpacity": 10,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "showPoints": "never",
            "spanNulls": false
          },
          "mappings": [

          ],
          "unit": "short"
        },
        "overrides": [

        ]
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 35
      },
      "id": 12,
      "options": {
        "legend": {
          "calcs": [
            "lastNotNull",
            "max"
          ],
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "sum by (environment, dimension_TableName) (aws_dynamodb_consumed_write_capacity_units_sum{environment=~\"$environment\", dimension_TableName=~\"$table_name\"})",
          "legendFormat": "{{environment}} {{dimension_TableName}} WCU consumed",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "avg by (environment, dimension_TableName) (aws_dynamodb_provisioned_write_capacity_units_average{environment=~\"$environment\", dimension_TableName=~\"$table_name\"})",
          "legendFormat": "{{environment}} {{dimension_TableName}} WCU provisioned",
          "range": true,
          "refId": "B"
        }
      ],
      "title": "Write Consumed vs Provisioned",
      "type": "timeseries"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 43
      },
      "id": 13,
      "panels": [

      ],
      "title": "Debug",
      "type": "row"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "line",
            "fillOpacity": 10,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "showPoints": "never",
            "spanNulls": false
          },
          "mappings": [

          ],
          "unit": "short"
        },
        "overrides": [

        ]
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 44
      },
      "id": 14,
      "options": {
        "legend": {
          "calcs": [
            "lastNotNull",
            "max"
          ],
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "sum by (environment, dimension_TableName) (aws_dynamodb_returned_item_count_sum{environment=~\"$environment\", dimension_TableName=~\"$table_name\"})",
          "legendFormat": "{{environment}} {{dimension_TableName}} returned items",
          "range": true,
          "refId": "A"
        }
      ],
      "title": "Returned Item Count",
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "line",
            "fillOpacity": 10,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "showPoints": "never",
            "spanNulls": false
          },
          "mappings": [

          ],
          "unit": "ms"
        },
        "overrides": [

        ]
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 44
      },
      "id": 15,
      "options": {
        "legend": {
          "calcs": [
            "lastNotNull",
            "max"
          ],
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "avg by (environment, dimension_TableName, dimension_Operation) (aws_dynamodb_successful_request_latency_average{environment=~\"$environment\", dimension_TableName=~\"$table_name\"})",
          "legendFormat": "{{environment}} {{dimension_TableName}} {{dimension_Operation}} avg",
          "range": true,
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "avg by (environment, dimension_TableName, dimension_Operation) (aws_dynamodb_successful_request_latency_p95{environment=~\"$environment\", dimension_TableName=~\"$table_name\"})",
          "legendFormat": "{{environment}} {{dimension_TableName}} {{dimension_Operation}} p95",
          "range": true,
          "refId": "B"
        }
      ],
      "title": "Operation-level Latency",
      "type": "timeseries"
    }
  ],
  "refresh": "1m",
  "schemaVersion": 39,
  "tags": [
    "aws",
    "dynamodb",
    "yace",
    "prometheus",
    "environment"
  ],
  "templating": {
    "list": [
      {
        "current": {
        },
        "hide": 0,
        "includeAll": false,
        "label": "Data source",
        "multi": false,
        "name": "datasource",
        "options": [

        ],
        "query": "prometheus",
        "refresh": 1,
        "regex": "",
        "type": "datasource"
      },
      {
        "allValue": ".+",
        "current": {
          "selected": true,
          "text": "All",
          "value": "$__all"
        },
        "datasource": {
          "type": "prometheus",
          "uid": "${datasource}"
        },
        "definition": "label_values(aws_dynamodb_consumed_read_capacity_units_sum, environment)",
        "hide": 0,
        "includeAll": true,
        "label": "environment",
        "multi": true,
        "name": "environment",
        "options": [

        ],
        "query": {
          "query": "label_values(aws_dynamodb_consumed_read_capacity_units_sum, environment)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      },
      {
        "allValue": ".+",
        "current": {
          "selected": true,
          "text": "All",
          "value": "$__all"
        },
        "datasource": {
          "type": "prometheus",
          "uid": "${datasource}"
        },
        "definition": "label_values(aws_dynamodb_consumed_read_capacity_units_sum{environment=~\"$environment\"}, dimension_TableName)",
        "hide": 0,
        "includeAll": true,
        "label": "TableName",
        "multi": true,
        "name": "table_name",
        "options": [

        ],
        "query": {
          "query": "label_values(aws_dynamodb_consumed_read_capacity_units_sum{environment=~\"$environment\"}, dimension_TableName)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      }
    ]
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {
  },
  "timezone": "browser",
  "title": "AWS DynamoDB - YACE Environment Overview",
  "uid": "aws-dynamodb-yace-env-overview",
  "version": 3,
  "weekStart": ""
}
