prometheus-openstack-exporter

by Wiremind

Helm chartv0.5.0App 1.7.0Verified publisher

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:

  • existingSecret support 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:

  1. The secret name now includes the release name: <release>-prometheus-openstack-exporter-config
  2. You can use secret.existingSecret to reference your existing openstack-config secret
  3. ServiceAccount is now created by default (disable with serviceAccount.create: false)
  4. 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartprometheus-openstack-exporter is pinned at v0.5.0 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