prometheus-hetzner-sd

by Promhippie

Helm chartv3.27.0App 2.27.0Apache-2.0Verified publisher

A Helm chart for Prometheus Hetzner SD

About this chart

prometheus-hetzner-sd

A Helm chart for Prometheus Hetzner SD

Homepage: https://promhippie.github.io/prometheus-hetzner-sd/

Installing the Chart

OCI (Recommended)

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

Traditional

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

Maintainers

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

Source Code

Values

KeyTypeDefaultDescription
affinityobject{}Affinity for the deployment
annotationsobject{}Define additional annotations
credentialslist[]List of credentials to use for the service discovery
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/prometheus-hetzner-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/prometheus-hetzner-sd"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
sd.enginestring"http"Service discovery engine, should be http in most cases
sd.outputstring"/etc/prometheus-hetzner-sd/hetzner.json"Path to write the service discovery result to
securityContextobject{}Security context for the deployment
service.annotationsobject{}Additional annotations for the service
service.internalPortint9000Internal port of the service
service.labelsobject{}Additional labels for the service
service.portint9000Port 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 prometheus-hetzner-sd with OpenTenant

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