Grafana dashboard: AWS Billing
Description: Visualize your AWS spends and estimated AWS charges per AWS resource (EC2, ELB, ...). Monthly and daily spend can be seen.

This AWS Billing dashboard is inspired by the one created by monitoringartist. This shows a birds' eye view of the billing status and the cost associated with different components.

Cloudwatch config - http://docs.grafana.org/datasources/cloudwatch/

{
  "__inputs": [],
  "__elements": {},
  "__requires": [
    {
      "type": "datasource",
      "id": "cloudwatch",
      "name": "CloudWatch",
      "version": "1.0.0"
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "9.4.7"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "text",
      "name": "Text",
      "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",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "description": "Visualize your AWS spends and estimated AWS charges per AWS resource (EC2, ELB, ...). Monthly and daily spend can be seen.",
  "editable": true,
  "fiscalYearStartMonth": 0,
  "gnetId": 18615,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "datasource": {
        "type": "cloudwatch",
        "uid": "$datasource"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-YlBl"
          },
          "links": [],
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "currencyUSD"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 4,
        "x": 0,
        "y": 0
      },
      "hideTimeOverride": true,
      "id": 1,
      "links": [],
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.4.7",
      "targets": [
        {
          "alias": "Total",
          "application": {
            "filter": ""
          },
          "datasource": {
            "uid": "$datasource"
          },
          "dimensions": {
            "Currency": "USD"
          },
          "expression": "",
          "functions": [],
          "group": {
            "filter": ""
          },
          "highResolution": false,
          "host": {
            "filter": ""
          },
          "id": "",
          "item": {
            "filter": ""
          },
          "label": "Total",
          "matchExact": true,
          "metricEditorMode": 0,
          "metricName": "EstimatedCharges",
          "metricQueryType": 0,
          "mode": 0,
          "namespace": "AWS/Billing",
          "options": {
            "showDisabledItems": false
          },
          "period": "",
          "queryMode": "Metrics",
          "refId": "A",
          "region": "us-east-1",
          "returnData": false,
          "sql": {
            "select": {
              "name": "AVG",
              "type": "function"
            }
          },
          "statistic": "Average"
        },
        {
          "alias": "{{ServiceName}}",
          "application": {
            "filter": ""
          },
          "datasource": {
            "uid": "$datasource"
          },
          "dimensions": {
            "Currency": "USD",
            "ServiceName": "*"
          },
          "expression": "",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "highResolution": false,
          "host": {
            "filter": ""
          },
          "id": "",
          "item": {
            "filter": ""
          },
          "label": "${PROP('Dim.ServiceName')}",
          "matchExact": true,
          "metricEditorMode": 0,
          "metricName": "EstimatedCharges",
          "metricQueryType": 0,
          "mode": 0,
          "namespace": "AWS/Billing",
          "options": {
            "showDisabledItems": false
          },
          "period": "",
          "queryMode": "Metrics",
          "refId": "B",
          "region": "us-east-1",
          "returnData": false,
          "sqlExpression": "",
          "statistic": "Average"
        }
      ],
      "timeFrom": "now-1M/M",
      "timeShift": "1M/M",
      "title": "Total Cost Last Month",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "cloudwatch",
        "uid": "$datasource"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-YlBl"
          },
          "links": [],
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "currencyUSD"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 4,
        "x": 4,
        "y": 0
      },
      "hideTimeOverride": true,
      "id": 5,
      "links": [],
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.4.7",
      "targets": [
        {
          "alias": "Total",
          "application": {
            "filter": ""
          },
          "datasource": {
            "uid": "$datasource"
          },
          "dimensions": {
            "Currency": "USD"
          },
          "expression": "",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": false,
          "highResolution": false,
          "host": {
            "filter": ""
          },
          "id": "",
          "item": {
            "filter": ""
          },
          "label": "Total",
          "matchExact": true,
          "metricEditorMode": 0,
          "metricName": "EstimatedCharges",
          "metricQueryType": 0,
          "mode": 0,
          "namespace": "AWS/Billing",
          "options": {
            "showDisabledItems": false
          },
          "period": "",
          "queryMode": "Metrics",
          "refId": "A",
          "region": "us-east-1",
          "returnData": false,
          "sql": {
            "select": {
              "name": "AVG",
              "type": "function"
            }
          },
          "statistic": "Average"
        },
        {
          "alias": "{{ServiceName}}",
          "application": {
            "filter": ""
          },
          "datasource": {
            "uid": "$datasource"
          },
          "dimensions": {
            "Currency": "USD",
            "ServiceName": "AmazonEC2"
          },
          "expression": "",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "highResolution": false,
          "host": {
            "filter": ""
          },
          "id": "",
          "item": {
            "filter": ""
          },
          "label": "${PROP('Dim.ServiceName')}",
          "matchExact": true,
          "metricEditorMode": 0,
          "metricName": "EstimatedCharges",
          "metricQueryType": 0,
          "mode": 0,
          "namespace": "AWS/Billing",
          "options": {
            "showDisabledItems": false
          },
          "period": "",
          "queryMode": "Metrics",
          "refId": "B",
          "region": "us-east-1",
          "returnData": false,
          "sqlExpression": "",
          "statistic": "Average"
        }
      ],
      "timeFrom": "now-1M/M",
      "title": "Total Cost This Month",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "cloudwatch",
        "uid": "$datasource"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-YlRd"
          },
          "links": [],
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "currencyUSD"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 4,
        "x": 8,
        "y": 0
      },
      "hideTimeOverride": true,
      "id": 6,
      "links": [],
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.4.7",
      "targets": [
        {
          "alias": "Total",
          "application": {
            "filter": ""
          },
          "datasource": {
            "uid": "$datasource"
          },
          "dimensions": {
            "Currency": "USD"
          },
          "expression": "",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "highResolution": false,
          "host": {
            "filter": ""
          },
          "id": "",
          "item": {
            "filter": ""
          },
          "label": "Total",
          "matchExact": true,
          "metricEditorMode": 0,
          "metricName": "EstimatedCharges",
          "metricQueryType": 0,
          "mode": 0,
          "namespace": "AWS/Billing",
          "options": {
            "showDisabledItems": false
          },
          "period": "",
          "queryMode": "Metrics",
          "refId": "A",
          "region": "us-east-1",
          "returnData": false,
          "sql": {
            "select": {
              "name": "AVG",
              "type": "function"
            }
          },
          "statistic": "Average"
        },
        {
          "alias": "{{ServiceName}}",
          "application": {
            "filter": ""
          },
          "datasource": {
            "uid": "$datasource"
          },
          "dimensions": {
            "Currency": "USD",
            "ServiceName": "AmazonEC2"
          },
          "expression": "",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": false,
          "highResolution": false,
          "host": {
            "filter": ""
          },
          "id": "",
          "item": {
            "filter": ""
          },
          "label": "${PROP('Dim.ServiceName')}",
          "matchExact": true,
          "metricEditorMode": 0,
          "metricName": "EstimatedCharges",
          "metricQueryType": 0,
          "mode": 0,
          "namespace": "AWS/Billing",
          "options": {
            "showDisabledItems": false
          },
          "period": "",
          "queryMode": "Metrics",
          "refId": "B",
          "region": "us-east-1",
          "returnData": false,
          "sqlExpression": "",
          "statistic": "Average"
        }
      ],
      "timeFrom": "now-1M/M",
      "title": "EC2 Cost This Month",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "cloudwatch",
        "uid": "$datasource"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-YlRd"
          },
          "links": [],
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "currencyUSD"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 4,
        "x": 12,
        "y": 0
      },
      "hideTimeOverride": true,
      "id": 7,
      "links": [],
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.4.7",
      "targets": [
        {
          "alias": "Total",
          "application": {
            "filter": ""
          },
          "datasource": {
            "uid": "$datasource"
          },
          "dimensions": {
            "Currency": "USD"
          },
          "expression": "",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "highResolution": false,
          "host": {
            "filter": ""
          },
          "id": "",
          "item": {
            "filter": ""
          },
          "label": "Total",
          "matchExact": true,
          "metricEditorMode": 0,
          "metricName": "EstimatedCharges",
          "metricQueryType": 0,
          "mode": 0,
          "namespace": "AWS/Billing",
          "options": {
            "showDisabledItems": false
          },
          "period": "",
          "queryMode": "Metrics",
          "refId": "A",
          "region": "us-east-1",
          "returnData": false,
          "sql": {
            "select": {
              "name": "AVG",
              "type": "function"
            }
          },
          "statistic": "Average"
        },
        {
          "alias": "{{ServiceName}}",
          "application": {
            "filter": ""
          },
          "datasource": {
            "uid": "$datasource"
          },
          "dimensions": {
            "Currency": "USD",
            "ServiceName": "AWSELB"
          },
          "expression": "",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": false,
          "highResolution": false,
          "host": {
            "filter": ""
          },
          "id": "",
          "item": {
            "filter": ""
          },
          "label": "${PROP('Dim.ServiceName')}",
          "matchExact": true,
          "metricEditorMode": 0,
          "metricName": "EstimatedCharges",
          "metricQueryType": 0,
          "mode": 0,
          "namespace": "AWS/Billing",
          "options": {
            "showDisabledItems": false
          },
          "period": "",
          "queryMode": "Metrics",
          "refId": "B",
          "region": "us-east-1",
          "returnData": false,
          "sqlExpression": "",
          "statistic": "Average"
        }
      ],
      "timeFrom": "now-1M/M",
      "title": "ELB Cost This Month",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "cloudwatch",
        "uid": "$datasource"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "links": [],
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "currencyUSD"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 4,
        "x": 16,
        "y": 0
      },
      "id": 3,
      "links": [],
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "9.4.7",
      "targets": [
        {
          "alias": "",
          "application": {
            "filter": ""
          },
          "datasource": {
            "uid": "$datasource"
          },
          "dimensions": {
            "Currency": "USD"
          },
          "expression": "",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "highResolution": false,
          "host": {
            "filter": ""
          },
          "id": "m1",
          "item": {
            "filter": ""
          },
          "label": "",
          "matchExact": true,
          "metricEditorMode": 0,
          "metricName": "EstimatedCharges",
          "metricQueryType": 0,
          "mode": 0,
          "namespace": "AWS/Billing",
          "options": {
            "showDisabledItems": false
          },
          "period": "86400",
          "queryMode": "Metrics",
          "refId": "A",
          "region": "us-east-1",
          "returnData": false,
          "sqlExpression": "",
          "statistic": "Average"
        },
        {
          "alias": "",
          "application": {
            "filter": ""
          },
          "datasource": {
            "uid": "$datasource"
          },
          "dimensions": {
            "Currency": "USD"
          },
          "expression": "RATE(m1) * PERIOD(m1)",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "highResolution": false,
          "host": {
            "filter": ""
          },
          "id": "m2",
          "item": {
            "filter": ""
          },
          "label": "",
          "matchExact": true,
          "metricEditorMode": 1,
          "metricName": "EstimatedCharges",
          "metricQueryType": 0,
          "mode": 0,
          "namespace": "AWS/Billing",
          "options": {
            "showDisabledItems": false
          },
          "period": "86400",
          "queryMode": "Metrics",
          "refId": "B",
          "region": "us-east-1",
          "returnData": false,
          "sqlExpression": "",
          "statistic": "Average"
        },
        {
          "alias": "Total estimated daily charge",
          "application": {
            "filter": ""
          },
          "datasource": {
            "uid": "$datasource"
          },
          "dimensions": {
            "Currency": "USD"
          },
          "expression": "IF(m2>0, m2)",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": false,
          "highResolution": false,
          "host": {
            "filter": ""
          },
          "id": "m3",
          "item": {
            "filter": ""
          },
          "label": "Total estimated daily charge",
          "matchExact": true,
          "metricEditorMode": 1,
          "metricName": "EstimatedCharges",
          "metricQueryType": 0,
          "mode": 0,
          "namespace": "AWS/Billing",
          "options": {
            "showDisabledItems": false
          },
          "period": "86400",
          "queryMode": "Metrics",
          "refId": "C",
          "region": "us-east-1",
          "returnData": false,
          "sqlExpression": "",
          "statistic": "Average"
        }
      ],
      "title": "Estimated total daily charges",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "cloudwatch",
        "uid": "$datasource"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-YlRd"
          },
          "links": [],
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "currencyUSD"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 4,
        "x": 20,
        "y": 0
      },
      "id": 8,
      "links": [],
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.4.7",
      "targets": [
        {
          "alias": "",
          "application": {
            "filter": ""
          },
          "datasource": {
            "uid": "$datasource"
          },
          "dimensions": {
            "Currency": "USD",
            "ServiceName": "AmazonEC2"
          },
          "expression": "",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "highResolution": false,
          "host": {
            "filter": ""
          },
          "id": "m1",
          "item": {
            "filter": ""
          },
          "label": "",
          "matchExact": true,
          "metricEditorMode": 0,
          "metricName": "EstimatedCharges",
          "metricQueryType": 0,
          "mode": 0,
          "namespace": "AWS/Billing",
          "options": {
            "showDisabledItems": false
          },
          "period": "86400",
          "queryMode": "Metrics",
          "refId": "A",
          "region": "us-east-1",
          "returnData": false,
          "sqlExpression": "",
          "statistic": "Average"
        },
        {
          "alias": "",
          "application": {
            "filter": ""
          },
          "datasource": {
            "uid": "$datasource"
          },
          "dimensions": {
            "Currency": "USD"
          },
          "expression": "RATE(m1) * PERIOD(m1)",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "highResolution": false,
          "host": {
            "filter": ""
          },
          "id": "m2",
          "item": {
            "filter": ""
          },
          "label": "",
          "matchExact": true,
          "metricEditorMode": 1,
          "metricName": "EstimatedCharges",
          "metricQueryType": 0,
          "mode": 0,
          "namespace": "AWS/Billing",
          "options": {
            "showDisabledItems": false
          },
          "period": "86400",
          "queryMode": "Metrics",
          "refId": "B",
          "region": "us-east-1",
          "returnData": false,
          "sqlExpression": "",
          "statistic": "Average"
        },
        {
          "alias": "Total estimated daily charge",
          "application": {
            "filter": ""
          },
          "datasource": {
            "uid": "$datasource"
          },
          "dimensions": {
            "Currency": "USD"
          },
          "expression": "IF(m2>0, m2)",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": false,
          "highResolution": false,
          "host": {
            "filter": ""
          },
          "id": "m3",
          "item": {
            "filter": ""
          },
          "label": "Total estimated daily charge",
          "matchExact": true,
          "metricEditorMode": 1,
          "metricName": "EstimatedCharges",
          "metricQueryType": 0,
          "mode": 0,
          "namespace": "AWS/Billing",
          "options": {
            "showDisabledItems": false
          },
          "period": "86400",
          "queryMode": "Metrics",
          "refId": "C",
          "region": "us-east-1",
          "returnData": false,
          "sqlExpression": "",
          "statistic": "Average"
        }
      ],
      "title": "EC2 daily charges",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "cloudwatch",
        "uid": "$datasource"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "bars",
            "fillOpacity": 100,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 2,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "normal"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "links": [],
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "currencyUSD"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 11,
        "w": 24,
        "x": 0,
        "y": 5
      },
      "id": 10,
      "links": [],
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "lastNotNull",
            "max"
          ],
          "displayMode": "table",
          "placement": "right",
          "showLegend": true,
          "sortBy": "Last *",
          "sortDesc": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "pluginVersion": "9.4.7",
      "targets": [
        {
          "alias": "{{ServiceName}}",
          "application": {
            "filter": ""
          },
          "datasource": {
            "uid": "$datasource"
          },
          "dimensions": {
            "Currency": "USD",
            "ServiceName": "*"
          },
          "expression": "",
          "functions": [],
          "group": {
            "filter": ""
          },
          "highResolution": false,
          "host": {
            "filter": ""
          },
          "id": "",
          "item": {
            "filter": ""
          },
          "label": "${PROP('Dim.ServiceName')}",
          "matchExact": true,
          "metricEditorMode": 0,
          "metricName": "EstimatedCharges",
          "metricQueryType": 0,
          "mode": 0,
          "namespace": "AWS/Billing",
          "options": {
            "showDisabledItems": false
          },
          "period": "1d",
          "refId": "B",
          "region": "us-east-1",
          "returnData": false,
          "statistic": "Maximum"
        }
      ],
      "title": "Estimated charges by Service",
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "cloudwatch",
        "uid": "$datasource"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 2,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "links": [],
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "currencyUSD"
        },
        "overrides": [
          {
            "__systemRef": "hideSeriesFrom",
            "matcher": {
              "id": "byNames",
              "options": {
                "mode": "exclude",
                "names": [
                  "AWSCloudTrail",
                  "AWSConfig",
                  "AWSDataTransfer",
                  "AWSDeveloperSupport",
                  "AWSELB",
                  "AWSEvents",
                  "AWSGlue",
                  "AWSLambda",
                  "AWSQueueService",
                  "AWSSecretsManager",
                  "AWSSystemsManager",
                  "AmazonCloudFront",
                  "AmazonCloudWatch",
                  "AmazonDynamoDB",
                  "AmazonEC2",
                  "AmazonECR",
                  "AmazonEFS",
                  "AmazonEKS",
                  "AmazonElastiCache",
                  "AmazonGuardDuty",
                  "AmazonInspectorV2",
                  "AmazonRDS",
                  "AmazonRoute53",
                  "AmazonS3",
                  "AmazonSNS",
                  "AmazonVPC",
                  "awskms",
                  "awswaf"
                ],
                "prefix": "All except:",
                "readOnly": true
              }
            },
            "properties": [
              {
                "id": "custom.hideFrom",
                "value": {
                  "legend": false,
                  "tooltip": false,
                  "viz": true
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 10,
        "w": 24,
        "x": 0,
        "y": 16
      },
      "id": 4,
      "links": [],
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "lastNotNull",
            "max",
            "min"
          ],
          "displayMode": "table",
          "placement": "right",
          "showLegend": true,
          "sortBy": "Last *",
          "sortDesc": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        }
      },
      "pluginVersion": "9.3.2",
      "targets": [
        {
          "alias": "Total",
          "application": {
            "filter": ""
          },
          "datasource": {
            "uid": "$datasource"
          },
          "dimensions": {
            "Currency": "USD"
          },
          "expression": "",
          "functions": [],
          "group": {
            "filter": ""
          },
          "highResolution": false,
          "host": {
            "filter": ""
          },
          "id": "",
          "item": {
            "filter": ""
          },
          "label": "Total",
          "matchExact": true,
          "metricEditorMode": 0,
          "metricName": "EstimatedCharges",
          "metricQueryType": 0,
          "mode": 0,
          "namespace": "AWS/Billing",
          "options": {
            "showDisabledItems": false
          },
          "period": "",
          "queryMode": "Metrics",
          "refId": "A",
          "region": "us-east-1",
          "returnData": false,
          "sqlExpression": "",
          "statistic": "Average"
        },
        {
          "alias": "{{ServiceName}}",
          "application": {
            "filter": ""
          },
          "datasource": {
            "uid": "$datasource"
          },
          "dimensions": {
            "Currency": "USD",
            "ServiceName": "*"
          },
          "expression": "",
          "functions": [],
          "group": {
            "filter": ""
          },
          "highResolution": false,
          "host": {
            "filter": ""
          },
          "id": "",
          "item": {
            "filter": ""
          },
          "label": "${PROP('Dim.ServiceName')}",
          "matchExact": true,
          "metricEditorMode": 0,
          "metricName": "EstimatedCharges",
          "metricQueryType": 0,
          "mode": 0,
          "namespace": "AWS/Billing",
          "options": {
            "showDisabledItems": false
          },
          "period": "",
          "queryMode": "Metrics",
          "refId": "B",
          "region": "us-east-1",
          "returnData": false,
          "sqlExpression": "",
          "statistic": "Average"
        }
      ],
      "title": "Estimated charges per day",
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "cloudwatch",
        "uid": "$datasource"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 2,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "links": [],
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green"
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "currencyUSD"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 10,
        "w": 24,
        "x": 0,
        "y": 26
      },
      "id": 3,
      "links": [],
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "lastNotNull",
            "max",
            "min"
          ],
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "desc"
        }
      },
      "pluginVersion": "9.3.2",
      "targets": [
        {
          "alias": "",
          "application": {
            "filter": ""
          },
          "datasource": {
            "uid": "$datasource"
          },
          "dimensions": {
            "Currency": "USD"
          },
          "expression": "",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "highResolution": false,
          "host": {
            "filter": ""
          },
          "id": "m1",
          "item": {
            "filter": ""
          },
          "label": "",
          "matchExact": true,
          "metricEditorMode": 0,
          "metricName": "EstimatedCharges",
          "metricQueryType": 0,
          "mode": 0,
          "namespace": "AWS/Billing",
          "options": {
            "showDisabledItems": false
          },
          "period": "86400",
          "queryMode": "Metrics",
          "refId": "A",
          "region": "us-east-1",
          "returnData": false,
          "sqlExpression": "",
          "statistic": "Average"
        },
        {
          "alias": "",
          "application": {
            "filter": ""
          },
          "datasource": {
            "uid": "$datasource"
          },
          "dimensions": {
            "Currency": "USD"
          },
          "expression": "RATE(m1) * PERIOD(m1)",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": true,
          "highResolution": false,
          "host": {
            "filter": ""
          },
          "id": "m2",
          "item": {
            "filter": ""
          },
          "label": "",
          "matchExact": true,
          "metricEditorMode": 1,
          "metricName": "EstimatedCharges",
          "metricQueryType": 0,
          "mode": 0,
          "namespace": "AWS/Billing",
          "options": {
            "showDisabledItems": false
          },
          "period": "86400",
          "queryMode": "Metrics",
          "refId": "B",
          "region": "us-east-1",
          "returnData": false,
          "sqlExpression": "",
          "statistic": "Average"
        },
        {
          "alias": "Total estimated daily charge",
          "application": {
            "filter": ""
          },
          "datasource": {
            "uid": "$datasource"
          },
          "dimensions": {
            "Currency": "USD"
          },
          "expression": "IF(m2>0, m2)",
          "functions": [],
          "group": {
            "filter": ""
          },
          "hide": false,
          "highResolution": false,
          "host": {
            "filter": ""
          },
          "id": "m3",
          "item": {
            "filter": ""
          },
          "label": "Total estimated daily charge",
          "matchExact": true,
          "metricEditorMode": 1,
          "metricName": "EstimatedCharges",
          "metricQueryType": 0,
          "mode": 0,
          "namespace": "AWS/Billing",
          "options": {
            "showDisabledItems": false
          },
          "period": "86400",
          "queryMode": "Metrics",
          "refId": "C",
          "region": "us-east-1",
          "returnData": false,
          "sqlExpression": "",
          "statistic": "Average"
        }
      ],
      "title": "Estimated daily charges",
      "type": "timeseries"
    },
    {
      "datasource": {
        "uid": ""
      },
      "editable": true,
      "error": false,
      "gridPos": {
        "h": 3,
        "w": 24,
        "x": 0,
        "y": 36
      },
      "id": 2,
      "isNew": true,
      "links": [],
      "options": {
        "code": {
          "language": "plaintext",
          "showLineNumbers": false,
          "showMiniMap": false
        },
        "content": "<a href=\"http://www.monitoringartist.com\" target=\"_blank\" title=\"Dashboard maintained by Monitoring Artist - DevOps / Docker / Kubernetes / AWS ECS / Google GCP / Zabbix / Zenoss / Terraform / Monitoring\"><img src=\"https://monitoringartist.github.io/monitoring-artist-logo-grafana.png\" height=\"30px\" /></a> | \n<a target=\"_blank\" href=\"http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/billing-metricscollected.html\">AWS CloudWatch billing documentation</a> | \n<a target=\"_blank\" href=\"https://grafana.com/dashboards/139\">Installed from Grafana.com dashboards</a>",
        "mode": "html"
      },
      "pluginVersion": "9.4.7",
      "targets": [
        {
          "datasource": {
            "uid": ""
          },
          "refId": "A"
        }
      ],
      "title": "Documentation",
      "type": "text"
    }
  ],
  "refresh": "",
  "revision": 1,
  "schemaVersion": 38,
  "style": "dark",
  "tags": [
    "monitoringartist",
    "cloudwatch",
    "techpartner"
  ],
  "templating": {
    "list": [
      {
        "current": {
          "selected": false,
          "text": "CloudWatch",
          "value": "CloudWatch"
        },
        "hide": 2,
        "includeAll": false,
        "label": "Datasource",
        "multi": false,
        "name": "datasource",
        "options": [],
        "query": "cloudwatch",
        "queryValue": "",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "type": "datasource"
      }
    ]
  },
  "time": {
    "from": "now-30d",
    "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 Billing",
  "uid": "i_KLxZyVz",
  "version": 25,
  "weekStart": ""
}