From fc93d494dd87b18aaabd4ce21b86a86637dfd8d8 Mon Sep 17 00:00:00 2001 From: jogotcha Date: Sat, 25 Jan 2025 09:05:08 +0100 Subject: [PATCH] feat(prometheus-pve-exporter): add prometheus-pve-exporter chart (#30559) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** add [prometheus-pve-exporter](https://github.com/prometheus-pve/prometheus-pve-exporter), a Prometheus exporter for Proxmox Virtual Environment metrics. ⚒️ Fixes # **⚙️ Type of change** - [x] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** **📃 Notes:** **✔️ Checklist:** - [x] ⚖️ My code follows the style guidelines of this project - [x] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [ ] ⬆️ I increased versions for any altered app according to semantic versioning - [x] I made sure the title starts with `feat(chart-name):`, `fix(chart-name):` or `chore(chart-name):` **➕ App addition** If this PR is an app addition please make sure you have done the following. - [x] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --------- Co-authored-by: Alfred Göppel <43101280+alfi0812@users.noreply.github.com> --- .../prometheus-pve-exporter/.helmignore | 32 + .../prometheus-pve-exporter/CHANGELOG.md | 4 + .../prometheus-pve-exporter/Chart.yaml | 39 + .../prometheus-pve-exporter/README.md | 50 + .../prometheus-pve-exporter/dashboard.json | 1967 +++++++++++++++++ .../prometheus-pve-exporter/icon-small.webp | Bin 0 -> 592 bytes .../prometheus-pve-exporter/icon.webp | Bin 0 -> 3446 bytes .../templates/NOTES.txt | 1 + .../templates/common.yaml | 5 + .../prometheus-pve-exporter/values.yaml | 77 + cspell.config.yaml | 2 + 11 files changed, 2177 insertions(+) create mode 100644 charts/incubator/prometheus-pve-exporter/.helmignore create mode 100644 charts/incubator/prometheus-pve-exporter/CHANGELOG.md create mode 100644 charts/incubator/prometheus-pve-exporter/Chart.yaml create mode 100644 charts/incubator/prometheus-pve-exporter/README.md create mode 100644 charts/incubator/prometheus-pve-exporter/dashboard.json create mode 100644 charts/incubator/prometheus-pve-exporter/icon-small.webp create mode 100644 charts/incubator/prometheus-pve-exporter/icon.webp create mode 100644 charts/incubator/prometheus-pve-exporter/templates/NOTES.txt create mode 100644 charts/incubator/prometheus-pve-exporter/templates/common.yaml create mode 100644 charts/incubator/prometheus-pve-exporter/values.yaml diff --git a/charts/incubator/prometheus-pve-exporter/.helmignore b/charts/incubator/prometheus-pve-exporter/.helmignore new file mode 100644 index 00000000000..feb7464da6f --- /dev/null +++ b/charts/incubator/prometheus-pve-exporter/.helmignore @@ -0,0 +1,32 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ +# OWNERS file for Kubernetes +OWNERS +# helm-docs templates +*.gotmpl +# docs folder +/docs +# icon +icon.png +icon.webp +icon-small.webp diff --git a/charts/incubator/prometheus-pve-exporter/CHANGELOG.md b/charts/incubator/prometheus-pve-exporter/CHANGELOG.md new file mode 100644 index 00000000000..f3e8318aa10 --- /dev/null +++ b/charts/incubator/prometheus-pve-exporter/CHANGELOG.md @@ -0,0 +1,4 @@ +--- +title: Changelog +pagefind: false +--- diff --git a/charts/incubator/prometheus-pve-exporter/Chart.yaml b/charts/incubator/prometheus-pve-exporter/Chart.yaml new file mode 100644 index 00000000000..4c49c56d968 --- /dev/null +++ b/charts/incubator/prometheus-pve-exporter/Chart.yaml @@ -0,0 +1,39 @@ +annotations: + max_scale_version: 24.04.1 + min_scale_version: 24.04.0 + truecharts.org/category: metrics + truecharts.org/max_helm_version: "3.15" + truecharts.org/min_helm_version: "3.11" + truecharts.org/train: incubator +apiVersion: v2 +appVersion: 3.4.7 +dependencies: + - name: common + version: 25.2.4 + repository: oci://tccr.io/truecharts + condition: "" + alias: "" + tags: [] + import-values: [] +deprecated: false +description: A Prometheus exporter for Proxmox Virtual Environment metrics. +home: https://truecharts.org/charts/incubator/prometheus-pve-exporter +icon: https://truecharts.org/img/hotlink-ok/chart-icons/prometheus-pve-exporter.webp +keywords: + - prometheus + - prometheus-pve-exporter + - monitoring + - proxmox +kubeVersion: '>=1.24.0-0' +maintainers: + - name: TrueCharts + email: info@truecharts.org + url: https://truecharts.org +name: prometheus-pve-exporter +sources: + - https://github.com/truecharts/charts/tree/master/charts/incubator/prometheus-pve-exporter + - https://github.com/prometheus-pve/prometheus-pve-exporter + - https://hub.docker.com/r/prompve/prometheus-pve-exporter + - https://grafana.com/grafana/dashboards/10347-proxmox-via-prometheus/ +type: application +version: 0.1.0 diff --git a/charts/incubator/prometheus-pve-exporter/README.md b/charts/incubator/prometheus-pve-exporter/README.md new file mode 100644 index 00000000000..050e7ca0227 --- /dev/null +++ b/charts/incubator/prometheus-pve-exporter/README.md @@ -0,0 +1,50 @@ +--- +title: README +--- + +## General Info + +For more information about this Chart, please check the docs on the TrueCharts [website](https://truecharts.org/charts/incubator/prometheus-pve-exporter) + +**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/truecharts/charts/issues/new/choose)** + +## Installation + +### Helm-Chart installation + +To install TrueCharts Helm charts using Helm, you can use our OCI Repository. + +`helm install mychart oci://tccr.io/truecharts/prometheus-pve-exporter` + +For more information on how to install TrueCharts Helm charts, checkout the [instructions on the website](/guides) + +## Chart Specific Guides and information + +All our charts have dedicated documentation pages. +The documentation for this chart can be found here: +https://truecharts.org/charts/incubator/prometheus-pve-exporter + +## Configuration Options + +To view the chart specific options, please view Values.yaml included in the chart. +The most recent version of which, is available here: https://github.com/truecharts/public/blob/master/charts/incubator/prometheus-pve-exporter/values.yaml + +All our Charts use a shared "common" library chart that contains most of the templating and options. +For the complete overview of all available options, please checkout the documentation for them on the [common docs on our website](/common) + +For information about the common chart and all defaults included with it, please review its values.yaml file available here: https://github.com/truecharts/public/blob/master/charts/library/common/values.yaml + +## Support + +- See the [Website](https://truecharts.org) +- Check our [Discord](https://discord.gg/tVsPTHWTtr) +- Open a [issue](https://github.com/truecharts/charts/issues/new/choose) + +--- + +## Sponsor TrueCharts + +TrueCharts can only exist due to the incredible effort of our staff. +Please consider making a [donation](/general/sponsor) or contributing back to the project any way you can! + +_All Rights Reserved - The TrueCharts Project_ diff --git a/charts/incubator/prometheus-pve-exporter/dashboard.json b/charts/incubator/prometheus-pve-exporter/dashboard.json new file mode 100644 index 00000000000..92849b3f4a6 --- /dev/null +++ b/charts/incubator/prometheus-pve-exporter/dashboard.json @@ -0,0 +1,1967 @@ +{ + "annotations": { + "list": [ + { + "$$hashKey": "object:215", + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "limit": 100, + "name": "Annotations & Alerts", + "showIn": 0, + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "description": "Proxmox Virtual Environment Dashboard", + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 331, + "links": [], + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Status" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "0": { + "color": "red", + "index": 1, + "text": "stopped" + }, + "1": { + "color": "green", + "index": 0, + "text": "running" + } + }, + "type": "value" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "custom.width", + "value": 73 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Memory" + }, + "properties": [ + { + "id": "unit", + "value": "bytes" + }, + { + "id": "custom.width", + "value": 100 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Disk" + }, + "properties": [ + { + "id": "unit", + "value": "bytes" + }, + { + "id": "custom.width", + "value": 82 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Memory usage (%)" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "mappings", + "value": [ + { + "options": { + "from": 0, + "result": { + "color": "green", + "index": 0 + }, + "to": 0.75 + }, + "type": "range" + }, + { + "options": { + "from": 0.75, + "result": { + "color": "orange", + "index": 1 + }, + "to": 0.9 + }, + "type": "range" + }, + { + "options": { + "from": 0.9, + "result": { + "color": "dark-red", + "index": 2 + }, + "to": 2 + }, + "type": "range" + }, + { + "options": { + "match": "null", + "result": { + "color": "#808080", + "index": 3, + "text": "n/a" + } + }, + "type": "special" + } + ] + }, + { + "id": "custom.width", + "value": 143 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Disk usage (%)" + }, + "properties": [ + { + "id": "mappings", + "value": [ + { + "options": { + "from": 0, + "result": { + "color": "green", + "index": 0 + }, + "to": 0.7 + }, + "type": "range" + }, + { + "options": { + "from": 0.7, + "result": { + "color": "orange", + "index": 1 + }, + "to": 0.9 + }, + "type": "range" + }, + { + "options": { + "from": 0.9, + "result": { + "color": "red", + "index": 2 + }, + "to": 2 + }, + "type": "range" + }, + { + "options": { + "match": "null", + "result": { + "color": "#808080", + "index": 3, + "text": "n/a" + } + }, + "type": "special" + } + ] + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "custom.width", + "value": 120 + }, + { + "id": "unit", + "value": "percentunit" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "vCPUs" + }, + "properties": [ + { + "id": "custom.width", + "value": 66 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Type" + }, + "properties": [ + { + "id": "custom.width", + "value": 67 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "ID" + }, + "properties": [ + { + "id": "custom.width", + "value": 106 + } + ] + } + ] + }, + "gridPos": { + "h": 14, + "w": 14, + "x": 0, + "y": 0 + }, + "id": 19, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 0, + "showHeader": true, + "sortBy": [ + { + "desc": false, + "displayName": "ID" + } + ] + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by (id, name, type) (pve_guest_info{instance=\"$instance\"})", + "format": "table", + "instant": true, + "interval": "", + "legendFormat": "", + "range": false, + "refId": "id, name and type" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by (id) (pve_up{instance=\"$instance\"} and on (id, instance) pve_guest_info)", + "format": "table", + "hide": false, + "instant": true, + "legendFormat": "", + "range": false, + "refId": "status" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by (id) (pve_cpu_usage_limit{instance=\"$instance\"} and on (id, instance) pve_guest_info)", + "format": "table", + "hide": false, + "instant": true, + "legendFormat": "", + "range": false, + "refId": "vcpus" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by (id) (pve_memory_size_bytes{instance=\"$instance\"} and on (id, instance) pve_guest_info)", + "format": "table", + "hide": false, + "instant": true, + "legendFormat": "", + "range": false, + "refId": "memsize" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by (id) (pve_memory_usage_bytes{instance=\"$instance\",template!=\"1\"} / pve_memory_size_bytes and on (id, instance) pve_guest_info and on (id) pve_up==1)", + "format": "table", + "hide": false, + "instant": true, + "legendFormat": "", + "range": false, + "refId": "memusg_percent" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by (id) (pve_disk_size_bytes{instance=\"$instance\"} and on (id, instance) pve_guest_info)", + "format": "table", + "hide": false, + "instant": true, + "legendFormat": "", + "range": false, + "refId": "disksize" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by (id) (pve_disk_usage_bytes{instance=\"$instance\"} / pve_disk_size_bytes and on (id, instance) pve_guest_info{type=\"lxc\"})", + "format": "table", + "hide": false, + "instant": true, + "legendFormat": "", + "range": false, + "refId": "diskusg_percent" + } + ], + "title": "Resource allocation summary", + "transformations": [ + { + "id": "joinByField", + "options": { + "byField": "id", + "mode": "outer" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time 1": true, + "Time 2": true, + "Time 3": true, + "Time 4": true, + "Time 5": true, + "Time 6": true, + "Time 7": true, + "Value #id, name and type": true + }, + "indexByName": {}, + "renameByName": { + "Time 5": "", + "Value #disksize": "Disk", + "Value #diskusg_percent": "Disk usage (%)", + "Value #id, name and type": "", + "Value #memsize": "Memory", + "Value #memusg_percent": "Memory usage (%)", + "Value #status": "Status", + "Value #vcpus": "vCPUs", + "id": "ID", + "name": "Name", + "type": "Type" + } + } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "orange", + "value": 70 + }, + { + "color": "red", + "value": 90 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 7, + "x": 14, + "y": 0 + }, + "id": 23, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "pve_cpu_usage_ratio{instance=\"$instance\"} and on(id) pve_node_info", + "legendFormat": "__auto", + "range": true, + "refId": "usage" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "pve_cpu_usage_limit{instance=\"$instance\"} and on(id) pve_node_info", + "format": "table", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "total" + } + ], + "title": "CPU history", + "transformations": [ + { + "id": "configFromData", + "options": { + "configRefId": "total", + "mappings": [ + { + "fieldName": "Value", + "handlerKey": "max" + } + ] + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 2, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#299c46", + "value": null + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 0.7 + }, + { + "color": "#d44a3a", + "value": 0.9 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 21, + "y": 0 + }, + "id": 7, + "maxDataPoints": 100, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto", + "text": {} + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "pve_cpu_usage_ratio{instance=\"$instance\"} / pve_cpu_usage_limit and on(id) pve_node_info", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "", + "refId": "A" + } + ], + "title": "Current CPU", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Value" + }, + "properties": [ + { + "id": "displayName", + "value": "CPUs" + } + ] + } + ] + }, + "gridPos": { + "h": 2, + "w": 3, + "x": 21, + "y": 5 + }, + "id": 22, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "pve_cpu_usage_limit and on(id) pve_node_info", + "format": "table", + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "A" + } + ], + "title": "", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "orange", + "value": 60 + }, + { + "color": "red", + "value": 90 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 7, + "x": 14, + "y": 7 + }, + "id": 24, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "pve_memory_usage_bytes{instance=\"$instance\"} and on(id) pve_node_info", + "legendFormat": "__auto", + "range": true, + "refId": "usage" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "pve_memory_size_bytes{instance=\"$instance\"} and on(id) pve_node_info", + "format": "table", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "total" + } + ], + "title": "Memory history", + "transformations": [ + { + "id": "configFromData", + "options": { + "configRefId": "total", + "mappings": [ + { + "fieldName": "Value", + "handlerKey": "max" + } + ] + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#299c46", + "value": null + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 0.6 + }, + { + "color": "#d44a3a", + "value": 0.8 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 21, + "y": 7 + }, + "id": 8, + "maxDataPoints": 100, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto", + "text": {} + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "pve_memory_usage_bytes{instance=\"$instance\"} / pve_memory_size_bytes and on(id) pve_node_info", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "", + "refId": "A" + } + ], + "title": "Current memory", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "orange", + "value": 60 + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Value #used" + }, + "properties": [ + { + "id": "displayName", + "value": "used" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #total" + }, + "properties": [ + { + "id": "displayName", + "value": "total" + }, + { + "id": "color", + "value": { + "fixedColor": "text", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 2, + "w": 3, + "x": 21, + "y": 12 + }, + "id": 20, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 20 + }, + "textMode": "value_and_name", + "wideLayout": true + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "pve_memory_usage_bytes{instance=\"$instance\"} and on(id) pve_node_info", + "format": "table", + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "used" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "pve_memory_size_bytes{instance=\"$instance\"} and on(id) pve_node_info", + "format": "table", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "total" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "pve_memory_size_bytes{instance=\"$instance\"} and on(id) pve_node_info", + "format": "table", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "total_for_max" + } + ], + "title": "", + "transformations": [ + { + "id": "configFromData", + "options": { + "configRefId": "total_for_max", + "mappings": [ + { + "fieldName": "Value #total_for_max", + "handlerKey": "max" + } + ] + } + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "decimals": 1, + "links": [], + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + }, + { + "color": "red", + "value": 1 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 12, + "x": 0, + "y": 14 + }, + "id": 2, + "options": { + "legend": { + "calcs": [ + "max", + "mean", + "lastNotNull" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "asc" + } + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "((pve_cpu_usage_ratio{instance=\"$instance\"} / pve_cpu_usage_limit) * on(id, instance) group_left(name, type) pve_guest_info) and on(id, instance) pve_up == 1", + "format": "time_series", + "interval": "", + "intervalFactor": 4, + "legendFormat": "{{name}} ({{type}})", + "refId": "A" + } + ], + "title": "Guests CPU usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "decimals": 1, + "links": [], + "mappings": [], + "max": 1.1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + }, + { + "color": "red", + "value": 0.9 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 12, + "x": 12, + "y": 14 + }, + "id": 5, + "options": { + "legend": { + "calcs": [ + "max", + "mean", + "lastNotNull" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "(pve_memory_usage_bytes{instance=\"$instance\"} / pve_memory_size_bytes * on(id, instance) group_left(name, type) pve_guest_info) and on(id, instance) pve_up == 1", + "format": "time_series", + "interval": "", + "intervalFactor": 4, + "legendFormat": "{{name}} ({{type}})", + "refId": "A" + } + ], + "title": "Guests memory usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "mappings": [ + { + "from": "", + "id": 1, + "operator": "", + "text": "", + "to": "", + "type": 1, + "value": "" + } + ], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "yellow", + "value": 0.75 + }, + { + "color": "red", + "value": 0.9 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 11, + "w": 3, + "x": 0, + "y": 24 + }, + "id": 11, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto", + "text": {} + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": true, + "expr": "pve_disk_usage_bytes{instance=\"$instance\", id=~\"storage/.+\"} / pve_disk_size_bytes * on (id, instance) group_left(storage) pve_storage_info", + "format": "time_series", + "instant": true, + "interval": "", + "intervalFactor": 1, + "legendFormat": "{{storage}}", + "refId": "A" + } + ], + "title": "Storage usage", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 11, + "w": 4, + "x": 3, + "y": 24 + }, + "id": 15, + "options": { + "displayMode": "gradient", + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "maxVizHeight": 300, + "minVizHeight": 10, + "minVizWidth": 0, + "namePlacement": "auto", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": true + }, + "showUnfilled": false, + "sizing": "auto", + "text": { + "titleSize": 20 + }, + "valueMode": "color" + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "pve_disk_size_bytes{instance=\"$instance\", id=~\"storage/.+\"} * on (id, instance) group_left(storage) pve_storage_info", + "format": "table", + "instant": true, + "interval": "", + "intervalFactor": 1, + "legendFormat": "{{storage}}", + "range": false, + "refId": "storage size" + } + ], + "title": "Space allocation", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": false, + "Value": false, + "container": true, + "endpoint": true, + "id": true, + "instance": true, + "job": true, + "namespace": true, + "pod": true, + "service": true, + "storage": false + }, + "includeByName": {}, + "indexByName": {}, + "renameByName": {} + } + } + ], + "type": "bargauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "decimals": 1, + "links": [], + "mappings": [], + "max": 1.1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + }, + { + "color": "orange", + "value": 0.75 + }, + { + "color": "red", + "value": 0.9 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 11, + "w": 17, + "x": 7, + "y": 24 + }, + "id": 9, + "options": { + "legend": { + "calcs": [ + "lastNotNull" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "expr": "pve_disk_usage_bytes{instance=\"$instance\"} / pve_disk_size_bytes{instance=\"$instance\"} * on (id, instance) group_left(name, type) pve_guest_info{type=\"lxc\"}", + "format": "time_series", + "interval": "", + "intervalFactor": 1, + "legendFormat": "{{name}} ({{type}})", + "range": true, + "refId": "A" + } + ], + "title": "LXC guests Disk usage", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "Bps" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/RECV/" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + } + ] + } + ] + }, + "gridPos": { + "h": 10, + "w": 24, + "x": 0, + "y": 35 + }, + "id": 13, + "options": { + "legend": { + "calcs": [ + "max", + "mean", + "lastNotNull", + "sum" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "(rate(pve_network_receive_bytes{instance=\"$instance\"}[5m]) * on(id, instance) group_left(name, type) pve_guest_info) and on(id, instance) pve_up == 1", + "format": "time_series", + "interval": "", + "intervalFactor": 3, + "legendFormat": "{{name}} RECV ({{type}})", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "(rate(pve_network_transmit_bytes{instance=\"$instance\"}[5m])* on(id, instance) group_left(name, type) pve_guest_info) and on(id, instance) pve_up == 1", + "format": "time_series", + "interval": "", + "intervalFactor": 3, + "legendFormat": "{{name}} SEND ({{type}})", + "refId": "B" + } + ], + "title": "Network IO/s", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 0, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "Bps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 45 + }, + "id": 12, + "options": { + "legend": { + "calcs": [ + "max", + "mean", + "lastNotNull" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "11.4.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "((rate(pve_disk_write_bytes{instance=\"$instance\"}[5m]) + rate(pve_disk_read_bytes[5m])) * on(id, instance) group_left(name, type) pve_guest_info) and on(id, instance) pve_up == 1", + "format": "time_series", + "interval": "", + "intervalFactor": 2, + "legendFormat": "{{name}} ({{type}})", + "refId": "A" + } + ], + "title": "Disk IO/s", + "type": "timeseries" + } + ], + "preload": false, + "refresh": "10s", + "schemaVersion": 40, + "tags": [ + "Proxmox", + "Prometheus" + ], + "templating": { + "list": [ + { + "current": { + "text": "172.16.0.120:9221", + "value": "172.16.0.120:9221" + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "definition": "label_values(pve_node_info, instance)", + "includeAll": false, + "name": "instance", + "options": [], + "query": { + "query": "label_values(pve_node_info, instance)", + "refId": "Prometheus-instance-Variable-Query" + }, + "refresh": 2, + "regex": "", + "sort": 1, + "type": "query" + } + ] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Proxmox via Prometheus", + "uid": "Dp7Cd57Zza", + "version": 2, + "weekStart": "" +} \ No newline at end of file diff --git a/charts/incubator/prometheus-pve-exporter/icon-small.webp b/charts/incubator/prometheus-pve-exporter/icon-small.webp new file mode 100644 index 0000000000000000000000000000000000000000..777fe87269f5ca68601c0fcb0c29fda19f7c6103 GIT binary patch literal 592 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 Yw!Yc2v0NcdvBzv(-g5u|000000QTmgJOBUy literal 0 HcmV?d00001 diff --git a/charts/incubator/prometheus-pve-exporter/templates/NOTES.txt b/charts/incubator/prometheus-pve-exporter/templates/NOTES.txt new file mode 100644 index 00000000000..efcb74cb772 --- /dev/null +++ b/charts/incubator/prometheus-pve-exporter/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/incubator/prometheus-pve-exporter/templates/common.yaml b/charts/incubator/prometheus-pve-exporter/templates/common.yaml new file mode 100644 index 00000000000..995efb03eb0 --- /dev/null +++ b/charts/incubator/prometheus-pve-exporter/templates/common.yaml @@ -0,0 +1,5 @@ +{{/* Make sure all variables are set properly */}} +{{- include "tc.v1.common.loader.init" . }} + +{{/* Render the templates */}} +{{ include "tc.v1.common.loader.apply" . }} diff --git a/charts/incubator/prometheus-pve-exporter/values.yaml b/charts/incubator/prometheus-pve-exporter/values.yaml new file mode 100644 index 00000000000..8d364194866 --- /dev/null +++ b/charts/incubator/prometheus-pve-exporter/values.yaml @@ -0,0 +1,77 @@ +image: + repository: docker.io/prompve/prometheus-pve-exporter + tag: 3.5.0@sha256:c69b2cf7c73bdfb805e8f72593878bcdd42e5222fde6c7fd0c97fc692cda9544 + +service: + main: + ports: + main: + protocol: http + port: 9221 + +pve: + credentials: + # The username in the format 'username@realm' for authentication. + user: username@realm + # The name of the API token to be used for authentication. + tokenName: your-token-name + # The value of the API token to be used for authentication. + # The token role should be set to PVEAuditor on Proxmox VE. + tokenValue: your-token-value + general: + # The Proxmox VE instance to scrape metrics from, specified by IP or hostname. + target: pve.example.com + # Toggle TLS certificate verification for Proxmox VE. + verifySsl: true + +secret: + credentials: + enabled: true + data: + PVE_TOKEN_VALUE: "{{ .Values.pve.credentials.tokenValue }}" + +workload: + main: + podSpec: + containers: + main: + env: + PVE_VERIFY_SSL: "{{ .Values.pve.general.verifySsl }}" + PVE_USER: "{{ .Values.pve.credentials.user }}" + PVE_TOKEN_NAME: "{{ .Values.pve.credentials.tokenName }}" + envFrom: + - secretRef: + name: credentials + args: + - --web.listen-address + - :{{ .Values.service.main.ports.main.port }} + # Optional arguments to disable specific collectors in the exporter. By default, all collectors are enabled. + # - "--no-collector.status" + # - "--no-collector.version" + # - "--no-collector.node" + # - "--no-collector.cluster" + # - "--no-collector.resources" + # - "--no-collector.config" + +metrics: + main: + enabled: true + type: servicemonitor + endpoints: + - port: main + path: "/pve" + params: + target: + - "{{ .Values.pve.general.target }}" + relabelings: + - targetLabel: instance + replacement: "{{ .Values.pve.general.target }}" + +configmap: + dashboard: + enabled: true + labels: + grafana_dashboard: "1" + data: + pve.json: >- + {{ .Files.Get "dashboard.json" | indent 8 }} diff --git a/cspell.config.yaml b/cspell.config.yaml index 9f1bb56bdf2..49a3896e3ad 100644 --- a/cspell.config.yaml +++ b/cspell.config.yaml @@ -282,6 +282,7 @@ words: - redmine - regexlist - registeringats + - relabelings - reneg - replacementurlhere - resolv @@ -303,6 +304,7 @@ words: - serverstransports - serviceaccount - serviceexpert + - servicemonitor - setgid - setuid - sgateway