Grafana dashboard: Proxmox VE Syslog
Description: Proxmox VE Syslog

Configure Proxmox VE to send metrics to InfluxDB https://pve.proxmox.com/wiki/External_Metric_Server

https://www.cv4pve-metrics.com

https://github.com/Corsinvest/cv4pve-metrics

https://www.corsinvest.it

{
  "__inputs": [
    {
      "name": "DS_TELEGRAF_PROXMOX",
      "label": "telegraf_proxmox",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.5.2"
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 12915,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1598615981524,
  "links": [
    {
      "icon": "external link",
      "tags": [],
      "targetBlank": true,
      "title": "Syslog Info",
      "tooltip": "Syslog Info",
      "type": "link",
      "url": "https://en.wikipedia.org/wiki/Syslog"
    },
    {
      "icon": "external link",
      "tags": [],
      "targetBlank": true,
      "title": "cv4pve-tools",
      "tooltip": "cv4pve-tools",
      "type": "link",
      "url": "www.cv4pve-tools.com"
    }
  ],
  "panels": [
    {
      "columns": [],
      "datasource": "${DS_TELEGRAF_PROXMOX}",
      "fontSize": "100%",
      "gridPos": {
        "h": 20,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 2,
      "options": {},
      "pageSize": null,
      "showHeader": true,
      "sort": {
        "col": 0,
        "desc": true
      },
      "styles": [
        {
          "alias": "Time",
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "pattern": "Time",
          "type": "date"
        },
        {
          "alias": "App Name",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "decimals": null,
          "pattern": "syslog.appname",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "Facility",
          "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": null,
          "mappingType": 1,
          "pattern": "syslog.facility",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "Severity",
          "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": null,
          "mappingType": 1,
          "pattern": "syslog.severity",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "Message",
          "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": null,
          "mappingType": 1,
          "pattern": "syslog.message",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "Severity code",
          "colorMode": "row",
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": null,
          "mappingType": 1,
          "pattern": "syslog.severity_code",
          "thresholds": [
            "4",
            "5"
          ],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "Host",
          "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": "syslog.host",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "groupBy": [],
          "measurement": "syslog",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT \"host\", \"appname\", \"facility\", \"severity\", \"message\", \"severity_code\" FROM \"syslog\" WHERE (\"host\" =~ /^$host$/ AND \"appname\" =~ /^$appname$/ AND \"facility\" =~ /^$facility$/ AND \"severity\" =~ /^$severity$/) AND $timeFilter",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "appname"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "facility"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "severity"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "message"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "severity_code"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "host"
                ],
                "type": "field"
              }
            ]
          ],
          "tags": [
            {
              "key": "host",
              "operator": "=~",
              "value": "/^$host$/"
            },
            {
              "condition": "AND",
              "key": "appname",
              "operator": "=~",
              "value": "/^$appname$/"
            },
            {
              "condition": "AND",
              "key": "facility",
              "operator": "=~",
              "value": "/^$facility$/"
            },
            {
              "condition": "AND",
              "key": "severity",
              "operator": "=~",
              "value": "/^$severity$/"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Syslog",
      "transform": "timeseries_to_columns",
      "type": "table"
    }
  ],
  "refresh": "5s",
  "schemaVersion": 21,
  "style": "dark",
  "tags": [
    "Proxmox VE",
    "syslog"
  ],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_TELEGRAF_PROXMOX}",
        "definition": "SHOW TAG VALUES FROM syslog WITH KEY=host",
        "hide": 0,
        "includeAll": true,
        "label": "host",
        "multi": true,
        "name": "host",
        "options": [],
        "query": "SHOW TAG VALUES FROM syslog WITH KEY=host",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_TELEGRAF_PROXMOX}",
        "definition": "SHOW TAG VALUES FROM syslog WITH KEY=appname WHERE (\"host\" =~ /^$host$/) AND $timeFilter",
        "hide": 0,
        "includeAll": true,
        "label": "App Name",
        "multi": true,
        "name": "appname",
        "options": [],
        "query": "SHOW TAG VALUES FROM syslog WITH KEY=appname WHERE (\"host\" =~ /^$host$/) AND $timeFilter",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_TELEGRAF_PROXMOX}",
        "definition": "SHOW TAG VALUES FROM syslog WITH KEY=facility WHERE (\"host\" =~ /^$host$/) AND $timeFilter",
        "hide": 0,
        "includeAll": true,
        "label": "Facility",
        "multi": true,
        "name": "facility",
        "options": [],
        "query": "SHOW TAG VALUES FROM syslog WITH KEY=facility WHERE (\"host\" =~ /^$host$/) AND $timeFilter",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_TELEGRAF_PROXMOX}",
        "definition": "SHOW TAG VALUES FROM syslog WITH KEY=severity WHERE (\"host\" =~ /^$host$/) AND $timeFilter",
        "hide": 0,
        "includeAll": true,
        "label": "Severity",
        "multi": true,
        "name": "severity",
        "options": [],
        "query": "SHOW TAG VALUES FROM syslog WITH KEY=severity WHERE (\"host\" =~ /^$host$/) AND $timeFilter",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "Proxmox VE Syslog",
  "uid": "jiMs3OaZz",
  "version": 26,
  "description": "Proxmox VE Syslog"
}