apiVersion: v1
data:
  telemeter.json: |-
    {
      "annotations": {
        "list": [
          {
            "builtIn": 1,
            "datasource": "-- Grafana --",
            "enable": true,
            "hide": true,
            "iconColor": "rgba(0, 211, 255, 1)",
            "name": "Annotations & Alerts",
            "type": "dashboard"
          }
        ]
      },
      "editable": true,
      "gnetId": null,
      "graphTooltip": 1,
      "id": 117,
      "iteration": 1610358450922,
      "links": [

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

          ],
          "title": "Telemeter v1 (/authorize & /upload)",
          "type": "row"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorValue": true,
          "colors": [
            "#d44a3a",
            "rgba(237, 129, 40, 0.89)",
            "#299c46"
          ],
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {

              }
            },
            "overrides": [

            ]
          },
          "format": "percentunit",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 8,
            "w": 5,
            "x": 0,
            "y": 1
          },
          "id": 113,
          "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,
            "ymax": null,
            "ymin": null
          },
          "tableColumn": "",
          "targets": [
            {
              "expr": "1 -\nsum(increase(haproxy_server_http_responses_total{route=~\"telemeter-server-authorize|telemeter-server-upload\",code=\"5xx\"}[28d]))\n/\nsum(increase(haproxy_server_http_responses_total{route=~\"telemeter-server-authorize|telemeter-server-upload\"}[28d]))\n",
              "instant": true,
              "refId": "A"
            }
          ],
          "thresholds": "0.98,0.985",
          "timeFrom": null,
          "timeShift": null,
          "title": "Availability (28d)",
          "type": "singlestat",
          "valueFontSize": "120%",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "aliasColors": {

          },
          "bars": false,
          "cacheTimeout": null,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {

              },
              "links": [

              ]
            },
            "overrides": [

            ]
          },
          "fill": 10,
          "fillGradient": 0,
          "gridPos": {
            "h": 8,
            "w": 19,
            "x": 5,
            "y": 1
          },
          "hiddenSeries": false,
          "id": 114,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": false,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 0,
          "links": [

          ],
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.2.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {

            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "(\n  (\n    1 -\n    sum(increase(haproxy_server_http_responses_total{route=~\"telemeter-server-authorize|telemeter-server-upload\",code=\"5xx\"}[28d]))\n    /\n    sum(increase(haproxy_server_http_responses_total{route=~\"telemeter-server-authorize|telemeter-server-upload\"}[28d]))\n  ) - 0.98\n)\n/ \n(1 - 0.98)",
              "instant": false,
              "interval": "",
              "intervalFactor": 10,
              "legendFormat": "errorbudget",
              "refId": "A"
            }
          ],
          "thresholds": [

          ],
          "timeFrom": null,
          "timeRegions": [

          ],
          "timeShift": null,
          "title": "Error Budget (28d)",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": [

            ]
          },
          "yaxes": [
            {
              "decimals": null,
              "format": "percentunit",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "datasource": null,
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 9
          },
          "id": 102,
          "title": "/authorize",
          "type": "row"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorPostfix": false,
          "colorValue": true,
          "colors": [
            "#d44a3a",
            "rgba(237, 129, 40, 0.89)",
            "#299c46"
          ],
          "datasource": "$datasource",
          "decimals": 3,
          "fieldConfig": {
            "defaults": {
              "custom": {

              }
            },
            "overrides": [

            ]
          },
          "format": "percentunit",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 9,
            "w": 3,
            "x": 0,
            "y": 10
          },
          "id": 104,
          "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,
            "ymax": null,
            "ymin": null
          },
          "tableColumn": "",
          "targets": [
            {
              "expr": "1 -\nsum(increase(haproxy_server_http_responses_total{route=\"telemeter-server-authorize\",code=\"5xx\"}[$__range]))\n/\nsum(increase(haproxy_server_http_responses_total{route=\"telemeter-server-authorize\"}[$__range]))",
              "instant": true,
              "refId": "A"
            }
          ],
          "thresholds": ".98,0.985",
          "timeFrom": null,
          "timeShift": null,
          "title": "Availability (selected time range)",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "aliasColors": {
            "2xx": "semi-dark-green",
            "{code=\"200\"}": "dark-green",
            "{code=\"429\"}": "dark-orange",
            "{code=\"500\"}": "dark-red"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {

              },
              "links": [

              ]
            },
            "overrides": [

            ]
          },
          "fill": 10,
          "fillGradient": 0,
          "gridPos": {
            "h": 9,
            "w": 7,
            "x": 3,
            "y": 10
          },
          "hiddenSeries": false,
          "id": 70,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 0,
          "links": [

          ],
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "paceLength": 10,
          "percentage": false,
          "pluginVersion": "7.2.1",
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "repeat": "handler",
          "repeatDirection": "v",
          "seriesOverrides": [
            {
              "alias": "1xx",
              "color": "#FADE2A"
            },
            {
              "alias": "2xx",
              "color": "#56A64B"
            },
            {
              "alias": "3xx",
              "color": "#5794F2"
            },
            {
              "alias": "4xx",
              "color": "#FF9830"
            },
            {
              "alias": "5xx",
              "color": "#C4162A"
            }
          ],
          "spaceLength": 10,
          "stack": true,
          "steppedLine": false,
          "targets": [
            {
              "expr": "sum by (code) (rate(haproxy_server_http_responses_total{route=\"telemeter-server-authorize\"}[$interval]))",
              "format": "time_series",
              "interval": "",
              "intervalFactor": 1,
              "legendFormat": "{{code}}",
              "refId": "A"
            }
          ],
          "thresholds": [

          ],
          "timeFrom": null,
          "timeRegions": [

          ],
          "timeShift": null,
          "title": "Requests",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": [

            ]
          },
          "yaxes": [
            {
              "format": "reqps",
              "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
          }
        },
        {
          "aliasColors": {
            "2xx": "semi-dark-green",
            "{code=\"200\"}": "dark-green",
            "{code=\"429\"}": "dark-orange",
            "{code=\"500\"}": "dark-red"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {

              },
              "links": [

              ]
            },
            "overrides": [

            ]
          },
          "fill": 10,
          "fillGradient": 0,
          "gridPos": {
            "h": 9,
            "w": 7,
            "x": 10,
            "y": 10
          },
          "hiddenSeries": false,
          "id": 96,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 0,
          "links": [

          ],
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "paceLength": 10,
          "percentage": false,
          "pluginVersion": "7.2.1",
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "repeatDirection": "v",
          "seriesOverrides": [
            {
              "alias": "errors",
              "color": "#C4162A"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "sum(rate(haproxy_server_http_responses_total{route=\"telemeter-server-authorize\",code=\"5xx\"}[$interval])) / sum(rate(haproxy_server_http_responses_total{route=\"telemeter-server-authorize\"}[$interval]))",
              "format": "time_series",
              "interval": "",
              "intervalFactor": 1,
              "legendFormat": "errors",
              "refId": "A"
            }
          ],
          "thresholds": [

          ],
          "timeFrom": null,
          "timeRegions": [

          ],
          "timeShift": null,
          "title": "Errors",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": [

            ]
          },
          "yaxes": [
            {
              "decimals": null,
              "format": "percentunit",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {
            "2xx": "semi-dark-green",
            "{code=\"200\"}": "dark-green",
            "{code=\"429\"}": "dark-orange",
            "{code=\"500\"}": "dark-red"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {

              },
              "links": [

              ]
            },
            "overrides": [

            ]
          },
          "fill": 0,
          "fillGradient": 0,
          "gridPos": {
            "h": 9,
            "w": 7,
            "x": 17,
            "y": 10
          },
          "hiddenSeries": false,
          "id": 91,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "links": [

          ],
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "paceLength": 10,
          "percentage": false,
          "pluginVersion": "7.2.1",
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "repeatDirection": "v",
          "seriesOverrides": [
            {
              "alias": "99th",
              "color": "#FA6400"
            },
            {
              "alias": "90th",
              "color": "#E0B400"
            },
            {
              "alias": "50th",
              "color": "#37872D",
              "fill": 10,
              "linewidth": 0
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "histogram_quantile(0.99, sum by (le) (rate(http_request_duration_seconds_bucket{job=\"telemeter-server\",code!~\"5..\",handler=\"authorize\"}[$interval])))",
              "format": "time_series",
              "interval": "",
              "intervalFactor": 1,
              "legendFormat": "99th",
              "refId": "A"
            },
            {
              "expr": "histogram_quantile(0.9, sum by (le) (rate(http_request_duration_seconds_bucket{job=\"telemeter-server\",code!~\"5..\",handler=\"authorize\"}[$interval])))",
              "format": "time_series",
              "interval": "",
              "intervalFactor": 1,
              "legendFormat": "90th",
              "refId": "B"
            },
            {
              "expr": "histogram_quantile(0.5, sum by (le) (rate(http_request_duration_seconds_bucket{job=\"telemeter-server\",code!~\"5..\",handler=\"authorize\"}[$interval])))",
              "format": "time_series",
              "interval": "",
              "intervalFactor": 1,
              "legendFormat": "50th",
              "refId": "C"
            }
          ],
          "thresholds": [

          ],
          "timeFrom": null,
          "timeRegions": [

          ],
          "timeShift": null,
          "title": "Duration",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": [

            ]
          },
          "yaxes": [
            {
              "format": "s",
              "label": null,
              "logBase": 10,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "datasource": null,
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 19
          },
          "id": 100,
          "title": "/upload",
          "type": "row"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorPostfix": false,
          "colorValue": true,
          "colors": [
            "#d44a3a",
            "rgba(237, 129, 40, 0.89)",
            "#299c46"
          ],
          "datasource": "$datasource",
          "decimals": 3,
          "fieldConfig": {
            "defaults": {
              "custom": {

              }
            },
            "overrides": [

            ]
          },
          "format": "percentunit",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 9,
            "w": 3,
            "x": 0,
            "y": 20
          },
          "id": 105,
          "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,
            "ymax": null,
            "ymin": null
          },
          "tableColumn": "",
          "targets": [
            {
              "expr": "1 -\nsum(increase(haproxy_server_http_responses_total{route=~\"telemeter-server-authorize|telemeter-server-upload\",code=\"5xx\"}[$__range]))\n/\nsum(increase(haproxy_server_http_responses_total{route=~\"telemeter-server-authorize|telemeter-server-upload\"}[$__range]))\n",
              "instant": true,
              "refId": "A"
            }
          ],
          "thresholds": ".98,0.985",
          "timeFrom": null,
          "timeShift": null,
          "title": "Availability (selected time range)",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "aliasColors": {
            "2xx": "semi-dark-green",
            "{code=\"200\"}": "dark-green",
            "{code=\"429\"}": "dark-orange",
            "{code=\"500\"}": "dark-red"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {

              },
              "links": [

              ]
            },
            "overrides": [

            ]
          },
          "fill": 10,
          "fillGradient": 0,
          "gridPos": {
            "h": 9,
            "w": 7,
            "x": 3,
            "y": 20
          },
          "hiddenSeries": false,
          "id": 94,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 0,
          "links": [

          ],
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "paceLength": 10,
          "percentage": false,
          "pluginVersion": "7.2.1",
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "repeatDirection": "v",
          "seriesOverrides": [
            {
              "alias": "1xx",
              "color": "#FADE2A"
            },
            {
              "alias": "2xx",
              "color": "#56A64B"
            },
            {
              "alias": "3xx",
              "color": "#5794F2"
            },
            {
              "alias": "4xx",
              "color": "#FF9830"
            },
            {
              "alias": "5xx",
              "color": "#C4162A"
            }
          ],
          "spaceLength": 10,
          "stack": true,
          "steppedLine": false,
          "targets": [
            {
              "expr": "sum by (code) (rate(haproxy_server_http_responses_total{route=\"telemeter-server-upload\"}[$interval]))",
              "format": "time_series",
              "interval": "",
              "intervalFactor": 1,
              "legendFormat": "{{code}}",
              "refId": "A"
            }
          ],
          "thresholds": [

          ],
          "timeFrom": null,
          "timeRegions": [

          ],
          "timeShift": null,
          "title": "Requests",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": [

            ]
          },
          "yaxes": [
            {
              "format": "reqps",
              "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
          }
        },
        {
          "aliasColors": {
            "2xx": "semi-dark-green",
            "{code=\"200\"}": "dark-green",
            "{code=\"429\"}": "dark-orange",
            "{code=\"500\"}": "dark-red"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {

              },
              "links": [

              ]
            },
            "overrides": [

            ]
          },
          "fill": 10,
          "fillGradient": 0,
          "gridPos": {
            "h": 9,
            "w": 7,
            "x": 10,
            "y": 20
          },
          "hiddenSeries": false,
          "id": 97,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 0,
          "links": [

          ],
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "paceLength": 10,
          "percentage": false,
          "pluginVersion": "7.2.1",
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "repeatDirection": "v",
          "seriesOverrides": [
            {
              "alias": "errors",
              "color": "#C4162A"
            }
          ],
          "spaceLength": 10,
          "stack": true,
          "steppedLine": false,
          "targets": [
            {
              "expr": "sum(rate(haproxy_server_http_responses_total{route=\"telemeter-server-upload\",code=\"5xx\"}[$interval])) / sum(rate(haproxy_server_http_responses_total{route=\"telemeter-server-upload\"}[$interval]))",
              "format": "time_series",
              "interval": "",
              "intervalFactor": 1,
              "legendFormat": "errors",
              "refId": "A"
            }
          ],
          "thresholds": [

          ],
          "timeFrom": null,
          "timeRegions": [

          ],
          "timeShift": null,
          "title": "Errors",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": [

            ]
          },
          "yaxes": [
            {
              "decimals": null,
              "format": "percentunit",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {
            "2xx": "semi-dark-green",
            "{code=\"200\"}": "dark-green",
            "{code=\"429\"}": "dark-orange",
            "{code=\"500\"}": "dark-red"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {

              },
              "links": [

              ]
            },
            "overrides": [

            ]
          },
          "fill": 0,
          "fillGradient": 0,
          "gridPos": {
            "h": 9,
            "w": 7,
            "x": 17,
            "y": 20
          },
          "hiddenSeries": false,
          "id": 92,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "links": [

          ],
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "paceLength": 10,
          "percentage": false,
          "pluginVersion": "7.2.1",
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "repeatDirection": "v",
          "seriesOverrides": [
            {
              "alias": "99th",
              "color": "#FA6400"
            },
            {
              "alias": "90th",
              "color": "#E0B400"
            },
            {
              "alias": "50th",
              "color": "#37872D",
              "fill": 10,
              "linewidth": 0
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "histogram_quantile(0.99, sum by (le) (rate(http_request_duration_seconds_bucket{job=\"telemeter-server\",code!~\"5..\",handler=\"upload\"}[$interval])))",
              "format": "time_series",
              "interval": "",
              "intervalFactor": 1,
              "legendFormat": "99th",
              "refId": "A"
            },
            {
              "expr": "histogram_quantile(0.9, sum by (le) (rate(http_request_duration_seconds_bucket{job=\"telemeter-server\",code!~\"5..\",handler=\"upload\"}[$interval])))",
              "format": "time_series",
              "interval": "",
              "intervalFactor": 1,
              "legendFormat": "90th",
              "refId": "B"
            },
            {
              "expr": "histogram_quantile(0.5, sum by (le) (rate(http_request_duration_seconds_bucket{job=\"telemeter-server\",code!~\"5..\",handler=\"upload\"}[$interval])))",
              "format": "time_series",
              "interval": "",
              "intervalFactor": 1,
              "legendFormat": "50th",
              "refId": "C"
            }
          ],
          "thresholds": [

          ],
          "timeFrom": null,
          "timeRegions": [

          ],
          "timeShift": null,
          "title": "Duration",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": [

            ]
          },
          "yaxes": [
            {
              "format": "s",
              "label": null,
              "logBase": 10,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "collapsed": true,
          "datasource": null,
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 29
          },
          "id": 52,
          "panels": [
            {
              "cacheTimeout": null,
              "colorBackground": false,
              "colorPostfix": false,
              "colorValue": true,
              "colors": [
                "#d44a3a",
                "rgba(237, 129, 40, 0.89)",
                "#299c46"
              ],
              "datasource": "$datasource",
              "decimals": 3,
              "fieldConfig": {
                "defaults": {
                  "custom": {

                  }
                },
                "overrides": [

                ]
              },
              "format": "percentunit",
              "gauge": {
                "maxValue": 100,
                "minValue": 0,
                "show": false,
                "thresholdLabels": false,
                "thresholdMarkers": true
              },
              "gridPos": {
                "h": 9,
                "w": 3,
                "x": 0,
                "y": 30
              },
              "id": 106,
              "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,
                "ymax": null,
                "ymin": null
              },
              "tableColumn": "",
              "targets": [
                {
                  "expr": "1 - \nsum(increase(haproxy_server_http_responses_total{route=\"telemeter-server-metrics-v1-receive\",code=\"5xx\"}[$__range]))\n/\nsum(increase(haproxy_server_http_responses_total{route=\"telemeter-server-metrics-v1-receive\"}[$__range]))",
                  "instant": true,
                  "refId": "A"
                }
              ],
              "thresholds": ".90,0.92",
              "timeFrom": null,
              "timeShift": null,
              "title": "Availability (selected time range)",
              "type": "singlestat",
              "valueFontSize": "80%",
              "valueMaps": [
                {
                  "op": "=",
                  "text": "N/A",
                  "value": "null"
                }
              ],
              "valueName": "current"
            },
            {
              "aliasColors": {
                "2xx": "semi-dark-green",
                "{code=\"200\"}": "dark-green",
                "{code=\"429\"}": "dark-orange",
                "{code=\"500\"}": "dark-red"
              },
              "bars": false,
              "dashLength": 10,
              "dashes": false,
              "datasource": "$datasource",
              "fieldConfig": {
                "defaults": {
                  "custom": {

                  },
                  "links": [

                  ]
                },
                "overrides": [

                ]
              },
              "fill": 10,
              "fillGradient": 0,
              "gridPos": {
                "h": 9,
                "w": 7,
                "x": 3,
                "y": 30
              },
              "hiddenSeries": false,
              "id": 95,
              "legend": {
                "avg": false,
                "current": false,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": false
              },
              "lines": true,
              "linewidth": 0,
              "links": [

              ],
              "nullPointMode": "null",
              "options": {
                "alertThreshold": true
              },
              "paceLength": 10,
              "percentage": false,
              "pluginVersion": "7.2.1",
              "pointradius": 5,
              "points": false,
              "renderer": "flot",
              "repeatDirection": "v",
              "seriesOverrides": [
                {
                  "alias": "1xx",
                  "color": "#FADE2A"
                },
                {
                  "alias": "2xx",
                  "color": "#56A64B"
                },
                {
                  "alias": "3xx",
                  "color": "#5794F2"
                },
                {
                  "alias": "4xx",
                  "color": "#FF9830"
                },
                {
                  "alias": "5xx",
                  "color": "#C4162A"
                }
              ],
              "spaceLength": 10,
              "stack": true,
              "steppedLine": false,
              "targets": [
                {
                  "expr": "sum by (code) (rate(haproxy_server_http_responses_total{route=\"telemeter-server-metrics-v1-receive\"}[$interval]))",
                  "format": "time_series",
                  "interval": "",
                  "intervalFactor": 1,
                  "legendFormat": "{{code}}",
                  "refId": "A"
                }
              ],
              "thresholds": [

              ],
              "timeFrom": null,
              "timeRegions": [

              ],
              "timeShift": null,
              "title": "Requests",
              "tooltip": {
                "shared": true,
                "sort": 0,
                "value_type": "individual"
              },
              "type": "graph",
              "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": [

                ]
              },
              "yaxes": [
                {
                  "format": "reqps",
                  "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
              }
            },
            {
              "aliasColors": {
                "2xx": "semi-dark-green",
                "{code=\"200\"}": "dark-green",
                "{code=\"429\"}": "dark-orange",
                "{code=\"500\"}": "dark-red"
              },
              "bars": false,
              "dashLength": 10,
              "dashes": false,
              "datasource": "$datasource",
              "fieldConfig": {
                "defaults": {
                  "custom": {

                  },
                  "links": [

                  ]
                },
                "overrides": [

                ]
              },
              "fill": 10,
              "fillGradient": 0,
              "gridPos": {
                "h": 9,
                "w": 7,
                "x": 10,
                "y": 30
              },
              "hiddenSeries": false,
              "id": 98,
              "legend": {
                "avg": false,
                "current": false,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": false
              },
              "lines": true,
              "linewidth": 0,
              "links": [

              ],
              "nullPointMode": "null",
              "options": {
                "alertThreshold": true
              },
              "paceLength": 10,
              "percentage": false,
              "pluginVersion": "7.2.1",
              "pointradius": 5,
              "points": false,
              "renderer": "flot",
              "repeatDirection": "v",
              "seriesOverrides": [
                {
                  "alias": "errors",
                  "color": "#C4162A"
                }
              ],
              "spaceLength": 10,
              "stack": true,
              "steppedLine": false,
              "targets": [
                {
                  "expr": "sum by (code) (rate(haproxy_server_http_responses_total{route=\"telemeter-server-metrics-v1-receive\",code=\"5xx\"}[$interval])) / sum by (code) (rate(haproxy_server_http_responses_total{route=\"telemeter-server-metrics-v1-receive\"}[$interval]))",
                  "format": "time_series",
                  "interval": "",
                  "intervalFactor": 1,
                  "legendFormat": "errors",
                  "refId": "A"
                }
              ],
              "thresholds": [

              ],
              "timeFrom": null,
              "timeRegions": [

              ],
              "timeShift": null,
              "title": "Errors",
              "tooltip": {
                "shared": true,
                "sort": 0,
                "value_type": "individual"
              },
              "type": "graph",
              "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": [

                ]
              },
              "yaxes": [
                {
                  "format": "percentunit",
                  "label": null,
                  "logBase": 1,
                  "max": null,
                  "min": "0",
                  "show": true
                },
                {
                  "format": "short",
                  "label": null,
                  "logBase": 1,
                  "max": null,
                  "min": null,
                  "show": true
                }
              ],
              "yaxis": {
                "align": false,
                "alignLevel": null
              }
            },
            {
              "aliasColors": {
                "2xx": "semi-dark-green",
                "{code=\"200\"}": "dark-green",
                "{code=\"429\"}": "dark-orange",
                "{code=\"500\"}": "dark-red"
              },
              "bars": false,
              "dashLength": 10,
              "dashes": false,
              "datasource": "$datasource",
              "fieldConfig": {
                "defaults": {
                  "custom": {

                  },
                  "links": [

                  ]
                },
                "overrides": [

                ]
              },
              "fill": 0,
              "fillGradient": 0,
              "gridPos": {
                "h": 9,
                "w": 7,
                "x": 17,
                "y": 30
              },
              "hiddenSeries": false,
              "id": 93,
              "legend": {
                "avg": false,
                "current": false,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": false
              },
              "lines": true,
              "linewidth": 1,
              "links": [

              ],
              "nullPointMode": "null",
              "options": {
                "alertThreshold": true
              },
              "paceLength": 10,
              "percentage": false,
              "pluginVersion": "7.2.1",
              "pointradius": 5,
              "points": false,
              "renderer": "flot",
              "repeatDirection": "v",
              "seriesOverrides": [
                {
                  "alias": "99th",
                  "color": "#FA6400"
                },
                {
                  "alias": "90th",
                  "color": "#E0B400"
                },
                {
                  "alias": "50th",
                  "color": "#37872D",
                  "fill": 10,
                  "linewidth": 0
                }
              ],
              "spaceLength": 10,
              "stack": false,
              "steppedLine": false,
              "targets": [
                {
                  "expr": "histogram_quantile(0.99, sum by (le) (rate(http_request_duration_seconds_bucket{job=\"telemeter-server\",code!~\"5..\",handler=\"receive\"}[$interval])))",
                  "format": "time_series",
                  "interval": "",
                  "intervalFactor": 1,
                  "legendFormat": "99th",
                  "refId": "A"
                },
                {
                  "expr": "histogram_quantile(0.9, sum by (le) (rate(http_request_duration_seconds_bucket{job=\"telemeter-server\",code!~\"5..\",handler=\"receive\"}[$interval])))",
                  "format": "time_series",
                  "interval": "",
                  "intervalFactor": 1,
                  "legendFormat": "90th",
                  "refId": "B"
                },
                {
                  "expr": "histogram_quantile(0.5, sum by (le) (rate(http_request_duration_seconds_bucket{job=\"telemeter-server\",code!~\"5..\",handler=\"receive\"}[$interval])))",
                  "format": "time_series",
                  "interval": "",
                  "intervalFactor": 1,
                  "legendFormat": "50th",
                  "refId": "C"
                }
              ],
              "thresholds": [

              ],
              "timeFrom": null,
              "timeRegions": [

              ],
              "timeShift": null,
              "title": "Duration",
              "tooltip": {
                "shared": true,
                "sort": 0,
                "value_type": "individual"
              },
              "type": "graph",
              "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": [

                ]
              },
              "yaxes": [
                {
                  "format": "s",
                  "label": null,
                  "logBase": 10,
                  "max": null,
                  "min": null,
                  "show": true
                },
                {
                  "format": "short",
                  "label": null,
                  "logBase": 1,
                  "max": null,
                  "min": null,
                  "show": true
                }
              ],
              "yaxis": {
                "align": false,
                "alignLevel": null
              }
            }
          ],
          "title": "/receive",
          "type": "row"
        },
        {
          "collapsed": false,
          "datasource": null,
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 30
          },
          "id": 47,
          "panels": [

          ],
          "title": "Oauth Client",
          "type": "row"
        },
        {
          "aliasColors": {
            "Code: 200": "dark-green",
            "Code: 500": "dark-red"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {

              },
              "links": [

              ]
            },
            "overrides": [

            ]
          },
          "fill": 10,
          "fillGradient": 0,
          "gridPos": {
            "h": 10,
            "w": 24,
            "x": 0,
            "y": 31
          },
          "hiddenSeries": false,
          "id": 44,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 0,
          "links": [

          ],
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "paceLength": 10,
          "percentage": false,
          "pluginVersion": "7.2.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "1xx",
              "color": "#FADE2A"
            },
            {
              "alias": "2xx",
              "color": "#56A64B"
            },
            {
              "alias": "3xx",
              "color": "#5794F2"
            },
            {
              "alias": "4xx",
              "color": "#FF9830"
            },
            {
              "alias": "5xx",
              "color": "#C4162A"
            }
          ],
          "spaceLength": 10,
          "stack": true,
          "steppedLine": false,
          "targets": [
            {
              "expr": "sum(label_replace(\n   rate(client_api_requests_total{namespace=\"$namespace\",client=\"oauth\"}[$interval]),\n  \"status_code\", \"${1}xx\", \"code\", \"([0-9])..\"\n)) by (status_code)",
              "format": "time_series",
              "interval": "",
              "intervalFactor": 1,
              "legendFormat": "{{ status_code }}",
              "refId": "A"
            }
          ],
          "thresholds": [

          ],
          "timeFrom": null,
          "timeRegions": [

          ],
          "timeShift": null,
          "title": "Oauth Client Response Codes",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": [

            ]
          },
          "yaxes": [
            {
              "format": "reqps",
              "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
          }
        },
        {
          "collapsed": true,
          "datasource": null,
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 41
          },
          "id": 54,
          "panels": [
            {
              "aliasColors": {

              },
              "bars": false,
              "dashLength": 10,
              "dashes": false,
              "datasource": "$datasource",
              "fill": 10,
              "gridPos": {
                "h": 7,
                "w": 24,
                "x": 0,
                "y": 18
              },
              "id": 56,
              "legend": {
                "avg": false,
                "current": false,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": false
              },
              "lines": true,
              "linewidth": 0,
              "links": [

              ],
              "nullPointMode": "null as zero",
              "paceLength": 10,
              "percentage": false,
              "pointradius": 5,
              "points": false,
              "renderer": "flot",
              "seriesOverrides": [

              ],
              "spaceLength": 10,
              "stack": true,
              "steppedLine": false,
              "targets": [
                {
                  "expr": "sum(namespace_pod_name_container_name:container_cpu_usage_seconds_total:sum_rate{namespace=\"$namespace\"}) by (pod_name)",
                  "format": "time_series",
                  "intervalFactor": 2,
                  "legendFormat": "{{pod_name}}",
                  "legendLink": null,
                  "refId": "A",
                  "step": 10
                }
              ],
              "thresholds": [

              ],
              "timeFrom": null,
              "timeRegions": [

              ],
              "timeShift": null,
              "title": "CPU Usage",
              "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": 0,
                  "show": true
                },
                {
                  "format": "short",
                  "label": null,
                  "logBase": 1,
                  "max": null,
                  "min": null,
                  "show": false
                }
              ],
              "yaxis": {
                "align": false,
                "alignLevel": null
              }
            },
            {
              "aliasColors": {

              },
              "bars": false,
              "columns": [

              ],
              "dashLength": 10,
              "dashes": false,
              "datasource": "$datasource",
              "fill": 1,
              "fontSize": "100%",
              "gridPos": {
                "h": 7,
                "w": 24,
                "x": 0,
                "y": 25
              },
              "id": 57,
              "legend": {
                "avg": false,
                "current": false,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": false
              },
              "lines": true,
              "linewidth": 1,
              "links": [

              ],
              "nullPointMode": "null as zero",
              "pageSize": null,
              "percentage": false,
              "pointradius": 5,
              "points": false,
              "renderer": "flot",
              "scroll": true,
              "seriesOverrides": [

              ],
              "showHeader": true,
              "sort": {
                "col": 0,
                "desc": true
              },
              "spaceLength": 10,
              "stack": false,
              "steppedLine": false,
              "styles": [
                {
                  "alias": "Time",
                  "align": "auto",
                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
                  "pattern": "Time",
                  "type": "hidden"
                },
                {
                  "alias": "CPU Usage",
                  "align": "auto",
                  "colorMode": null,
                  "colors": [

                  ],
                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
                  "decimals": 2,
                  "link": false,
                  "linkTooltip": "Drill down",
                  "linkUrl": "",
                  "pattern": "Value #A",
                  "thresholds": [

                  ],
                  "type": "number",
                  "unit": "short"
                },
                {
                  "alias": "CPU Requests",
                  "align": "auto",
                  "colorMode": null,
                  "colors": [

                  ],
                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
                  "decimals": 2,
                  "link": false,
                  "linkTooltip": "Drill down",
                  "linkUrl": "",
                  "pattern": "Value #B",
                  "thresholds": [

                  ],
                  "type": "number",
                  "unit": "short"
                },
                {
                  "alias": "CPU Requests %",
                  "align": "auto",
                  "colorMode": null,
                  "colors": [

                  ],
                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
                  "decimals": 2,
                  "link": false,
                  "linkTooltip": "Drill down",
                  "linkUrl": "",
                  "pattern": "Value #C",
                  "thresholds": [

                  ],
                  "type": "number",
                  "unit": "percentunit"
                },
                {
                  "alias": "CPU Limits",
                  "align": "auto",
                  "colorMode": null,
                  "colors": [

                  ],
                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
                  "decimals": 2,
                  "link": false,
                  "linkTooltip": "Drill down",
                  "linkUrl": "",
                  "pattern": "Value #D",
                  "thresholds": [

                  ],
                  "type": "number",
                  "unit": "short"
                },
                {
                  "alias": "CPU Limits %",
                  "align": "auto",
                  "colorMode": null,
                  "colors": [

                  ],
                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
                  "decimals": 2,
                  "link": false,
                  "linkTooltip": "Drill down",
                  "linkUrl": "",
                  "pattern": "Value #E",
                  "thresholds": [

                  ],
                  "type": "number",
                  "unit": "percentunit"
                },
                {
                  "alias": "Pod",
                  "align": "auto",
                  "colorMode": null,
                  "colors": [

                  ],
                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
                  "decimals": 2,
                  "link": true,
                  "linkTooltip": "Drill down",
                  "linkUrl": "/d/k8s-compute-resources-pod/k8s-compute-resources-pod?var-datasource=$datasource&var-namespace=$namespace&var-pod=$__cell",
                  "pattern": "pod",
                  "thresholds": [

                  ],
                  "type": "number",
                  "unit": "short"
                },
                {
                  "alias": "",
                  "align": "auto",
                  "colorMode": null,
                  "colors": [

                  ],
                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
                  "decimals": 2,
                  "pattern": "/.*/",
                  "thresholds": [

                  ],
                  "type": "string",
                  "unit": "short"
                }
              ],
              "targets": [
                {
                  "expr": "sum(label_replace(namespace_pod_name_container_name:container_cpu_usage_seconds_total:sum_rate{namespace=\"$namespace\"}, \"pod\", \"$1\", \"pod_name\", \"(.*)\")) by (pod)",
                  "format": "table",
                  "instant": true,
                  "intervalFactor": 2,
                  "legendFormat": "",
                  "refId": "A",
                  "step": 10
                },
                {
                  "expr": "sum(kube_pod_container_resource_requests_cpu_cores{namespace=\"$namespace\"}) by (pod)",
                  "format": "table",
                  "instant": true,
                  "intervalFactor": 2,
                  "legendFormat": "",
                  "refId": "B",
                  "step": 10
                },
                {
                  "expr": "sum(label_replace(namespace_pod_name_container_name:container_cpu_usage_seconds_total:sum_rate{namespace=\"$namespace\"}, \"pod\", \"$1\", \"pod_name\", \"(.*)\")) by (pod) / sum(kube_pod_container_resource_requests_cpu_cores{namespace=\"$namespace\"}) by (pod)",
                  "format": "table",
                  "instant": true,
                  "intervalFactor": 2,
                  "legendFormat": "",
                  "refId": "C",
                  "step": 10
                },
                {
                  "expr": "sum(kube_pod_container_resource_limits_cpu_cores{namespace=\"$namespace\"}) by (pod)",
                  "format": "table",
                  "instant": true,
                  "intervalFactor": 2,
                  "legendFormat": "",
                  "refId": "D",
                  "step": 10
                },
                {
                  "expr": "sum(label_replace(namespace_pod_name_container_name:container_cpu_usage_seconds_total:sum_rate{namespace=\"$namespace\"}, \"pod\", \"$1\", \"pod_name\", \"(.*)\")) by (pod) / sum(kube_pod_container_resource_limits_cpu_cores{namespace=\"$namespace\"}) by (pod)",
                  "format": "table",
                  "instant": true,
                  "intervalFactor": 2,
                  "legendFormat": "",
                  "refId": "E",
                  "step": 10
                }
              ],
              "thresholds": [

              ],
              "timeFrom": null,
              "timeShift": null,
              "title": "CPU Quota",
              "tooltip": {
                "shared": true,
                "sort": 0,
                "value_type": "individual"
              },
              "transform": "table",
              "type": "table-old",
              "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": [

                ]
              },
              "yaxes": [
                {
                  "format": "short",
                  "label": null,
                  "logBase": 1,
                  "max": null,
                  "min": 0,
                  "show": true
                },
                {
                  "format": "short",
                  "label": null,
                  "logBase": 1,
                  "max": null,
                  "min": null,
                  "show": false
                }
              ]
            },
            {
              "aliasColors": {

              },
              "bars": false,
              "dashLength": 10,
              "dashes": false,
              "datasource": "$datasource",
              "fill": 10,
              "gridPos": {
                "h": 7,
                "w": 24,
                "x": 0,
                "y": 32
              },
              "id": 58,
              "legend": {
                "avg": false,
                "current": false,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": false
              },
              "lines": true,
              "linewidth": 0,
              "links": [

              ],
              "nullPointMode": "null as zero",
              "paceLength": 10,
              "percentage": false,
              "pointradius": 5,
              "points": false,
              "renderer": "flot",
              "seriesOverrides": [

              ],
              "spaceLength": 10,
              "stack": true,
              "steppedLine": false,
              "targets": [
                {
                  "expr": "sum(container_memory_usage_bytes{namespace=\"$namespace\", container_name!=\"\"}) by (pod_name)",
                  "format": "time_series",
                  "intervalFactor": 2,
                  "legendFormat": "{{pod_name}}",
                  "legendLink": null,
                  "refId": "A",
                  "step": 10
                }
              ],
              "thresholds": [

              ],
              "timeFrom": null,
              "timeRegions": [

              ],
              "timeShift": null,
              "title": "Memory Usage",
              "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": 0,
                  "show": true
                },
                {
                  "format": "short",
                  "label": null,
                  "logBase": 1,
                  "max": null,
                  "min": null,
                  "show": false
                }
              ],
              "yaxis": {
                "align": false,
                "alignLevel": null
              }
            },
            {
              "aliasColors": {

              },
              "bars": false,
              "columns": [

              ],
              "dashLength": 10,
              "dashes": false,
              "datasource": "$datasource",
              "fill": 1,
              "fontSize": "100%",
              "gridPos": {
                "h": 7,
                "w": 24,
                "x": 0,
                "y": 39
              },
              "id": 34,
              "legend": {
                "avg": false,
                "current": false,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": false
              },
              "lines": true,
              "linewidth": 1,
              "links": [

              ],
              "nullPointMode": "null as zero",
              "pageSize": null,
              "percentage": false,
              "pointradius": 5,
              "points": false,
              "renderer": "flot",
              "scroll": true,
              "seriesOverrides": [

              ],
              "showHeader": true,
              "sort": {
                "col": 0,
                "desc": true
              },
              "spaceLength": 10,
              "stack": false,
              "steppedLine": false,
              "styles": [
                {
                  "alias": "Time",
                  "align": "auto",
                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
                  "pattern": "Time",
                  "type": "hidden"
                },
                {
                  "alias": "Memory Usage",
                  "align": "auto",
                  "colorMode": null,
                  "colors": [

                  ],
                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
                  "decimals": 2,
                  "link": false,
                  "linkTooltip": "Drill down",
                  "linkUrl": "",
                  "pattern": "Value #A",
                  "thresholds": [

                  ],
                  "type": "number",
                  "unit": "decbytes"
                },
                {
                  "alias": "Memory Requests",
                  "align": "auto",
                  "colorMode": null,
                  "colors": [

                  ],
                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
                  "decimals": 2,
                  "link": false,
                  "linkTooltip": "Drill down",
                  "linkUrl": "",
                  "pattern": "Value #B",
                  "thresholds": [

                  ],
                  "type": "number",
                  "unit": "decbytes"
                },
                {
                  "alias": "Memory Requests %",
                  "align": "auto",
                  "colorMode": null,
                  "colors": [

                  ],
                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
                  "decimals": 2,
                  "link": false,
                  "linkTooltip": "Drill down",
                  "linkUrl": "",
                  "pattern": "Value #C",
                  "thresholds": [

                  ],
                  "type": "number",
                  "unit": "percentunit"
                },
                {
                  "alias": "Memory Limits",
                  "align": "auto",
                  "colorMode": null,
                  "colors": [

                  ],
                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
                  "decimals": 2,
                  "link": false,
                  "linkTooltip": "Drill down",
                  "linkUrl": "",
                  "pattern": "Value #D",
                  "thresholds": [

                  ],
                  "type": "number",
                  "unit": "decbytes"
                },
                {
                  "alias": "Memory Limits %",
                  "align": "auto",
                  "colorMode": null,
                  "colors": [

                  ],
                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
                  "decimals": 2,
                  "link": false,
                  "linkTooltip": "Drill down",
                  "linkUrl": "",
                  "pattern": "Value #E",
                  "thresholds": [

                  ],
                  "type": "number",
                  "unit": "percentunit"
                },
                {
                  "alias": "Pod",
                  "align": "auto",
                  "colorMode": null,
                  "colors": [

                  ],
                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
                  "decimals": 2,
                  "link": true,
                  "linkTooltip": "Drill down",
                  "linkUrl": "/d/k8s-compute-resources-pod/k8s-compute-resources-pod?var-datasource=$datasource&var-namespace=$namespace&var-pod=$__cell",
                  "pattern": "pod",
                  "thresholds": [

                  ],
                  "type": "number",
                  "unit": "short"
                },
                {
                  "alias": "",
                  "align": "auto",
                  "colorMode": null,
                  "colors": [

                  ],
                  "dateFormat": "YYYY-MM-DD HH:mm:ss",
                  "decimals": 2,
                  "pattern": "/.*/",
                  "thresholds": [

                  ],
                  "type": "string",
                  "unit": "short"
                }
              ],
              "targets": [
                {
                  "expr": "sum(label_replace(container_memory_usage_bytes{namespace=\"$namespace\",container_name!=\"\"}, \"pod\", \"$1\", \"pod_name\", \"(.*)\")) by (pod)",
                  "format": "table",
                  "instant": true,
                  "intervalFactor": 2,
                  "legendFormat": "",
                  "refId": "A",
                  "step": 10
                },
                {
                  "expr": "sum(kube_pod_container_resource_requests_memory_bytes{namespace=\"$namespace\"}) by (pod)",
                  "format": "table",
                  "instant": true,
                  "intervalFactor": 2,
                  "legendFormat": "",
                  "refId": "B",
                  "step": 10
                },
                {
                  "expr": "sum(label_replace(container_memory_usage_bytes{namespace=\"$namespace\",container_name!=\"\"}, \"pod\", \"$1\", \"pod_name\", \"(.*)\")) by (pod) / sum(kube_pod_container_resource_requests_memory_bytes{namespace=\"$namespace\"}) by (pod)",
                  "format": "table",
                  "instant": true,
                  "intervalFactor": 2,
                  "legendFormat": "",
                  "refId": "C",
                  "step": 10
                },
                {
                  "expr": "sum(kube_pod_container_resource_limits_memory_bytes{namespace=\"$namespace\"}) by (pod)",
                  "format": "table",
                  "instant": true,
                  "intervalFactor": 2,
                  "legendFormat": "",
                  "refId": "D",
                  "step": 10
                },
                {
                  "expr": "sum(label_replace(container_memory_usage_bytes{namespace=\"$namespace\",container_name!=\"\"}, \"pod\", \"$1\", \"pod_name\", \"(.*)\")) by (pod) / sum(kube_pod_container_resource_limits_memory_bytes{namespace=\"$namespace\"}) by (pod)",
                  "format": "table",
                  "instant": true,
                  "intervalFactor": 2,
                  "legendFormat": "",
                  "refId": "E",
                  "step": 10
                }
              ],
              "thresholds": [

              ],
              "timeFrom": null,
              "timeShift": null,
              "title": "Memory Quota",
              "tooltip": {
                "shared": true,
                "sort": 0,
                "value_type": "individual"
              },
              "transform": "table",
              "type": "table-old",
              "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": [

                ]
              },
              "yaxes": [
                {
                  "format": "short",
                  "label": null,
                  "logBase": 1,
                  "max": null,
                  "min": 0,
                  "show": true
                },
                {
                  "format": "short",
                  "label": null,
                  "logBase": 1,
                  "max": null,
                  "min": null,
                  "show": false
                }
              ]
            }
          ],
          "title": "Resource Usage: Namespace",
          "type": "row"
        }
      ],
      "refresh": "1m",
      "schemaVersion": 26,
      "style": "dark",
      "tags": [

      ],
      "templating": {
        "list": [
          {
            "current": {
              "selected": false,
              "text": "telemeter-prod-01-prometheus",
              "value": "telemeter-prod-01-prometheus"
            },
            "hide": 0,
            "includeAll": false,
            "label": null,
            "multi": false,
            "name": "datasource",
            "options": [

            ],
            "query": "prometheus",
            "refresh": 1,
            "regex": "",
            "skipUrlSync": false,
            "type": "datasource"
          },
          {
            "allValue": null,
            "current": {
              "selected": false,
              "text": "telemeter-production",
              "value": "telemeter-production"
            },
            "datasource": "$datasource",
            "definition": "label_values(kube_pod_info, namespace)",
            "hide": 0,
            "includeAll": false,
            "label": "namespace",
            "multi": false,
            "name": "namespace",
            "options": [

            ],
            "query": "label_values(kube_pod_info, namespace)",
            "refresh": 1,
            "regex": "^telemeter.*",
            "skipUrlSync": false,
            "sort": 1,
            "tagValuesQuery": "",
            "tags": [

            ],
            "tagsQuery": "",
            "type": "query",
            "useTags": false
          },
          {
            "auto": false,
            "auto_count": 30,
            "auto_min": "10s",
            "current": {
              "selected": false,
              "text": "5m",
              "value": "5m"
            },
            "hide": 0,
            "label": "Rate Interval",
            "name": "interval",
            "options": [
              {
                "selected": false,
                "text": "1m",
                "value": "1m"
              },
              {
                "selected": true,
                "text": "5m",
                "value": "5m"
              },
              {
                "selected": false,
                "text": "10m",
                "value": "10m"
              },
              {
                "selected": false,
                "text": "30m",
                "value": "30m"
              },
              {
                "selected": false,
                "text": "1h",
                "value": "1h"
              },
              {
                "selected": false,
                "text": "6h",
                "value": "6h"
              },
              {
                "selected": false,
                "text": "12h",
                "value": "12h"
              },
              {
                "selected": false,
                "text": "1d",
                "value": "1d"
              },
              {
                "selected": false,
                "text": "7d",
                "value": "7d"
              },
              {
                "selected": false,
                "text": "14d",
                "value": "14d"
              },
              {
                "selected": false,
                "text": "30d",
                "value": "30d"
              }
            ],
            "query": "1m,5m,10m,30m,1h,6h,12h,1d,7d,14d,30d",
            "queryValue": "",
            "refresh": 2,
            "skipUrlSync": false,
            "type": "interval"
          }
        ]
      },
      "time": {
        "from": "now-1h",
        "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": "",
      "title": "Telemeter",
      "uid": "Tg-mH0rizaSJDKSADJ",
      "version": 1
    }
kind: ConfigMap
metadata:
  annotations:
    grafana-folder: /grafana-dashboard-definitions/Observatorium
  labels:
    grafana_dashboard: "true"
  name: grafana-dashboard-telemeter
