Grafana dashboard: dAdvisor
Description: dashboard for the dAdvisor framework


{
  "__inputs": [
    {
      "name": "DS_PROMETHEUS",
      "label": "Prometheus",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    },
    {
      "name": "VAR_TOTAL_CPU_COST",
      "type": "constant",
      "label": "TOTAL_CPU_COST",
      "value": "2.5597433845833337",
      "description": ""
    },
    {
      "name": "VAR_TOTAL_MEM_COST",
      "type": "constant",
      "label": "TOTAL_MEM_COST",
      "value": "1.0572313138696425",
      "description": ""
    },
    {
      "name": "VAR_TOTAL_TRAFFIC_COST",
      "type": "constant",
      "label": "TOTAL_TRAFFIC_COST",
      "value": "0.1844109197706132",
      "description": ""
    },
    {
      "name": "VAR_TOTAL_CPU_WASTE",
      "type": "constant",
      "label": "TOTAL_CPU_WASTE",
      "value": "2.7680316154166666",
      "description": ""
    },
    {
      "name": "VAR_TOTAL_MEM_WASTE",
      "type": "constant",
      "label": "TOTAL_MEM_WASTE",
      "value": "0.34121873931728297",
      "description": ""
    },
    {
      "name": "VAR_TIME_WINDOW",
      "type": "constant",
      "label": "TIME_WINDOW",
      "value": "1h",
      "description": ""
    },
    {
      "name": "VAR_CPU_PRICE",
      "type": "constant",
      "label": "CPU price (in USD) per core per hour",
      "value": "0.021925",
      "description": ""
    },
    {
      "name": "VAR_MEM_PRICE",
      "type": "constant",
      "label": "Memory price (in USD) per GB per hour",
      "value": "0.002938",
      "description": ""
    },
    {
      "name": "VAR_TRAFFIC_PRICE",
      "type": "constant",
      "label": "Network price (in USD) per outgoing GB",
      "value": "0.01",
      "description": ""
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.1.2"
    },
    {
      "type": "panel",
      "id": "grafana-container-panel",
      "name": "Container",
      "version": "1.0.2"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "singlestat",
      "name": "Singlestat",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "dashboard for the dAdvisor framework",
  "editable": true,
  "gnetId": 10286,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1561561085072,
  "links": [],
  "panels": [
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 28,
      "panels": [],
      "title": "Cost and Waste Visualization",
      "type": "row"
    },
    {
      "colorBackground": "white",
      "colorEdge": "#9fbfdf",
      "colorNodeBackground": "#ffffff",
      "colorNodeBorder": "#808080",
      "colorText": "#d9d9d9",
      "colorValue": "white",
      "cpuPriceHour": 0.021925,
      "datasource": "${DS_PROMETHEUS}",
      "gbPriceHour": 0.002938,
      "gridPos": {
        "h": 15,
        "w": 24,
        "x": 0,
        "y": 1
      },
      "grouped": true,
      "id": 2,
      "interval": null,
      "layoutType": "cola",
      "legend": {
        "show": true,
        "values": true
      },
      "links": [],
      "memPriceHour": 0.002938,
      "mode": "CPU Waste distribution",
      "repeat": null,
      "ruleMappings": [
        {
          "group": "other",
          "match": "Name",
          "regex": "/"
        },
        {
          "group": "receivers",
          "match": "Name",
          "regex": "receiver"
        },
        {
          "group": "sparkthings",
          "match": "Name",
          "regex": "spark"
        },
        {
          "group": "flinkthings",
          "match": "Name",
          "regex": "flink"
        },
        {
          "group": "zookeeper",
          "match": "Name",
          "regex": "zookeeper"
        },
        {
          "group": "kafka",
          "match": "Name",
          "regex": "kafka"
        },
        {
          "group": "node-exporter",
          "match": "Name",
          "regex": "exporter"
        },
        {
          "group": "socats",
          "match": "Name",
          "regex": "socat"
        },
        {
          "group": "cassandra",
          "match": "Name",
          "regex": "cassandra"
        },
        {
          "group": "timeseries-rest",
          "match": "Name",
          "regex": "rest"
        },
        {
          "group": "vault",
          "match": "Name",
          "regex": "vault"
        },
        {
          "group": "hadoop",
          "match": "Name",
          "regex": "hadoop"
        },
        {
          "group": "airflow",
          "match": "Name",
          "regex": "airflow"
        },
        {
          "group": "orchestrator",
          "match": "Name",
          "regex": "orchestrator"
        },
        {
          "group": "middlewares",
          "match": "Name",
          "regex": "mw"
        }
      ],
      "targets": [
        {
          "expr": "docker_container_info{stopped=\"\"}",
          "format": "time_series",
          "instant": true,
          "intervalFactor": 1,
          "legendFormat": "container_info",
          "refId": "A"
        },
        {
          "expr": "delta(cpu_util_container_total[$TIME_WINDOW])",
          "format": "time_series",
          "instant": true,
          "intervalFactor": 1,
          "legendFormat": "cpu_util",
          "refId": "B"
        },
        {
          "expr": "delta(mem_util_container_total[$TIME_WINDOW])",
          "format": "time_series",
          "instant": true,
          "intervalFactor": 1,
          "legendFormat": "mem_util",
          "refId": "C"
        },
        {
          "expr": "delta(cpu_waste_container_total[$TIME_WINDOW])",
          "format": "time_series",
          "instant": true,
          "intervalFactor": 1,
          "legendFormat": "cpu_waste",
          "refId": "D"
        },
        {
          "expr": "delta(mem_waste_container_total[$TIME_WINDOW])",
          "format": "time_series",
          "instant": true,
          "intervalFactor": 1,
          "legendFormat": "mem_waste",
          "refId": "E"
        },
        {
          "expr": "node_info",
          "format": "time_series",
          "instant": true,
          "intervalFactor": 1,
          "legendFormat": "node_info",
          "refId": "F"
        },
        {
          "expr": "clamp_min(sum(delta(network_container_total[$TIME_WINDOW])) by (src) - sum(delta(bytes_send_total[$TIME_WINDOW])) by (src), 0)",
          "format": "time_series",
          "instant": true,
          "intervalFactor": 1,
          "legendFormat": "network",
          "refId": "G"
        },
        {
          "expr": "sum(delta(bytes_send_total[$TIME_WINDOW])) by (src, dst)",
          "format": "time_series",
          "instant": true,
          "intervalFactor": 1,
          "legendFormat": "edges",
          "refId": "H"
        },
        {
          "expr": "sum(cpu_util_container_total) by (src_host)",
          "format": "time_series",
          "instant": true,
          "intervalFactor": 1,
          "legendFormat": "sum_cpu_util",
          "refId": "I"
        },
        {
          "expr": "sum(mem_util_container_total) by (src_host)",
          "format": "time_series",
          "instant": true,
          "intervalFactor": 1,
          "legendFormat": "sum_mem_util",
          "refId": "J"
        },
        {
          "expr": "sum(cpu_waste_container_total) by (src_host)",
          "format": "time_series",
          "instant": true,
          "intervalFactor": 1,
          "legendFormat": "sum_cpu_waste",
          "refId": "K"
        },
        {
          "expr": "sum(mem_waste_container_total) by (src_host)",
          "format": "time_series",
          "instant": true,
          "intervalFactor": 1,
          "legendFormat": "sum_mem_waste",
          "refId": "L"
        },
        {
          "expr": "sum(clamp_min(sum(network_container_total) by (src, src_host) - sum(bytes_send_total) by (src, src_host), 0)) by (src_host)",
          "format": "time_series",
          "instant": true,
          "intervalFactor": 1,
          "legendFormat": "sum_network",
          "refId": "M"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "timeWindow": "1h",
      "title": "Container-graph",
      "trafficPrice": "0.01",
      "trafficPriceReduction": "136.07",
      "type": "grafana-container-panel",
      "valueName": "current"
    },
    {
      "collapsed": true,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 16
      },
      "id": 26,
      "panels": [
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorValue": false,
          "colors": [
            "#299c46",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "datasource": "${DS_PROMETHEUS}",
          "decimals": 2,
          "format": "currencyUSD",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 8,
            "w": 4,
            "x": 0,
            "y": 2
          },
          "id": 18,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "name": "value to text",
              "value": 1
            },
            {
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "",
          "prefixFontSize": "50%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "tableColumn": "",
          "targets": [
            {
              "expr": "$TOTAL_CPU_COST + $TOTAL_MEM_COST + $TOTAL_TRAFFIC_COST + $TOTAL_CPU_WASTE + $TOTAL_MEM_WASTE",
              "format": "time_series",
              "intervalFactor": 1,
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "Total amount spend",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "0.00",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorValue": false,
          "colors": [
            "#299c46",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "datasource": "${DS_PROMETHEUS}",
          "decimals": 2,
          "format": "currencyUSD",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 4,
            "w": 5,
            "x": 4,
            "y": 2
          },
          "id": 19,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "name": "value to text",
              "value": 1
            },
            {
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "",
          "prefixFontSize": "50%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "tableColumn": "",
          "targets": [
            {
              "expr": "$TOTAL_CPU_COST + $TOTAL_MEM_COST + $TOTAL_TRAFFIC_COST",
              "format": "time_series",
              "intervalFactor": 1,
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "Total Effective Cost",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "0.00",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorValue": false,
          "colors": [
            "#299c46",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "decimals": 2,
          "format": "currencyUSD",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 4,
            "w": 5,
            "x": 9,
            "y": 2
          },
          "id": 30,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "name": "value to text",
              "value": 1
            },
            {
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "",
          "prefixFontSize": "50%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "tableColumn": "",
          "targets": [
            {
              "expr": "$TOTAL_CPU_COST",
              "format": "time_series",
              "intervalFactor": 1,
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "Effective CPU cost",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "0.00",
              "value": "null"
            }
          ],
          "valueName": "avg"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorValue": false,
          "colors": [
            "#299c46",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "decimals": 2,
          "format": "currencyUSD",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 4,
            "w": 5,
            "x": 14,
            "y": 2
          },
          "id": 31,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "name": "value to text",
              "value": 1
            },
            {
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "",
          "prefixFontSize": "50%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "tableColumn": "",
          "targets": [
            {
              "expr": "$TOTAL_MEM_COST",
              "format": "time_series",
              "intervalFactor": 1,
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "Effective Memory cost",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "0.00",
              "value": "null"
            }
          ],
          "valueName": "avg"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorValue": false,
          "colors": [
            "#299c46",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "decimals": 2,
          "format": "currencyUSD",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 4,
            "w": 5,
            "x": 19,
            "y": 2
          },
          "id": 32,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "name": "value to text",
              "value": 1
            },
            {
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "",
          "prefixFontSize": "50%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "tableColumn": "",
          "targets": [
            {
              "expr": "$TOTAL_TRAFFIC_COST",
              "format": "time_series",
              "intervalFactor": 1,
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "Effective Traffic cost",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "0.00",
              "value": "null"
            }
          ],
          "valueName": "avg"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorValue": false,
          "colors": [
            "#299c46",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "datasource": "${DS_PROMETHEUS}",
          "decimals": 2,
          "format": "currencyUSD",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 4,
            "w": 5,
            "x": 4,
            "y": 6
          },
          "id": 20,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "name": "value to text",
              "value": 1
            },
            {
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "",
          "prefixFontSize": "50%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "tableColumn": "",
          "targets": [
            {
              "expr": "$TOTAL_CPU_WASTE + $TOTAL_MEM_WASTE",
              "format": "time_series",
              "intervalFactor": 1,
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "Total Waste",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "0.00",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorValue": false,
          "colors": [
            "#299c46",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "datasource": "${DS_PROMETHEUS}",
          "decimals": 2,
          "format": "currencyUSD",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 4,
            "w": 5,
            "x": 9,
            "y": 6
          },
          "id": 33,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "name": "value to text",
              "value": 1
            },
            {
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "",
          "prefixFontSize": "50%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "tableColumn": "",
          "targets": [
            {
              "expr": "$TOTAL_CPU_WASTE",
              "format": "time_series",
              "intervalFactor": 1,
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "CPU Waste",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "0.00",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorValue": false,
          "colors": [
            "#299c46",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "datasource": "${DS_PROMETHEUS}",
          "decimals": 2,
          "format": "currencyUSD",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 4,
            "w": 5,
            "x": 14,
            "y": 6
          },
          "id": 34,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "name": "value to text",
              "value": 1
            },
            {
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "",
          "prefixFontSize": "50%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "tableColumn": "",
          "targets": [
            {
              "expr": "$TOTAL_MEM_WASTE",
              "format": "time_series",
              "intervalFactor": 1,
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "Memory Waste",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "0.00",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorValue": false,
          "colors": [
            "#299c46",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "datasource": "${DS_PROMETHEUS}",
          "decimals": 2,
          "format": "currencyUSD",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 4,
            "w": 5,
            "x": 19,
            "y": 6
          },
          "id": 35,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "name": "value to text",
              "value": 1
            },
            {
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "",
          "prefixFontSize": "50%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "tableColumn": "",
          "targets": [
            {
              "expr": "0",
              "format": "time_series",
              "intervalFactor": 1,
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "Traffic waste",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        }
      ],
      "title": "Cost and Waste Stats",
      "type": "row"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 17
      },
      "id": 41,
      "panels": [],
      "title": "Cost and Waste Ratio",
      "type": "row"
    },
    {
      "cacheTimeout": null,
      "gridPos": {
        "h": 4,
        "w": 8,
        "x": 0,
        "y": 18
      },
      "id": 37,
      "links": [],
      "options": {
        "maxValue": 100,
        "minValue": 0,
        "orientation": "auto",
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "thresholds": [
          {
            "color": "green",
            "index": 0,
            "value": null
          },
          {
            "color": "red",
            "index": 1,
            "value": 50
          }
        ],
        "valueMappings": [],
        "valueOptions": {
          "decimals": null,
          "prefix": "",
          "stat": "mean",
          "suffix": "",
          "unit": "percent"
        }
      },
      "pluginVersion": "6.1.2",
      "targets": [
        {
          "expr": "100 * ($TOTAL_CPU_WASTE + $TOTAL_MEM_WASTE) / ($TOTAL_CPU_COST + $TOTAL_MEM_COST + $TOTAL_TRAFFIC_COST + $TOTAL_CPU_WASTE + $TOTAL_MEM_WASTE)",
          "format": "time_series",
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Waste ratio",
      "type": "gauge"
    },
    {
      "cacheTimeout": null,
      "gridPos": {
        "h": 4,
        "w": 8,
        "x": 8,
        "y": 18
      },
      "id": 38,
      "links": [],
      "options": {
        "maxValue": 100,
        "minValue": 0,
        "orientation": "auto",
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "thresholds": [
          {
            "color": "green",
            "index": 0,
            "value": null
          },
          {
            "color": "red",
            "index": 1,
            "value": 50
          }
        ],
        "valueMappings": [],
        "valueOptions": {
          "decimals": null,
          "prefix": "",
          "stat": "mean",
          "suffix": "",
          "unit": "percent"
        }
      },
      "pluginVersion": "6.1.2",
      "targets": [
        {
          "expr": "100 * ($TOTAL_CPU_WASTE) / ($TOTAL_CPU_COST + $TOTAL_CPU_WASTE)",
          "format": "time_series",
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "CPU Waste ratio",
      "type": "gauge"
    },
    {
      "cacheTimeout": null,
      "gridPos": {
        "h": 4,
        "w": 8,
        "x": 16,
        "y": 18
      },
      "id": 39,
      "links": [],
      "options": {
        "maxValue": 100,
        "minValue": 0,
        "orientation": "auto",
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "thresholds": [
          {
            "color": "green",
            "index": 0,
            "value": null
          },
          {
            "color": "red",
            "index": 1,
            "value": 50
          }
        ],
        "valueMappings": [],
        "valueOptions": {
          "decimals": null,
          "prefix": "",
          "stat": "mean",
          "suffix": "",
          "unit": "percent"
        }
      },
      "pluginVersion": "6.1.2",
      "targets": [
        {
          "expr": "100 * ($TOTAL_MEM_WASTE) / ($TOTAL_MEM_COST + $TOTAL_MEM_WASTE)",
          "format": "time_series",
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Memory Waste ratio",
      "type": "gauge"
    },
    {
      "collapsed": true,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 22
      },
      "id": 24,
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "decimals": 0,
          "fill": 2,
          "gridPos": {
            "h": 5,
            "w": 14,
            "x": 0,
            "y": 8
          },
          "id": 22,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "count(docker_container_info{stopped=\"\"})",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "containers",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Number of containers",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 0,
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "decimals": null,
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "cacheTimeout": null,
          "dashLength": 10,
          "dashes": false,
          "decimals": 0,
          "fill": 1,
          "gridPos": {
            "h": 5,
            "w": 10,
            "x": 14,
            "y": 8
          },
          "id": 8,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "count(count(node_info) by (host))",
              "format": "time_series",
              "instant": false,
              "intervalFactor": 1,
              "legendFormat": "Nodes",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Number of nodes",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        }
      ],
      "title": "Debug information",
      "type": "row"
    }
  ],
  "refresh": "5s",
  "schemaVersion": 18,
  "style": "light",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "value": "${VAR_TOTAL_CPU_COST}",
          "text": "${VAR_TOTAL_CPU_COST}"
        },
        "hide": 2,
        "label": null,
        "name": "TOTAL_CPU_COST",
        "options": [
          {
            "value": "${VAR_TOTAL_CPU_COST}",
            "text": "${VAR_TOTAL_CPU_COST}"
          }
        ],
        "query": "${VAR_TOTAL_CPU_COST}",
        "skipUrlSync": false,
        "type": "constant"
      },
      {
        "current": {
          "value": "${VAR_TOTAL_MEM_COST}",
          "text": "${VAR_TOTAL_MEM_COST}"
        },
        "hide": 2,
        "label": null,
        "name": "TOTAL_MEM_COST",
        "options": [
          {
            "value": "${VAR_TOTAL_MEM_COST}",
            "text": "${VAR_TOTAL_MEM_COST}"
          }
        ],
        "query": "${VAR_TOTAL_MEM_COST}",
        "skipUrlSync": false,
        "type": "constant"
      },
      {
        "current": {
          "value": "${VAR_TOTAL_TRAFFIC_COST}",
          "text": "${VAR_TOTAL_TRAFFIC_COST}"
        },
        "hide": 2,
        "label": null,
        "name": "TOTAL_TRAFFIC_COST",
        "options": [
          {
            "value": "${VAR_TOTAL_TRAFFIC_COST}",
            "text": "${VAR_TOTAL_TRAFFIC_COST}"
          }
        ],
        "query": "${VAR_TOTAL_TRAFFIC_COST}",
        "skipUrlSync": false,
        "type": "constant"
      },
      {
        "current": {
          "value": "${VAR_TOTAL_CPU_WASTE}",
          "text": "${VAR_TOTAL_CPU_WASTE}"
        },
        "hide": 2,
        "label": null,
        "name": "TOTAL_CPU_WASTE",
        "options": [
          {
            "value": "${VAR_TOTAL_CPU_WASTE}",
            "text": "${VAR_TOTAL_CPU_WASTE}"
          }
        ],
        "query": "${VAR_TOTAL_CPU_WASTE}",
        "skipUrlSync": false,
        "type": "constant"
      },
      {
        "current": {
          "value": "${VAR_TOTAL_MEM_WASTE}",
          "text": "${VAR_TOTAL_MEM_WASTE}"
        },
        "hide": 2,
        "label": null,
        "name": "TOTAL_MEM_WASTE",
        "options": [
          {
            "value": "${VAR_TOTAL_MEM_WASTE}",
            "text": "${VAR_TOTAL_MEM_WASTE}"
          }
        ],
        "query": "${VAR_TOTAL_MEM_WASTE}",
        "skipUrlSync": false,
        "type": "constant"
      },
      {
        "current": {
          "value": "${VAR_TIME_WINDOW}",
          "text": "${VAR_TIME_WINDOW}"
        },
        "hide": 2,
        "label": null,
        "name": "TIME_WINDOW",
        "options": [
          {
            "value": "${VAR_TIME_WINDOW}",
            "text": "${VAR_TIME_WINDOW}"
          }
        ],
        "query": "${VAR_TIME_WINDOW}",
        "skipUrlSync": false,
        "type": "constant"
      },
      {
        "current": {
          "value": "${VAR_CPU_PRICE}",
          "text": "${VAR_CPU_PRICE}"
        },
        "hide": 0,
        "label": "CPU price (in USD) per core per hour",
        "name": "CPU_PRICE",
        "options": [
          {
            "value": "${VAR_CPU_PRICE}",
            "text": "${VAR_CPU_PRICE}"
          }
        ],
        "query": "${VAR_CPU_PRICE}",
        "skipUrlSync": false,
        "type": "constant"
      },
      {
        "current": {
          "value": "${VAR_MEM_PRICE}",
          "text": "${VAR_MEM_PRICE}"
        },
        "hide": 0,
        "label": "Memory price (in USD) per GB per hour",
        "name": "MEM_PRICE",
        "options": [
          {
            "value": "${VAR_MEM_PRICE}",
            "text": "${VAR_MEM_PRICE}"
          }
        ],
        "query": "${VAR_MEM_PRICE}",
        "skipUrlSync": false,
        "type": "constant"
      },
      {
        "current": {
          "value": "${VAR_TRAFFIC_PRICE}",
          "text": "${VAR_TRAFFIC_PRICE}"
        },
        "hide": 0,
        "label": "Network price (in USD) per outgoing GB",
        "name": "TRAFFIC_PRICE",
        "options": [
          {
            "value": "${VAR_TRAFFIC_PRICE}",
            "text": "${VAR_TRAFFIC_PRICE}"
          }
        ],
        "query": "${VAR_TRAFFIC_PRICE}",
        "skipUrlSync": false,
        "type": "constant"
      }
    ]
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {
    "hidden": true,
    "refresh_intervals": [
      "5s"
    ],
    "time_options": [
      "5m"
    ]
  },
  "timezone": "",
  "title": "dAdvisor",
  "uid": "st9fPw6mk",
  "version": 10
}