Commit 7e2d2336 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

WebUI - Grafana:

- Updated device details dashboard
parent 249ffba3
Loading
Loading
Loading
Loading
+235 −0
Original line number Original line Diff line number Diff line
{"overwrite": true, "folderId": 0, "dashboard":
  {
    "annotations": {
      "list": [
        {
          "builtIn": 1,
          "datasource": {
            "type": "datasource",
            "uid": "grafana"
          },
          "enable": true,
          "hide": true,
          "iconColor": "rgba(0, 211, 255, 1)",
          "name": "Annotations & Alerts",
          "target": {
            "limit": 100,
            "matchAny": false,
            "tags": [],
            "type": "dashboard"
          },
          "type": "dashboard"
        }
      ]
    },
    "editable": true,
    "fiscalYearStartMonth": 0,
    "graphTooltip": 0,
    "id": null,
    "iteration": 1682697941779,
    "links": [],
    "liveNow": false,
    "panels": [
      {
        "cards": {},
        "color": {
          "cardColor": "#b4ff00",
          "colorScale": "linear",
          "colorScheme": "interpolateRdYlGn",
          "exponent": 0.5,
          "min": 0,
          "mode": "opacity"
        },
        "dataFormat": "tsbuckets",
        "datasource": {
          "type": "prometheus",
          "uid": "prometheus"
        },
        "gridPos": {
          "h": 22,
          "w": 24,
          "x": 0,
          "y": 0
        },
        "heatmap": {},
        "hideZeroBuckets": true,
        "highlightCards": true,
        "id": 2,
        "interval": "60s",
        "legend": {
          "show": true
        },
        "pluginVersion": "7.5.4",
        "reverseYBuckets": false,
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "prometheus"
            },
            "exemplar": true,
            "expr": "sum(\r\n    max_over_time(tfs_device_exec_details_[[method]]_histogram_duration_bucket{pod=~\"[[pod]]\", step=~\"[[step]]\"}[1m]) -\r\n    min_over_time(tfs_device_exec_details_[[method]]_histogram_duration_bucket{pod=~\"[[pod]]\", step=~\"[[step]]\"}[1m])\r\n) by (le)",
            "format": "heatmap",
            "instant": false,
            "interval": "1m",
            "intervalFactor": 1,
            "legendFormat": "{{le}}",
            "refId": "A"
          }
        ],
        "title": "Histogram",
        "tooltip": {
          "show": true,
          "showHistogram": true
        },
        "type": "heatmap",
        "xAxis": {
          "show": true
        },
        "yAxis": {
          "format": "s",
          "logBase": 1,
          "show": true
        },
        "yBucketBound": "auto"
      }
    ],
    "refresh": "5s",
    "schemaVersion": 36,
    "style": "dark",
    "tags": [],
    "templating": {
      "list": [
        {
          "allValue": ".*",
          "current": {
            "selected": true,
            "text": "adddevice",
            "value": "adddevice"
          },
          "datasource": {
            "type": "prometheus",
            "uid": "prometheus"
          },
          "definition": "metrics(tfs_device_exec_details_)",
          "hide": 0,
          "includeAll": false,
          "label": "Method",
          "multi": false,
          "name": "method",
          "options": [],
          "query": {
            "query": "metrics(tfs_device_exec_details_)",
            "refId": "StandardVariableQuery"
          },
          "refresh": 2,
          "regex": "/tfs_device_exec_details_(.+)_histogram_duration_bucket/",
          "skipUrlSync": false,
          "sort": 0,
          "tagValuesQuery": "",
          "tagsQuery": "",
          "type": "query",
          "useTags": false
        },
        {
          "allValue": ".*",
          "current": {
            "selected": true,
            "text": [
              "endpoint_checks",
              "execution",
              "get_device",
              "get_driver",
              "populate_config_rules",
              "populate_endpoints",
              "populate_monit_rsrc",
              "set_device",
              "total",
              "wait_queue"
            ],
            "value": [
              "endpoint_checks",
              "execution",
              "get_device",
              "get_driver",
              "populate_config_rules",
              "populate_endpoints",
              "populate_monit_rsrc",
              "set_device",
              "total",
              "wait_queue"
            ]
          },
          "datasource": {
            "type": "prometheus",
            "uid": "prometheus"
          },
          "definition": "label_values(tfs_device_exec_details_[[method]]_histogram_duration_bucket, step)",
          "hide": 0,
          "includeAll": true,
          "label": "Step",
          "multi": true,
          "name": "step",
          "options": [],
          "query": {
            "query": "label_values(tfs_device_exec_details_[[method]]_histogram_duration_bucket, step)",
            "refId": "StandardVariableQuery"
          },
          "refresh": 2,
          "regex": "",
          "skipUrlSync": false,
          "sort": 0,
          "tagValuesQuery": "",
          "tagsQuery": "",
          "type": "query",
          "useTags": false
        },
        {
          "allValue": ".*",
          "current": {
            "selected": true,
            "text": [
              "All"
            ],
            "value": [
              "$__all"
            ]
          },
          "datasource": {
            "type": "prometheus",
            "uid": "prometheus"
          },
          "definition": "label_values(tfs_device_exec_details_[[method]]_histogram_duration_bucket, pod)",
          "hide": 0,
          "includeAll": true,
          "label": "Pod",
          "multi": true,
          "name": "pod",
          "options": [],
          "query": {
            "query": "label_values(tfs_device_exec_details_[[method]]_histogram_duration_bucket, pod)",
            "refId": "StandardVariableQuery"
          },
          "refresh": 2,
          "regex": "",
          "skipUrlSync": false,
          "sort": 0,
          "tagValuesQuery": "",
          "tagsQuery": "",
          "type": "query",
          "useTags": false
        }
      ]
    },
    "time": {
      "from": "now-15m",
      "to": "now"
    },
    "timepicker": {},
    "timezone": "",
    "title": "TFS / Device Details",
    "uid": "tfs-dev-confdev",
    "version": 6,
    "weekStart": ""
  }
}