node-exporter

by [riftbit]

Helm chartv2.3.9App 1.2.2Verified publisher

Prometheus exporter for hardware and OS metrics exposed by UNIX kernels, with pluggable metric collectors.

About this chart

Node Exporter

Node Exporter is a Prometheus exporter for hardware and OS metrics exposed by *NIX kernels, written in Go with pluggable metric collectors.

TL;DR

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/node-exporter

Introduction

This chart bootstraps Node Exporter on Kubernetes using the Helm package manager.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.

Prerequisites

  • Kubernetes 1.12+
  • Helm 3.1.0

Installing the Chart

Add the bitnami charts repo to Helm:

$ helm repo add bitnami https://charts.bitnami.com/bitnami

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

$ helm install my-release bitnami/node-exporter

The command deploys Node Exporter on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Uninstalling the Chart

To uninstall/delete the my-release release:

$ helm delete my-release

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

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
nameOverrideString to partially override common.names.fullname template (will maintain the release name)""
fullnameOverrideString to fully override common.names.fullname template with a string""
commonLabelsAdd labels to all the deployed resources{}

Node Exporter parameters

NameDescriptionValue
hostAliasesDeployment pod host aliases[]
rbac.createWhether to create and use RBAC resources or nottrue
rbac.apiVersionVersion of the RBAC APIv1beta1
rbac.pspEnabledEnable Pod Security Policytrue
serviceAccount.createSpecify whether to create a ServiceAccount for Node Exportertrue
serviceAccount.nameThe name of the ServiceAccount to create""
image.registryNode Exporter image registrydocker.io
image.repositoryNode Exporter image repositorybitnami/node-exporter
image.tagNode Exporter Image tag (immutable tags are recommended)1.2.2-debian-10-r47
image.pullPolicyNode Exporter image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
extraArgsAdditional command line arguments to pass to node-exporter{}
extraVolumesAdditional volumes to the node-exporter pods[]
extraVolumeMountsAdditional volumeMounts to the node-exporter container[]
securityContext.enabledEnable security contexttrue
securityContext.fsGroupGroup ID for the container filesystem1001
securityContext.runAsUserUser ID for the container1001
service.typeKubernetes service typeClusterIP
service.targetPortNode Exporter container target port9100
service.portNode Exporter service port9100
service.clusterIPSpecific cluster IP when service type is cluster IP. Use None for headless service""
service.nodePortSpecify the nodePort value for the LoadBalancer and NodePort service types""
service.loadBalancerIPloadBalancerIP if service type is LoadBalancer""
service.loadBalancerSourceRangesAddress that are allowed when service is LoadBalancer[]
service.addPrometheusScrapeAnnotationAdd the prometheus.io/scrape: "true" annotation to the servicetrue
service.annotationsAdditional annotations for Node Exporter service{}
service.labelsAdditional labels for Node Exporter service{}
updateStrategy.typeThe update strategy type to apply to the DaemonSetRollingUpdate
updateStrategy.rollingUpdate.maxUnavailableMaximum number of pods that may be made unavailable1
hostNetworkExpose the service to the host networktrue
minReadySecondsminReadySeconds to avoid killing pods before we are ready0
priorityClassNamePriority class assigned to the Pods""
resources.limitsThe resources limits for the container{}
resources.requestsThe requested resources for the container{}
podLabelsPod labels{}
podAnnotationsPod annotations{}
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft
nodeAffinityPreset.typeNode affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
nodeAffinityPreset.keyNode label key to match Ignored if affinity is set.""
nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set.[]
affinityAffinity for pod assignment. Evaluated as a template.{}
nodeSelectorNode labels for pod assignment. Evaluated as a template.{}
tolerationsTolerations for pod assignment. Evaluated as a template.[]
livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe120
livenessProbe.periodSecondsPeriod seconds for livenessProbe10
livenessProbe.timeoutSecondsTimeout seconds for livenessProbe5
livenessProbe.failureThresholdFailure threshold for livenessProbe6
livenessProbe.successThresholdSuccess threshold for livenessProbe1
readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe30
readinessProbe.periodSecondsPeriod seconds for readinessProbe10
readinessProbe.timeoutSecondsTimeout seconds for readinessProbe5
readinessProbe.failureThresholdFailure threshold for readinessProbe6
readinessProbe.successThresholdSuccess threshold for readinessProbe1
serviceMonitor.enabledCreates a ServiceMonitor to monitor Node Exporterfalse
serviceMonitor.namespaceNamespace in which Prometheus is running""
serviceMonitor.jobLabelThe name of the label on the target service to use as the job name in prometheus.""
serviceMonitor.intervalScrape interval (use by default, falling back to Prometheus' default)""
serviceMonitor.scrapeTimeoutTimeout after which the scrape is ended""
serviceMonitor.selectorServiceMonitor selector labels{}
serviceMonitor.relabelingsRelabelConfigs to apply to samples before scraping[]
serviceMonitor.metricRelabelingsMetricRelabelConfigs to apply to samples before ingestion[]

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example the following command sets the minReadySeconds of the Node Exporter Pods to 120 seconds.

$ helm install my-release --set minReadySeconds=120 bitnami/node-exporter

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

$ helm install my-release -f values.yaml bitnami/node-exporter

Tip: You can use the default values.yaml

Configuration and installation details

[Rolling vs Immutable tags](https://docs.bitnami.com/containers/how-to/understand-rolling-tags-con

Deploy node-exporter with OpenTenant

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