Skip to content

Grafana source

pokerazor edited this page Jul 26, 2018 · 2 revisions
{
  "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": 0,
  "id": 46,
  "iteration": 1532607374178,
  "links": [],
  "panels": [
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 19,
      "panels": [],
      "title": "JVM",
      "type": "row"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "kugu-prometheus",
      "fill": 1,
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 1
      },
      "id": 23,
      "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": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "jvm_buffer_pool_capacity_bytes {machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "buffer pool capacity {{pool}}",
          "refId": "A"
        },
        {
          "expr": "jvm_buffer_pool_used_bytes{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "buffer pool used {{pool}}",
          "refId": "B"
        },
        {
          "expr": "jvm_memory_bytes_committed{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "memory committed {{area}}",
          "refId": "C"
        },
        {
          "expr": "jvm_memory_bytes_init{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "memory init {{area}}",
          "refId": "D"
        },
        {
          "expr": "jvm_memory_bytes_max{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "memory max {{area}}",
          "refId": "E"
        },
        {
          "expr": "jvm_memory_bytes_used{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "memory used {{area}}",
          "refId": "F"
        },
        {
          "expr": "jvm_memory_pool_bytes_committed{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "memory pool committed {{pool}}",
          "refId": "G"
        },
        {
          "expr": "jvm_memory_pool_bytes_init{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "memory pool init {{pool}}",
          "refId": "H"
        },
        {
          "expr": "jvm_memory_pool_bytes_max{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "memory pool max {{pool}}",
          "refId": "I"
        },
        {
          "expr": "jvm_memory_pool_bytes_used{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "memory pool used {{pool}}",
          "refId": "J"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "JVM Memory",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "decbytes",
          "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": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "kugu-prometheus",
      "fill": 1,
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 1
      },
      "id": 21,
      "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": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "/classes/",
          "yaxis": 2
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "jvm_threads_current{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "current",
          "refId": "A"
        },
        {
          "expr": "jvm_classes_loaded{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "classes loaded",
          "refId": "B"
        },
        {
          "expr": "jvm_threads_daemon{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "daemon",
          "refId": "C"
        },
        {
          "expr": "jvm_threads_deadlocked{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "deadlocked",
          "refId": "D"
        },
        {
          "expr": "jvm_threads_deadlocked_monitor{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "threads deadlocked monitor",
          "refId": "E"
        },
        {
          "expr": "jvm_threads_peak{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "peak",
          "refId": "F"
        },
        {
          "expr": "jvm_threads_started_total{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "threads started total",
          "refId": "G"
        },
        {
          "expr": "jvm_classes_loaded_total{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "classes loaded total",
          "refId": "H"
        },
        {
          "expr": "jvm_classes_unloaded_total{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "classes unloaded total",
          "refId": "I"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "JVM Threads & Classload",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "label": "threads",
          "logBase": 32,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": "classes",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": null,
      "fill": 1,
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 10
      },
      "id": 25,
      "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": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "/sum/",
          "yaxis": 2
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "jvm_gc_collection_seconds_count{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "seconds {{gc}}",
          "refId": "A"
        },
        {
          "expr": "jvm_gc_collection_seconds_sum{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "sum {{gc}}",
          "refId": "B"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "Garbage collection",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "s",
          "label": "seconds",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "decimals": null,
          "format": "s",
          "label": "sum",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": false,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": "kugu-prometheus",
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 5,
        "w": 12,
        "x": 12,
        "y": 10
      },
      "id": 27,
      "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": "jvm_info{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{runtime}} {{version}} from {{vendor}}",
          "refId": "A"
        }
      ],
      "thresholds": "",
      "title": "JVM Version",
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "name"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 19
      },
      "id": 15,
      "panels": [],
      "title": "openHAB internals",
      "type": "row"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "kugu-prometheus",
      "fill": 1,
      "gridPos": {
        "h": 9,
        "w": 24,
        "x": 0,
        "y": 20
      },
      "id": 29,
      "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": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "/keepalive .*/",
          "fill": 0,
          "yaxis": 2
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "openhab_pool_size{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "size {{pool}}",
          "refId": "A"
        },
        {
          "expr": "openhab_pool_tasks_count_completed{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "completed {{pool}}",
          "refId": "B"
        },
        {
          "expr": "openhab_pool_tasks_count_total{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "total {{pool}}",
          "refId": "C"
        },
        {
          "expr": "openhab_pool_threads_count_active{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "active {{pool}}",
          "refId": "D"
        },
        {
          "expr": "openhab_pool_threads_count_current{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "current {{pool}}",
          "refId": "E"
        },
        {
          "expr": "openhab_pool_size_max{machine=~\"$machine\"}",
          "format": "time_series",
          "hide": true,
          "intervalFactor": 1,
          "legendFormat": "max size {{pool}}",
          "refId": "F"
        },
        {
          "expr": "openhab_pool_queue_count{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "queued {{pool}}",
          "refId": "G"
        },
        {
          "expr": "openhab_pool_keepalive_time_seconds{machine=~\"$machine\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "keepalive {{pool}}",
          "refId": "H"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "Task Pools",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "label": "Number of Threads/Tasks",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "dtdurations",
          "label": "Keepalive time",
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "kugu-prometheus",
      "description": "",
      "fill": 0,
      "gridPos": {
        "h": 9,
        "w": 24,
        "x": 0,
        "y": 29
      },
      "id": 6,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "smarthome_event_count{machine=~\"$machine\"}",
          "format": "time_series",
          "instant": false,
          "intervalFactor": 1,
          "legendFormat": "{{source}}",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "Event count",
      "tooltip": {
        "shared": true,
        "sort": 1,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 0,
          "format": "short",
          "label": null,
          "logBase": 2,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "columns": [],
      "datasource": "kugu-prometheus",
      "fontSize": "90%",
      "gridPos": {
        "h": 10,
        "w": 24,
        "x": 0,
        "y": 38
      },
      "id": 4,
      "links": [],
      "pageSize": 400,
      "scroll": true,
      "showHeader": true,
      "sort": {
        "col": 6,
        "desc": false
      },
      "styles": [
        {
          "alias": "Bundle",
          "colorMode": null,
          "colors": [
            "rgba(50, 172, 45, 0.97)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(245, 54, 54, 0.9)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "bundle",
          "thresholds": [
            ""
          ],
          "type": "string",
          "unit": "short",
          "valueMaps": []
        },
        {
          "alias": "State",
          "colorMode": "cell",
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 0,
          "mappingType": 1,
          "pattern": "Value",
          "preserveFormat": false,
          "thresholds": [
            "1",
            "32"
          ],
          "type": "string",
          "unit": "short",
          "valueMaps": [
            {
              "text": "UNINSTALLED",
              "value": "1"
            },
            {
              "text": "INSTALLED",
              "value": "2"
            },
            {
              "text": "RESOLVED",
              "value": "4"
            },
            {
              "text": "STARTING",
              "value": "8"
            },
            {
              "text": "STOPPING",
              "value": "16"
            },
            {
              "text": "ACTIVE",
              "value": "32"
            }
          ]
        },
        {
          "alias": "Machine",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "machine",
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "alias": "",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "/.*/",
          "thresholds": [],
          "type": "hidden",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "expr": "openhab_bundle_state{machine=~\"$machine\"}",
          "format": "table",
          "instant": true,
          "intervalFactor": 1,
          "legendFormat": "{{scrape_job}}",
          "refId": "A"
        }
      ],
      "title": "Bundle state",
      "transform": "table",
      "type": "table"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 48
      },
      "id": 35,
      "panels": [],
      "title": "openHAB operational",
      "type": "row"
    },
    {
      "columns": [],
      "datasource": "kugu-prometheus",
      "fontSize": "100%",
      "gridPos": {
        "h": 14,
        "w": 12,
        "x": 0,
        "y": 49
      },
      "id": 2,
      "links": [],
      "pageSize": null,
      "scroll": true,
      "showHeader": true,
      "sort": {
        "col": 6,
        "desc": true
      },
      "styles": [
        {
          "alias": "Thing",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "thing",
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "alias": "State",
          "colorMode": "cell",
          "colors": [
            "#c0c0c0",
            "#629e51",
            "rgba(245, 54, 54, 0.9)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 0,
          "mappingType": 1,
          "pattern": "Value",
          "preserveFormat": false,
          "thresholds": [
            "3",
            "4"
          ],
          "type": "string",
          "unit": "short",
          "valueMaps": [
            {
              "text": "Offline",
              "value": "4"
            },
            {
              "text": "Online",
              "value": "3"
            },
            {
              "text": "UNINITIALIZED",
              "value": "0"
            }
          ]
        },
        {
          "alias": "Machine",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "machine",
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "alias": "",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "/.*/",
          "thresholds": [],
          "type": "hidden",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "expr": "openhab_thing_state{machine=~\"$machine\"}",
          "format": "table",
          "instant": true,
          "intervalFactor": 1,
          "legendFormat": "{{scrape_job}}",
          "refId": "A"
        }
      ],
      "title": "Things state",
      "transform": "table",
      "type": "table"
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": false,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": "kugu-prometheus",
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 12,
        "x": 12,
        "y": 49
      },
      "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": true,
        "lineColor": "rgb(31, 120, 193)",
        "show": true
      },
      "tableColumn": "",
      "targets": [
        {
          "expr": "openhab_inbox_count{machine=~\"$machine\"}",
          "format": "time_series",
          "instant": false,
          "intervalFactor": 1,
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "thresholds": "",
      "title": "Number of things in inbox",
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "kugu-prometheus",
      "description": "0=UNINITIALIZED\n1=INITIALIZING\n2=UNKNOWN\n3=ONLINE\n4=OFFLINE\n5=REMOVING\n6=REMOVED",
      "fill": 0,
      "gridPos": {
        "h": 11,
        "w": 12,
        "x": 12,
        "y": 52
      },
      "id": 13,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "openhab_thing_state{machine=~\"$machine\"}",
          "format": "time_series",
          "instant": false,
          "intervalFactor": 1,
          "legendFormat": "{{thing}}",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "Thing state over time",
      "tooltip": {
        "shared": true,
        "sort": 1,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 0,
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": "7",
          "min": "0",
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "refresh": false,
  "schemaVersion": 16,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {
          "text": "All",
          "value": [
            "$__all"
          ]
        },
        "datasource": "kugu-prometheus",
        "hide": 0,
        "includeAll": true,
        "label": "Machine",
        "multi": true,
        "name": "machine",
        "options": [],
        "query": "label_values(openhab_thing_state, machine)",
        "refresh": 1,
        "regex": "",
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-3h",
    "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": "SZ overview",
  "uid": "g5NVJ0Dik",
  "version": 1
}
Clone this wiki locally