prometheus-openstack-exporter
by Wiremind
A Helm chart for prometheus-openstack-exporter - exports OpenStack metrics for Prometheus
About this chart
prometheus-openstack-exporter
A Helm chart for prometheus-openstack-exporter - exports OpenStack metrics for Prometheus.
This chart is forked from the upstream helm-charts repository with the following enhancements:
existingSecretsupport for managing credentials externally- ServiceAccount with optional creation and annotations
- PodDisruptionBudget support
- NetworkPolicy support
- HorizontalPodAutoscaler support
- Enhanced security contexts (pod and container level)
- Additional pod labels and annotations configurability
- Topology spread constraints
- Liveness and readiness probes
- Image pull secrets support
Installation
helm repo add wiremind https://wiremind.github.io/wiremind-helm-charts
helm install prometheus-openstack-exporter wiremind/prometheus-openstack-exporter
Configuration
Using an existing Secret
Instead of providing credentials in values, you can reference an existing Kubernetes Secret:
secret:
existingSecret: "my-openstack-credentials"
existingSecretKey: "clouds.yaml"
clouds_yaml_config: "" # Leave empty when using existingSecret
The secret should contain your clouds.yaml content:
kubectl create secret generic my-openstack-credentials \
--from-file=clouds.yaml=/path/to/your/clouds.yaml
Multi-cloud setup
multicloud:
enabled: true
selfmonitor: true
clouds:
- name: production
services:
- compute
- network
- volume
- name: staging
services:
- compute
- network
clouds_yaml_config: |
clouds:
production:
region_name: region1
auth:
auth_url: https://openstack-prod.example.com:5000/v3
username: exporter
password: secret
project_name: monitoring
project_domain_name: Default
user_domain_name: Default
staging:
region_name: region1
auth:
auth_url: https://openstack-staging.example.com:5000/v3
username: exporter
password: secret
project_name: monitoring
project_domain_name: Default
user_domain_name: Default
Disabling specific services
extraArgs:
- --disable-service.baremetal
- --disable-service.container-infra
- --disable-service.object-store
Values
See values.yaml for the full list of configurable values with descriptions.
Upgrading
From upstream chart
If migrating from the upstream chart, note the following changes:
- The secret name now includes the release name:
<release>-prometheus-openstack-exporter-config - You can use
secret.existingSecretto reference your existingopenstack-configsecret - ServiceAccount is now created by default (disable with
serviceAccount.create: false) - Security contexts are applied by default for better security posture
Deploy prometheus-openstack-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-openstack-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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartprometheus-openstack-exporter is pinned at v0.5.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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