node-exporter-servicemonitor
by ygqygq2
A Helm chart servicemonitor for node exporter
About this chart
node-exporter-servicemonitor - Prometheus Operator with node exporter servicemonitor
node-exporter-servicemonitor是什么
Introduction
This chart bootstraps prometheus servicemonitor on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.6+
- PV provisioner support in the underlying infrastructure
Installing the Chart
To install the chart with the release name my-release:
$ helm install my-release ./node-exporter-servicemonitor
The command deploys ceph-exporter cluster on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Uninstall
To uninstall/delete the my-release deployment:
$ helm uninstall my-release
Configuration
The following table lists the configurable parameters of the chart and their default values.
| Parameter | Description | Default |
|---|---|---|
namespaceSelector | service monitor deploy namespace | monitoring |
endpoints | node exporter addresses | [] |
metricsPortName | metrics port name | metrics |
metricsPort | node exporter metrics port | 9100 |
scheme | metrics web scheme | http |
prometheusRule | prometheusRule | {} |
additionalServiceMonitorLabels | one of prometheus operator label | release: prometheus-operator |
additionalRulesLabels | one of prometheus operator label | release: prometheus-operator |
Specify each parameter using the --set key=value[,key=value] argument to helm install.
Deploy node-exporter-servicemonitor 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-servicemonitor 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartnode-exporter-servicemonitor is pinned at v1.0.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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