Grafana dashboard: Grafana Dashboard for Runecast
Description: Grafana Dashboard for Runecast

Just download the latest Runecast script version from GitHub [https://raw.githubusercontent.com/jorgedlcruz/runecast-grafana/main/runecast_grafana.sh](https://raw.githubusercontent.com/jorgedlcruz/runecast-grafana/main/runecast_grafana.sh) and change the Configuration section within your details:

```
##
# Configurations
##
# Endpoint URL for InfluxDB
InfluxDBURL="http://YOURINFLUXSERVER" #Your InfluxDB Server, http://FQDN or https://FQDN if using SSL
InfluxDBPort="8086" #Default Port
InfluxDB="telegraf" #Default Database
InfluxDBUser="INFLUXUSER" #User for Database
InfluxDBPassword='INFLUXPASS' #Password for Database

# Endpoint URL for login action
runecastToken="RUNECASTOTKEN" #Your read-only Runecast token. You can quickly create one from the portal
runecastServer="RUNECASTFQDNORIP"
``` 
Once the changes are done, make the script executable with chmod:
```
chmod +x runecast_grafana.sh
``` 
The output of the command should be something like the next, without errors:
```
Writing runecast_results_analysis to InfluxDB
HTTP/1.1 204 No Content
Content-Type: application/json
Request-Id: 6cc3cc65-9b71-11eb-8794-0050569017a8
X-Influxdb-Build: OSS
X-Influxdb-Version: 1.8.4
X-Request-Id: 6cc3cc65-9b71-11eb-8794-0050569017a8
Date: Mon, 12 Apr 2021 09:28:22 GMT

Writing runecast_results_analysis to InfluxDB
HTTP/1.1 204 No Content
Content-Type: application/json
Request-Id: 6ce92985-9b71-11eb-8795-0050569017a8
X-Influxdb-Build: OSS
X-Influxdb-Version: 1.8.4
X-Request-Id: 6ce92985-9b71-11eb-8795-0050569017a8
Date: Mon, 12 Apr 2021 09:28:22 GMT
``` 
If so, please now add this script to your crontab, like for example every 30 minutes:
```
0 0 */6 ? * * /home/oper/runecast_grafana.sh >> /var/log/runecast_grafana.log 2>&1
``` 

Then download or import this Dashboard to your Grafana, and you should see something similar to the next:
![alt tag](https://www.jorgedelacruz.es/wp-content/uploads/2021/04/runecast-001.png)

{
  "__inputs": [
    {
      "name": "DS_INFLUXDB",
      "label": "InfluxDB",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "7.4.1"
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    },
    {
      "type": "panel",
      "id": "text",
      "name": "Text",
      "version": ""
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "Grafana Dashboard for Runecast",
  "editable": true,
  "gnetId": 14213,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1618166763343,
  "links": [],
  "panels": [
    {
      "datasource": "${DS_INFLUXDB}",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "gridPos": {
        "h": 2,
        "w": 3,
        "x": 0,
        "y": 0
      },
      "id": 28,
      "options": {
        "content": "<a href=\"https://jorgedelacruz.uk\" target=\"_blank\"><img src=\"https://www.jorgedelacruz.es/wp-content/uploads/2021/04/runecastwhite.png\" alt=\"Runecast-logo\" width=\"100%\"/></a>\n\n",
        "mode": "html"
      },
      "pluginVersion": "7.4.1",
      "targets": [
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "",
      "transparent": true,
      "type": "text"
    },
    {
      "datasource": "${DS_INFLUXDB}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {},
          "decimals": 2,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "#fc940c",
                "value": null
              }
            ]
          },
          "unit": "locale"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "D"
            },
            "properties": [
              {
                "id": "unit",
                "value": "short"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 2,
        "w": 12,
        "x": 3,
        "y": 0
      },
      "id": 2,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {
          "valueSize": 20
        },
        "textMode": "name"
      },
      "pluginVersion": "7.4.1",
      "targets": [
        {
          "alias": "Runecast Server: $tag_rc2Appliance",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "rc2Appliance"
              ],
              "type": "tag"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "runecast_appliance_overview",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "rc2Versionshort"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "Runecast Version: $tag_rc2Version",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "rc2Version"
              ],
              "type": "tag"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "runecast_appliance_overview",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "rc2Versionshort"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "Definitions Version: $tag_rc2DefinitionsVersion",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "rc2DefinitionsVersion"
              ],
              "type": "tag"
            },
            {
              "params": [
                "rc2DefinitionsDate"
              ],
              "type": "tag"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "runecast_appliance_overview",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "C",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "rc2Versionshort"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "",
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": "${DS_INFLUXDB}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {},
          "decimals": 2,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "#fc940c",
                "value": null
              }
            ]
          },
          "unit": "locale"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "A"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Licensed Sockets"
              }
            ]
          },
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "B"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Used Sockets"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 2,
        "w": 5,
        "x": 15,
        "y": 0
      },
      "id": 49,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {
          "valueSize": 20
        },
        "textMode": "auto"
      },
      "pluginVersion": "7.4.1",
      "targets": [
        {
          "alias": "",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "rc2Appliance"
              ],
              "type": "tag"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "runecast_license_overview",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "rc2LicenseAllowed"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "rc2Appliance"
              ],
              "type": "tag"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "runecast_license_overview",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "rc2LicenseUsed"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "",
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": "${DS_INFLUXDB}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {},
          "decimals": 2,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "#fc940c",
                "value": null
              }
            ]
          },
          "unit": "locale"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "A"
            },
            "properties": [
              {
                "id": "unit",
                "value": "dtdurationms"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 2,
        "w": 4,
        "x": 20,
        "y": 0
      },
      "id": 48,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {
          "valueSize": 20
        },
        "textMode": "value"
      },
      "pluginVersion": "7.4.1",
      "targets": [
        {
          "alias": "Runecast Server:",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "rc2Appliance"
              ],
              "type": "tag"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "runecast_license_overview",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "rc2LicenseValid"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "License Valid For",
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": "${DS_INFLUXDB}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 2
      },
      "id": 41,
      "panels": [],
      "repeat": "clustername",
      "title": "Objects count history - Current",
      "type": "row"
    },
    {
      "datasource": "${DS_INFLUXDB}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {},
          "decimals": 2,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "#fc940c",
                "value": null
              }
            ]
          },
          "unit": "locale"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "A"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Critical"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "dark-red",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "B"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Major"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "dark-orange",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "C"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Medium"
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "dark-yellow",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "D"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Low"
              },
              {
                "id": "color",
                "value": {
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 0,
        "y": 3
      },
      "id": 51,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {
          "titleSize": 30,
          "valueSize": 60
        },
        "textMode": "auto"
      },
      "pluginVersion": "7.4.1",
      "targets": [
        {
          "alias": "",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "rc2Appliance"
              ],
              "type": "tag"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "runecast_appliance_overview",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT count(distinct(\"rc2IssueID\")) AS \"Critical\" FROM (SELECT \"rc2IssueObjectsCount\", \"rc2IssueID\" FROM  \"runecast_results_analysis\" WHERE (\"rc2IssueSeverity\" = 'Critical') AND $timeFilter)",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "rc2Versionshort"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "rc2Appliance"
              ],
              "type": "tag"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "runecast_appliance_overview",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT count(distinct(\"rc2IssueID\")) AS \"Major\" FROM (SELECT \"rc2IssueObjectsCount\", \"rc2IssueID\" FROM  \"runecast_results_analysis\" WHERE (\"rc2IssueSeverity\" = 'Major') AND $timeFilter)",
          "rawQuery": true,
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "rc2Versionshort"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "rc2Appliance"
              ],
              "type": "tag"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "runecast_appliance_overview",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT count(distinct(\"rc2IssueID\")) AS \"Medium\" FROM (SELECT \"rc2IssueObjectsCount\", \"rc2IssueID\" FROM  \"runecast_results_analysis\" WHERE (\"rc2IssueSeverity\" = 'Medium') AND $timeFilter)",
          "rawQuery": true,
          "refId": "C",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "rc2Versionshort"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "rc2Appliance"
              ],
              "type": "tag"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "runecast_appliance_overview",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT count(distinct(\"rc2IssueID\")) AS \"Low\" FROM (SELECT \"rc2IssueObjectsCount\", \"rc2IssueID\" FROM  \"runecast_results_analysis\" WHERE (\"rc2IssueSeverity\" = 'Low') AND $timeFilter)",
          "rawQuery": true,
          "refId": "D",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "rc2Versionshort"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "",
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": "${DS_INFLUXDB}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "Current Issues",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "bars",
            "fillOpacity": 100,
            "gradientMode": "hue",
            "hideFrom": {
              "graph": false,
              "legend": false,
              "tooltip": false
            },
            "lineInterpolation": "stepAfter",
            "lineWidth": 0,
            "pointSize": 10,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "always",
            "spanNulls": true
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "short"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "runecast_results_analysis.Critical"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "dark-red",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "runecast_results_analysis.Major"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "dark-orange",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "runecast_results_analysis.Medium"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "dark-yellow",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "runecast_results_analysis.Low"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "rgb(117, 117, 117)",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 12,
        "y": 3
      },
      "hideTimeOverride": false,
      "id": 53,
      "interval": "1d",
      "maxDataPoints": null,
      "options": {
        "graph": {},
        "legend": {
          "calcs": [],
          "displayMode": "hidden",
          "placement": "bottom"
        },
        "tooltipOptions": {
          "mode": "multi"
        }
      },
      "pluginVersion": "7.4.1",
      "targets": [
        {
          "alias": "",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "previous"
              ],
              "type": "fill"
            }
          ],
          "measurement": "runecast_results_analysis",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT count(distinct(\"rc2IssueID\")) AS \"Critical\" FROM (SELECT \"rc2IssueObjectsCount\", \"rc2IssueID\" FROM  \"runecast_results_analysis\" WHERE (\"rc2IssueSeverity\" = 'Critical') AND $timeFilter) GROUP BY time($__interval) fill(previous)",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "rc2IssueObjectsCount"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "count"
              }
            ]
          ],
          "tags": [
            {
              "key": "rc2IssueSeverity",
              "operator": "=",
              "value": "Critical"
            }
          ]
        },
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "previous"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "runecast_results_analysis",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT count(distinct(\"rc2IssueID\")) AS \"Major\" FROM (SELECT \"rc2IssueObjectsCount\", \"rc2IssueID\" FROM  \"runecast_results_analysis\" WHERE (\"rc2IssueSeverity\" = 'Major') AND $timeFilter) GROUP BY time($__interval) fill(previous)",
          "rawQuery": true,
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "rc2IssueObjectsCount"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "count"
              }
            ]
          ],
          "tags": [
            {
              "key": "rc2IssueSeverity",
              "operator": "=",
              "value": "Critical"
            }
          ]
        },
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "previous"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "runecast_results_analysis",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT count(distinct(\"rc2IssueID\")) AS \"Medium\" FROM (SELECT \"rc2IssueObjectsCount\", \"rc2IssueID\" FROM  \"runecast_results_analysis\" WHERE (\"rc2IssueSeverity\" = 'Medium') AND $timeFilter) GROUP BY time($__interval) fill(previous)",
          "rawQuery": true,
          "refId": "C",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "rc2IssueObjectsCount"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "count"
              }
            ]
          ],
          "tags": [
            {
              "key": "rc2IssueSeverity",
              "operator": "=",
              "value": "Critical"
            }
          ]
        },
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "previous"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "runecast_results_analysis",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT count(distinct(\"rc2IssueID\")) AS \"Low\" FROM (SELECT \"rc2IssueObjectsCount\", \"rc2IssueID\" FROM  \"runecast_results_analysis\" WHERE (\"rc2IssueSeverity\" = 'Low') AND $timeFilter) GROUP BY time($__interval) fill(previous)",
          "rawQuery": true,
          "refId": "D",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "rc2IssueObjectsCount"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "count"
              }
            ]
          ],
          "tags": [
            {
              "key": "rc2IssueSeverity",
              "operator": "=",
              "value": "Critical"
            }
          ]
        }
      ],
      "timeFrom": "7d",
      "timeShift": "1d",
      "title": "Issues count history (per scan)",
      "type": "timeseries"
    },
    {
      "cacheTimeout": null,
      "datasource": "${DS_INFLUXDB}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "center",
            "displayMode": "color-background",
            "filterable": true
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "rgb(87, 87, 87)",
                "value": null
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Title"
            },
            "properties": [
              {
                "id": "custom.width"
              },
              {
                "id": "custom.align",
                "value": "left"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Severity"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 100
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Applies to"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 100
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Affects"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 120
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Products"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 100
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Objects"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 80
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Issue ID"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 150
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 7,
        "w": 24,
        "x": 0,
        "y": 10
      },
      "id": 32,
      "interval": "",
      "links": [],
      "options": {
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "7.4.1",
      "targets": [
        {
          "alias": "",
          "groupBy": [
            {
              "params": [
                "rc2IssueSeverity"
              ],
              "type": "tag"
            },
            {
              "params": [
                "rc2IssueApplietsTo"
              ],
              "type": "tag"
            },
            {
              "params": [
                "rc2IssueAffects"
              ],
              "type": "tag"
            },
            {
              "params": [
                "rc2IssueProduct"
              ],
              "type": "tag"
            },
            {
              "params": [
                "rc2IssueTitle"
              ],
              "type": "tag"
            },
            {
              "params": [
                "rc2IssueDisplayID"
              ],
              "type": "tag"
            }
          ],
          "measurement": "runecast_results_analysis",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT last(\"VMSize\") AS \"VM  Size\" FROM \"veeam_azure_vm_unprotected\" WHERE (\"VMName\" =~ /^$VMName$/) AND $timeFilter GROUP BY \"VMName\", \"VMRegion\" ",
          "rawQuery": false,
          "refId": "A",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "rc2IssueObjectsCount"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": [
            {
              "key": "rc2Appliance",
              "operator": "=~",
              "value": "/^$rc2appliance$/"
            },
            {
              "condition": "AND",
              "key": "rc2IssueSeverity",
              "operator": "=~",
              "value": "/^$rc2severity$/"
            },
            {
              "condition": "AND",
              "key": "rc2IssueAffects",
              "operator": "=~",
              "value": "/^$rc2affects$/"
            },
            {
              "condition": "AND",
              "key": "rc2IssueApplietsTo",
              "operator": "=~",
              "value": "/^$rc2applies$/"
            },
            {
              "condition": "AND",
              "key": "rc2IssueProduct",
              "operator": "=~",
              "value": "/^$rc2product$/"
            }
          ],
          "tz": ""
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "All Issues View - Overview",
      "transformations": [
        {
          "id": "seriesToColumns",
          "options": {
            "byField": "SVMName"
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "PolicyDescription 1": false,
              "Time": true,
              "Time 1": true,
              "Time 2": true,
              "Time 3": true,
              "Time 4": true,
              "Time 5": true,
              "Time 6": true,
              "Time 7": true
            },
            "indexByName": {
              "Time": 0,
              "last": 5,
              "rc2IssueAffects": 3,
              "rc2IssueApplietsTo": 2,
              "rc2IssueDisplayID": 7,
              "rc2IssueProduct": 4,
              "rc2IssueSeverity": 1,
              "rc2IssueTitle": 6
            },
            "renameByName": {
              "Application-Aware": "Application-Aware",
              "Daily": "Daily Snapshots",
              "Monthly": "Monthly Snapshots",
              "PolicyDescription 1": "Description",
              "PolicyName": "Name",
              "PolicyStatus": "Enabled",
              "PolicyStatus 1": "",
              "SVMName": "Name",
              "Weekly": "Weekly Snapshots",
              "Yearly": "Yearly Snapshots",
              "last": "Objects",
              "rc2IssueAffects": "Affects",
              "rc2IssueApplietsTo": "Applies to",
              "rc2IssueDisplayID": "Issue ID",
              "rc2IssueProduct": "Products",
              "rc2IssueSeverity": "Severity",
              "rc2IssueTitle": "Title"
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "cacheTimeout": null,
      "datasource": "${DS_INFLUXDB}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "center",
            "displayMode": "color-background",
            "filterable": true
          },
          "mappings": [],
          "noValue": "-",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "rgb(70, 83, 99)",
                "value": null
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Severity"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 100
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Title"
            },
            "properties": [
              {
                "id": "custom.align",
                "value": "left"
              },
              {
                "id": "custom.width",
                "value": 600
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Affected objects"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 300
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Object Type"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 120
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Issue ID"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 150
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 7,
        "w": 24,
        "x": 0,
        "y": 17
      },
      "id": 50,
      "interval": "",
      "links": [],
      "options": {
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "7.4.1",
      "targets": [
        {
          "alias": "",
          "groupBy": [
            {
              "params": [
                "rc2IssueDisplayID"
              ],
              "type": "tag"
            },
            {
              "params": [
                "rc2IssueObjectName"
              ],
              "type": "tag"
            },
            {
              "params": [
                "rc2IssueObjectType"
              ],
              "type": "tag"
            },
            {
              "params": [
                "rc2IssueObjectValue"
              ],
              "type": "tag"
            },
            {
              "params": [
                "rc2IssueSeverity"
              ],
              "type": "tag"
            },
            {
              "params": [
                "rc2IssueTitle"
              ],
              "type": "tag"
            }
          ],
          "measurement": "runecast_results_analysis",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT last(\"VMSize\") AS \"VM  Size\" FROM \"veeam_azure_vm_unprotected\" WHERE (\"VMName\" =~ /^$VMName$/) AND $timeFilter GROUP BY \"VMName\", \"VMRegion\" ",
          "rawQuery": false,
          "refId": "A",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "rc2IssueObjectsCount"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": [
            {
              "key": "rc2Appliance",
              "operator": "=~",
              "value": "/^$rc2appliance$/"
            }
          ],
          "tz": ""
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "All Issues View - Overview",
      "transformations": [
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "PolicyDescription 1": false,
              "Time": true,
              "Time 1": true,
              "Time 2": true,
              "Time 3": true,
              "Time 4": true,
              "Time 5": true,
              "Time 6": true,
              "Time 7": true,
              "last": true
            },
            "indexByName": {
              "Time": 0,
              "last": 1,
              "rc2IssueDisplayID": 4,
              "rc2IssueObjectName": 5,
              "rc2IssueObjectType": 6,
              "rc2IssueObjectValue": 7,
              "rc2IssueSeverity": 2,
              "rc2IssueTitle": 3
            },
            "renameByName": {
              "Application-Aware": "Application-Aware",
              "Daily": "Daily Snapshots",
              "Monthly": "Monthly Snapshots",
              "PolicyDescription 1": "Description",
              "PolicyName": "Name",
              "PolicyStatus": "Enabled",
              "PolicyStatus 1": "",
              "SVMName": "Name",
              "Time": "",
              "Weekly": "Weekly Snapshots",
              "Yearly": "Yearly Snapshots",
              "last": "Objects",
              "rc2IssueAffects": "Affects",
              "rc2IssueApplietsTo": "Applies to",
              "rc2IssueDisplayID": "Issue ID",
              "rc2IssueObjectName": "Affected objects",
              "rc2IssueObjectType": "Object Type",
              "rc2IssueObjectValue": "Actual value",
              "rc2IssueProduct": "Products",
              "rc2IssueSeverity": "Severity",
              "rc2IssueTitle": "Title"
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": "${DS_INFLUXDB}",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 5,
        "x": 19,
        "y": 24
      },
      "id": 10,
      "options": {
        "content": "<a href=\"https://www.jorgedelacruz.es\"><img src=\"https://www.jorgedelacruz.es/wp-content/uploads/2019/04/jorgedelacruz-banner_2efede4ef704c939e63a3763231f5961.png\"></a>\n\n\n\n",
        "mode": "html"
      },
      "pluginVersion": "7.4.1",
      "targets": [
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "",
      "transparent": true,
      "type": "text"
    }
  ],
  "refresh": false,
  "schemaVersion": 27,
  "style": "dark",
  "tags": [
    "runecast",
    "vmware runecast"
  ],
  "templating": {
    "list": [
      {
        "auto": true,
        "auto_count": 30,
        "auto_min": "15s",
        "current": {
          "selected": false,
          "text": "15s",
          "value": "15s"
        },
        "description": null,
        "error": null,
        "hide": 0,
        "label": "Sampling",
        "name": "inter",
        "options": [
          {
            "selected": false,
            "text": "auto",
            "value": "$__auto_interval_inter"
          },
          {
            "selected": true,
            "text": "15s",
            "value": "15s"
          },
          {
            "selected": false,
            "text": "1m",
            "value": "1m"
          },
          {
            "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": "15s,1m,10m,30m,1h,6h,12h,1d,7d,14d,30d",
        "queryValue": "",
        "refresh": 2,
        "skipUrlSync": false,
        "type": "interval"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_INFLUXDB}",
        "definition": "SHOW TAG VALUES FROM runecast_appliance_overview WITH KEY=rc2Appliance",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": "Appliance",
        "multi": true,
        "name": "rc2appliance",
        "options": [],
        "query": "SHOW TAG VALUES FROM runecast_appliance_overview WITH KEY=rc2Appliance",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_INFLUXDB}",
        "definition": "SHOW TAG VALUES FROM runecast_results_analysis WITH KEY=rc2IssueAffects",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": "Affects",
        "multi": true,
        "name": "rc2affects",
        "options": [],
        "query": "SHOW TAG VALUES FROM runecast_results_analysis WITH KEY=rc2IssueAffects",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_INFLUXDB}",
        "definition": "SHOW TAG VALUES FROM runecast_results_analysis WITH KEY=rc2IssueApplietsTo",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": "Applies To",
        "multi": true,
        "name": "rc2applies",
        "options": [],
        "query": "SHOW TAG VALUES FROM runecast_results_analysis WITH KEY=rc2IssueApplietsTo",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_INFLUXDB}",
        "definition": "SHOW TAG VALUES FROM runecast_results_analysis WITH KEY=rc2IssueProduct",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": "Product",
        "multi": true,
        "name": "rc2product",
        "options": [],
        "query": "SHOW TAG VALUES FROM runecast_results_analysis WITH KEY=rc2IssueProduct",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_INFLUXDB}",
        "definition": "SHOW TAG VALUES FROM runecast_results_analysis WITH KEY=rc2IssueSeverity",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": "Severity",
        "multi": true,
        "name": "rc2severity",
        "options": [],
        "query": "SHOW TAG VALUES FROM runecast_results_analysis WITH KEY=rc2IssueSeverity",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-2d",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "Grafana Dashboard for Runecast",
  "uid": "NvjjfWuMz",
  "version": 12
}