Proxmox VE cv4pve-autosnap
cv4pve-autosnap Page for Proxmox VE

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

https://www.cv4pve-tools.com

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

https://www.corsinvest.it
{
  "__inputs": [
    {
      "name": "DS_PROXMOX",
      "label": "proxmox",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    },
    {
      "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": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "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"
      }
    ]
  },
  "description": "cv4pve-autosnap Page for Proxmox VE\n\nConfigure Proxmox VE to send metrics to InfluxDB https://pve.proxmox.com/wiki/External_Metric_Server\n\nhttps://www.cv4pve-tools.com\n\nhttps://github.com/Corsinvest/cv4pve-metrics\nhttps://github.com/Corsinvest/cv4pve-autosnap\n\nhttps://www.corsinvest.it",
  "editable": true,
  "gnetId": 13099,
  "graphTooltip": 1,
  "id": null,
  "iteration": 1601629082965,
  "links": [
    {
      "icon": "external link",
      "tags": [],
      "targetBlank": true,
      "title": "cv4pve-tools",
      "tooltip": "cv4pve-tools",
      "type": "link",
      "url": "https://www.cv4pve-tools.com"
    }
  ],
  "panels": [
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROXMOX}",
      "fill": 0,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "hiddenSeries": false,
      "id": 6,
      "interval": "",
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "rightSide": true,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "connected",
      "options": {
        "dataLinks": []
      },
      "percentage": true,
      "pointradius": 5,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "$tag_vmname ($tag_vmid)",
          "dsType": "influxdb",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "vmid"
              ],
              "type": "tag"
            },
            {
              "params": [
                "vmname"
              ],
              "type": "tag"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "cv4pve-autosnap",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT mean(\"success\") FROM \"cv4pve-autosnap\" WHERE (\"label\" =~ /^$label$/ AND \"vmid\" =~ /^$vmid$/) AND $timeFilter GROUP BY time($__interval), \"vmid\" fill(null)",
          "rawQuery": false,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "success"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "label",
              "operator": "=~",
              "value": "/^$label$/"
            },
            {
              "condition": "AND",
              "key": "vmid",
              "operator": "=~",
              "value": "/^$vmid$/"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Frequency",
      "tooltip": {
        "shared": false,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": null,
          "format": "none",
          "label": "",
          "logBase": 1,
          "max": "1.05",
          "min": "-0.05",
          "show": false
        },
        {
          "format": "bytes",
          "label": "aa",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROXMOX}",
      "fill": 0,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 0
      },
      "hiddenSeries": false,
      "id": 23,
      "interval": "",
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": true,
        "min": false,
        "rightSide": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "connected",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 5,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "$tag_vmname ($tag_vmid)",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "vmid"
              ],
              "type": "tag"
            },
            {
              "params": [
                "vmname"
              ],
              "type": "tag"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "cv4pve-autosnap",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "duration"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "label",
              "operator": "=~",
              "value": "/^$label$/"
            },
            {
              "condition": "AND",
              "key": "vmid",
              "operator": "=~",
              "value": "/^$vmid$/"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Duration",
      "tooltip": {
        "shared": false,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "s",
          "label": "",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "bytes",
          "label": "",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "columns": [],
      "datasource": "${DS_TELEGRAF_PROXMOX}",
      "fontSize": "100%",
      "gridPos": {
        "h": 8,
        "w": 24,
        "x": 0,
        "y": 8
      },
      "id": 21,
      "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\", \"faclity\", \"severity\", \"message\", \"severity_code\" FROM \"syslog\" WHERE (\"appname\" = 'pvedaemon' AND \"message\"  =~ /snapshot*/) AND $timeFilter",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "host"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "appname"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "faclity"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "severity"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "message"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "severity_code"
                ],
                "type": "field"
              }
            ]
          ],
          "tags": [
            {
              "key": "appname",
              "operator": "=",
              "value": "pvedaemon"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Syslog",
      "transform": "timeseries_to_columns",
      "type": "table"
    },
    {
      "columns": [],
      "datasource": "${DS_PROXMOX}",
      "fontSize": "100%",
      "gridPos": {
        "h": 8,
        "w": 24,
        "x": 0,
        "y": 16
      },
      "id": 3,
      "links": [],
      "options": {},
      "pageSize": null,
      "repeat": null,
      "scroll": true,
      "showHeader": true,
      "sort": {
        "col": 0,
        "desc": true
      },
      "styles": [
        {
          "alias": "Date",
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "pattern": "Time",
          "type": "date"
        },
        {
          "alias": "Success",
          "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": 0,
          "pattern": "success",
          "thresholds": [
            "0.5",
            "1"
          ],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "VM id",
          "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": 0,
          "mappingType": 1,
          "pattern": "vmid",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "Store",
          "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": "storeid",
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "alias": "Size",
          "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": "size",
          "thresholds": [],
          "type": "number",
          "unit": "decbytes"
        },
        {
          "alias": "Speed",
          "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": 0,
          "mappingType": 1,
          "pattern": "speed",
          "thresholds": [],
          "type": "number",
          "unit": "MBs"
        },
        {
          "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": "host",
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "alias": "Duration",
          "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": "duration",
          "thresholds": [],
          "type": "number",
          "unit": "s"
        },
        {
          "alias": "Type",
          "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": "type",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "Name",
          "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": "vmname",
          "thresholds": [],
          "type": "string",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "alias": "$tag_host",
          "dsType": "influxdb",
          "groupBy": [],
          "measurement": "cv4pve-autosnap",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "success"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "vmid"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "duration"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "type"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "vmname"
                ],
                "type": "field"
              }
            ]
          ],
          "tags": [
            {
              "key": "label",
              "operator": "=~",
              "value": "/^$label$/"
            },
            {
              "condition": "AND",
              "key": "vmid",
              "operator": "=~",
              "value": "/^$vmid$/"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "State",
      "transform": "table",
      "type": "table"
    }
  ],
  "refresh": "",
  "schemaVersion": 21,
  "style": "dark",
  "tags": [
    "Proxmox VE",
    "cv4pve-autosnap"
  ],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROXMOX}",
        "definition": "SHOW TAG VALUES FROM \"cv4pve-autosnap\" WITH KEY = \"label\"",
        "hide": 0,
        "includeAll": true,
        "label": "Label",
        "multi": true,
        "name": "label",
        "options": [],
        "query": "SHOW TAG VALUES FROM \"cv4pve-autosnap\" WITH KEY = \"label\"",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROXMOX}",
        "definition": "SHOW TAG VALUES FROM \"cv4pve-autosnap\" WITH KEY = \"type\"  WHERE \"label\" =~ /^$label$/ ",
        "hide": 0,
        "includeAll": true,
        "label": "Type",
        "multi": true,
        "name": "type",
        "options": [],
        "query": "SHOW TAG VALUES FROM \"cv4pve-autosnap\" WITH KEY = \"type\"  WHERE \"label\" =~ /^$label$/ ",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROXMOX}",
        "definition": "SHOW TAG VALUES FROM \"cv4pve-autosnap\" WITH KEY = \"vmid\"  WHERE \"label\" =~ /^$label$/  AND \"type\" =~ /^$type$/",
        "hide": 0,
        "includeAll": true,
        "label": "VM id",
        "multi": true,
        "name": "vmid",
        "options": [],
        "query": "SHOW TAG VALUES FROM \"cv4pve-autosnap\" WITH KEY = \"vmid\"  WHERE \"label\" =~ /^$label$/  AND \"type\" =~ /^$type$/",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-7d",
    "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": "Proxmox VE cv4pve-autosnap",
  "uid": "BdEnnKaWk",
  "version": 32
}