hetzner-exporter

by Promhippie

Helm chartv2.21.0App 2.21.0Apache-2.0Verified publisher

A Helm chart for hetzner-exporter

About this chart

hetzner-exporter

A Helm chart for hetzner-exporter

Homepage: https://promhippie.github.io/hetzner_exporter/

Installing the Chart

OCI (Recommended)

helm install hetzner-exporter oci://ghcr.io/promhippie/charts/hetzner-exporter

Traditional

helm repo add promhippie https://promhippie.github.io/charts
helm repo update
helm install hetzner-exporter promhippie/hetzner-exporter

Maintainers

NameEmailUrl
tboerger[email protected]https://github.com/tboerger

Source Code

Values

KeyTypeDefaultDescription
affinityobject{}Affinity for the deployment
annotationsobject{}Define additional annotations
collector.serversbooltrueEnable collector for servers
collector.sshKeysbooltrueEnable collector for SSH keys
collector.storageboxesboolfalseEnable collector for storageboxes
config.existingSecretstringnilExisting secret to use for credentials
config.passwordstringnilPassword for Hetzner Robot access
config.passwordKeystring"password"Key used within secret for password
config.usernamestringnilUsername for Hetzner Robot access
config.usernameKeystring"username"Key used within secret for username
envFromConfigMapstring""Environment variables from existing configmap
envFromSecretstring""environment variables from existing secret
extraEnvSecretsobject{}Extra environment variables from secrets
extraEnvVariablesobject{}Extra environment variables from mapping
extraInitContainerslist[]List of extra init containers
extraVolumeMountslist[]List of extra volume mounts
extraVolumeslist[]List of extra volumes
filesobject{}List of files written to a configmap and mounted to /etc/hetzner-exporter-files
fullnameOverridestring""Override the fullname
image.pullPolicystring"IfNotPresent"Image pull policy
image.pullSecretslist[]Optional name of pull secret if using a private registry
image.repositorystring"quay.io/promhippie/hetzner-exporter"Image repository used by deployment
image.tagstring""Optional tag for the repository, defaults to app version
ingress.annotationsobject{}Additional annotations for the ingress
ingress.classNamestringnilClass name for the ingress resource
ingress.enabledboolfalseEnable ingress
ingress.hostslist[{"host":"example.local","paths":[{"path":"/","pathType":"Prefix"}]}]Host definition for ingress
ingress.labelsobject{}Additional labels for the ingress
ingress.tlslist[]Optional TLS configuration for ingress
labelsobject{}Define additional labels
nameOverridestring""Override the name
nodeSelectorobject{}Node selector for the deployment
podSecurityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["all"]},"readOnlyRootFilesystem":true,"runAsGroup":10000,"runAsNonRoot":true,"runAsUser":10000}Security context for the pod
prometheusRule.additionalLabelsobject{}Additional labels for prometheus rules
prometheusRule.enabledboolfalseEnable custom prometheus rules
prometheusRule.namespacestring""Namespace used by prometheus rules
prometheusRule.ruleslist[]Rules definition
replicaCountint1Replicas for the deployment
resourcesobject{}Resources for the deployment
securityContextobject{}Security context for the deployment
service.annotationsobject{}Additional annotations for the service
service.internalPortint9502Internal port of the service
service.labelsobject{}Additional labels for the service
service.portint9502Port of the service
service.typestring"ClusterIP"Type of the service
serviceAccount.createbooltrueCreate a new service account
serviceAccount.namestring""Optional name for an existing service account
serviceMonitor.enabledboolfalseEnable service monitor integration
serviceMonitor.intervalstring"30s"Scrape interval
serviceMonitor.jobLabelstringnilOptionally override the job label
serviceMonitor.labelsobject{}Additional labels for the service monitor
serviceMonitor.metricRelabelingslist[]Metric relabeling configuration
serviceMonitor.namespacestring""Namespace used by service monitor
serviceMonitor.relabelingslist[]Relabeling configuration
serviceMonitor.targetLabelslist[]Target labels
serviceMonitor.telemetryPathstring"/metrics"Scrape path
serviceMonitor.timeoutstring"30s"Scrape timeout
tolerationslist[]Tolerations for the deployment
updateStrategyobject{"type":"RollingUpdate"}Update strategy for the deployment

Deploy hetzner-exporter with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has hetzner-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 charthetzner-exporter is pinned at v2.21.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