feat(prometheus-pve-exporter): add prometheus-pve-exporter chart (#30559)

**Description**

add
[prometheus-pve-exporter](https://github.com/prometheus-pve/prometheus-pve-exporter),
a Prometheus exporter for Proxmox Virtual Environment metrics.

⚒️ Fixes  # <!--(issue)-->

**⚙️ 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?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ 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>
This commit is contained in:
jogotcha
2025-01-25 09:05:08 +01:00
committed by GitHub
parent f4e837c19b
commit fc93d494dd
11 changed files with 2177 additions and 0 deletions
@@ -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
@@ -0,0 +1,4 @@
---
title: Changelog
pagefind: false
---
@@ -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
@@ -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_
File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

@@ -0,0 +1 @@
{{- include "tc.v1.common.lib.chart.notes" $ -}}
@@ -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" . }}
@@ -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 }}
+2
View File
@@ -282,6 +282,7 @@ words:
- redmine
- regexlist
- registeringats
- relabelings
- reneg
- replacementurlhere
- resolv
@@ -303,6 +304,7 @@ words:
- serverstransports
- serviceaccount
- serviceexpert
- servicemonitor
- setgid
- setuid
- sgateway