{
  "annotations": {
    "list": []
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "datasource": {
        "type": "yesoreyeram-infinity-datasource",
        "uid": "grafana-proxy"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "align": "auto",
            "cellOptions": {
              "type": "auto"
            },
            "inspect": false
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 20,
        "w": 24,
        "x": 0,
        "y": 20
      },
      "id": 1,
      "options": {
        "cellHeight": "sm",
        "footer": {
          "countRows": false,
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": true
      },
      "targets": [
        {
          "refId": "A",
          "type": "json",
          "source": "url",
          "format": "table",
          "parser": "backend",
          "url": "/zabbix/host-detail?host=$host&view=$view&contains=$contains",
          "url_options": {
            "method": "GET",
            "data": ""
          },
          "root_selector": "rows",
          "columns": [
            {
              "selector": "name",
              "text": "Name",
              "type": "string"
            },
            {
              "selector": "value_display",
              "text": "Value",
              "type": "string"
            },
            {
              "selector": "last_seen_human",
              "text": "Last Seen",
              "type": "string"
            },
            {
              "selector": "key",
              "text": "Key",
              "type": "string"
            }
          ]
        }
      ],
      "title": "Host Details",
      "type": "table"
    },
    {
      "datasource": {
        "type": "yesoreyeram-infinity-datasource",
        "uid": "grafana-proxy"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "line",
            "lineWidth": 1,
            "fillOpacity": 10,
            "showPoints": "auto"
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 4
      },
      "id": 2,
      "options": {
        "legend": {
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "refId": "A",
          "type": "json",
          "source": "url",
          "format": "table",
          "parser": "backend",
          "url": "/zabbix/host-metrics?host=$host&metric=cpu&from=$__from&to=$__to",
          "url_options": {
            "method": "GET",
            "data": ""
          },
          "root_selector": "rows",
          "columns": [
            {
              "selector": "ts",
              "text": "time",
              "type": "timestamp_epoch_s"
            },
            {
              "selector": "value",
              "text": "value",
              "type": "number"
            },
            {
              "selector": "metric",
              "text": "metric",
              "type": "string"
            }
          ]
        }
      ],
      "title": "CPU Usage %",
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "yesoreyeram-infinity-datasource",
        "uid": "grafana-proxy"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "line",
            "lineWidth": 1,
            "fillOpacity": 10,
            "showPoints": "auto"
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 4
      },
      "id": 3,
      "options": {
        "legend": {
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "refId": "A",
          "type": "json",
          "source": "url",
          "format": "table",
          "parser": "backend",
          "url": "/zabbix/host-metrics?host=$host&metric=memory&from=$__from&to=$__to",
          "url_options": {
            "method": "GET",
            "data": ""
          },
          "root_selector": "rows",
          "columns": [
            {
              "selector": "ts",
              "text": "time",
              "type": "timestamp_epoch_s"
            },
            {
              "selector": "value",
              "text": "value",
              "type": "number"
            },
            {
              "selector": "metric",
              "text": "metric",
              "type": "string"
            }
          ]
        }
      ],
      "title": "Memory Used %",
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "yesoreyeram-infinity-datasource",
        "uid": "grafana-proxy"
      },
      "fieldConfig": {
        "defaults": {
          "custom": {
            "drawStyle": "line",
            "lineWidth": 1,
            "fillOpacity": 10,
            "showPoints": "auto"
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 24,
        "x": 0,
        "y": 12
      },
      "id": 4,
      "options": {
        "legend": {
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "refId": "A",
          "type": "json",
          "source": "url",
          "format": "table",
          "parser": "backend",
          "url": "/zabbix/host-metrics?host=$host&metric=disk&from=$__from&to=$__to",
          "url_options": {
            "method": "GET",
            "data": ""
          },
          "root_selector": "rows",
          "columns": [
            {
              "selector": "ts",
              "text": "time",
              "type": "timestamp_epoch_s"
            },
            {
              "selector": "value",
              "text": "value",
              "type": "number"
            },
            {
              "selector": "metric",
              "text": "metric",
              "type": "string"
            }
          ]
        }
      ],
      "title": "Disk Used %",
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "yesoreyeram-infinity-datasource",
        "uid": "grafana-proxy"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "fixed",
            "fixedColor": "green"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "id": 5,
      "options": {
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "value",
          "values": false
        },
        "orientation": "horizontal",
        "textMode": "value",
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "center"
      },
      "targets": [
        {
          "refId": "A",
          "type": "json",
          "source": "url",
          "format": "table",
          "parser": "backend",
          "url": "/zabbix/host-status?host=$host",
          "url_options": {
            "method": "GET",
            "data": ""
          },
          "root_selector": "rows[label=\"Status\"]",
          "columns": [
            {
              "selector": "value",
              "text": "value",
              "type": "string"
            }
          ]
        }
      ],
      "title": "Status",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "yesoreyeram-infinity-datasource",
        "uid": "grafana-proxy"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "fixed",
            "fixedColor": "green"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 12,
        "x": 12,
        "y": 0
      },
      "id": 6,
      "options": {
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "value",
          "values": false
        },
        "orientation": "horizontal",
        "textMode": "value",
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "center"
      },
      "targets": [
        {
          "refId": "A",
          "type": "json",
          "source": "url",
          "format": "table",
          "parser": "backend",
          "url": "/zabbix/host-status?host=$host",
          "url_options": {
            "method": "GET",
            "data": ""
          },
          "root_selector": "rows[label=\"Uptime\"]",
          "columns": [
            {
              "selector": "value",
              "text": "value",
              "type": "string"
            }
          ]
        }
      ],
      "title": "Uptime",
      "type": "stat"
    }
  ],
  "refresh": "",
  "schemaVersion": 38,
  "style": "dark",
  "tags": [
    "proxy",
    "zabbix",
    "detail"
  ],
  "templating": {
    "list": [
      {
        "name": "host",
        "label": "Host",
        "type": "query",
        "datasource": {
          "type": "yesoreyeram-infinity-datasource",
          "uid": "grafana-proxy"
        },
        "query": {
          "refId": "variable",
          "queryType": "infinity",
          "infinityQuery": {
            "type": "json",
            "source": "url",
            "format": "table",
            "parser": "backend",
            "url": "/zabbix/hosts",
            "url_options": {
              "method": "GET",
              "data": ""
            },
            "root_selector": "rows",
            "columns": [
              {
                "selector": "text",
                "text": "__text",
                "type": "string"
              },
              {
                "selector": "value",
                "text": "__value",
                "type": "string"
              }
            ]
          }
        },
        "options": [],
        "includeAll": false,
        "multi": false,
        "refresh": 1
      },
      {
        "name": "view",
        "label": "Filter",
        "type": "custom",
        "query": "core_network,core,all",
        "current": {
          "text": "core_network",
          "value": "core_network"
        },
        "options": [
          {
            "text": "core_network",
            "value": "core_network",
            "selected": true
          },
          {
            "text": "core",
            "value": "core",
            "selected": false
          },
          {
            "text": "all",
            "value": "all",
            "selected": false
          }
        ],
        "includeAll": false,
        "multi": false
      },
      {
        "name": "contains",
        "label": "Contains",
        "type": "textbox",
        "query": "",
        "current": {
          "text": "",
          "value": ""
        }
      }
    ]
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Zabbix Host Detail",
  "uid": "grafana-proxy-host-detail",
  "version": 1,
  "weekStart": ""
}