prometheus-pve-exporter

by Stenic

Helm chartv0.1.1App 2.0.1Verified publisher

A Helm chart to export the metrics from pve in Prometheus format.

About this chart

prometheus-pve-exporter

TL;DR;

helm repo add stenic https://stenic.github.io/helm-charts
helm install my-release stenic/prometheus-pve-exporter

Introduction

A Prometheus exporter for Proxmox Virtual Environment metrics.

This chart bootstraps a PVE Exporter deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.8+ with Beta APIs enabled

Installing the Chart

To install the chart with the release name my-release:

helm repo add stenic https://stenic.github.io/helm-charts
helm install my-release stenic/prometheus-pve-exporter

These commands deploy prometheus-pve-exporter on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

Add the following to your prometheus configuration:

scrape_configs:
  - job_name: 'pve'
    static_configs:
      - targets:
        - 192.168.1.2  # Proxmox VE node.
        - 192.168.1.3  # Proxmox VE node.
    metrics_path: /pve
    params:
      module: [default]
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        replacement: prometheus-pve-exporter:9221  # PVE exporter service.

The following tables list the configurable parameters of the prometheus-pve-exporter chart and their default values.

KeyTypeDefaultDescription
affinityobject{}
image.pullPolicystring"IfNotPresent"
image.repositorystring"prompve/prometheus-pve-exporter"
image.tagstring""
ingress.annotationsobject{}
ingress.enabledboolfalse
ingress.hostsstringnil
ingress.pathstring"/"
ingress.tlslist[]
nodeSelectorobject{}
pve.passwordstring"sEcr3T"
pve.targetstringnil
pve.userstring"prometheus@pve"
pve.verify_sslbooltrue
rbac.createbooltrue
rbac.pspEnabledbooltrue
replicaCountint1
resourcesobject{}
service.portint9221
service.typestring"ClusterIP"
serviceAccount.createbooltrue
serviceAccount.namestringnil
tolerationslist[]

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

helm install my-release -f values.yaml stenic/prometheus-pve-exporter

Deploy prometheus-pve-exporter with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has prometheus-pve-exporter on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartprometheus-pve-exporter is pinned at v0.1.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply