prometheus-dellhw-exporter

by galexrt

Helm chartv1.4.3App v2.3.0Verified publisher

A Helm chart for the dellhw_exporter

About this chart

prometheus-dellhw-exporter

A Helm chart for the dellhw_exporter

Get Repo Info

helm repo add dellhw_exporter https://galexrt.github.io/dellhw_exporter
helm repo update

See helm repo for command documentation.

Install Chart

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

helm install --namespace <your-cluster-namespace> my-release dellhw_exporter/prometheus-dellhw-exporter

The command deploys dellhw_exporter on the Kubernetes cluster in the default configuration.

See configuration below.

See helm install for command documentation.

Development Build

To deploy from a local build from your development environment:

cd charts/prometheus-dellhw-exporter
helm install --namespace <your-cluster-namespace> my-release . -f values.yaml

Uninstall Chart

To uninstall/delete the my-release deployment:

helm delete --namespace <your-cluster-namespace> my-release

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

See helm uninstall for command documentation.

Configuration

KeyTypeDefaultDescription
additionalEnvlist[{"name":"HOSTNAME","valueFrom":{"fieldRef":{"fieldPath":"spec.nodeName"}}}]Additional environments to be added to the dellhw_exporter container, use this to configure the exporter (see https://github.com/galexrt/dellhw_exporter/blob/main/docs/configuration.md#environment-variables)
additionalVolumeMountslist[]Additional volume mounts for the dellhw_exporter container.
additionalVolumeslist[]Additional volumes to be mounted in the dellhw_exporter container.
affinityobject{}Affinity for the DaemonSet
fullnameOverridestring""Override fully-qualified app name
image.pullPolicystring"IfNotPresent"Override the imagePullPolicy
image.repositorystring"quay.io/galexrt/dellhw_exporter"Image repository
image.tagstring""Overrides the image tag whose default is the chart appVersion.
imagePullSecretslist[]ImagePullSecrets to add to the DaemonSet
nameOverridestring""Override chart name
nodeSelectorobject{}NodeSelector for the DaemonSet
podAnnotationsobject{}Annotations to add to the Pods created by the DaemonSet
podLabelsobject{}Additional labels to add to the Pods created by the DaemonSet
podSecurityContextobject{}Kubernetes PodSecurityContext for the Pods
prometheusRule.additionalLabelsobject{}Additional Labels for the PrometheusRule object
prometheusRule.enabledboolfalseSpecifies whether a prometheus-operator PrometheusRule should be created
prometheusRule.ruleslist[]Checkout the https://github.com/galexrt/dellhw_exporter/blob/main/contrib/monitoring/prometheus-alerts/prometheus-alerts.yml for example alerts
psp.createboolfalseSpecifies whether a PodSecurityPolicy (PSP) should be created
psp.specobject{"allowedHostPaths":[],"privileged":true,"volumes":["secret"]}PodSecurityPolicy spec
resourcesobject{}Resources for the dellhw_exporter container
securityContextobject{"privileged":true}SecurityContext for the container
service.portint9137Service port
service.typestring"ClusterIP"Service type
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use.
serviceMonitor.additionalLabelsobject{}Additional Labels for the ServiceMonitor object
serviceMonitor.enabledboolfalseSpecifies whether a prometheus-operator ServiceMonitor should be created
serviceMonitor.namespaceSelectorstringnilServiceMonitor namespace selector (check the comments below for examples)
serviceMonitor.scrapeIntervalduration"30s"Interval at which metrics should be scraped
serviceMonitor.scrapeTimeoutduration"20s"Timeout for scraping
tolerationslist[]Tolerations for the DaemonSet

Deploy prometheus-dellhw-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-dellhw-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-dellhw-exporter is pinned at v1.4.3 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