prometheus-consul-exporter
A Helm chart for the Prometheus Consul Exporter
About this chart
Consul Exporter
Prometheus exporter for Consul metrics. Learn more: https://github.com/prometheus/consul_exporter
TL:DR
$ helm install <helm-repo>/consul-exporter
$ helm install stable/consul-exporter
$ helm install <helm-repo>/consul-exporter --set consulServer=my.consul.com:8500
$ helm install stable/consul-exporter --set consulServer=my.consul.com:8500
Introduction
This chart creates a Consul-Exporter deployment on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.8+ with Beta APIs enabled
Installing the Chart
To install the chart with the release name my-release:
$ helm install --name my-release <helm-repo>/consul-exporter
$ helm install --name my-release stable/consul-exporter
$ helm install --name my-release <helm-repo>/consul-exporter --set consulServer=my.consul.com --set consulPort=8500
The command deploys Consul-Exporter on the Kubernetes cluster using the $ helm install --name my-release stable/consul-exporter --set consulServer=my.consul.com --set consulPort=8500 default configuration. The configuration section lists the parameters that can be configured during installation.
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm delete --purge my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
Check the Flags list and add to the options block in your value overrides.
Specify each parameter using the --set key=value[,key=value] argument to
helm install. For example,
$ helm install --name my-release \
`helm install`. For example,
--set key_1=value_1,key_2=value_2 \
stable/consul-exporter
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
# example for staging
$ helm install --name my-release -f values.yaml <helm-repo>/consul-exporter
Deploy prometheus-consul-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-consul-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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartprometheus-consul-exporter is pinned at v0.1.3 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