elasticsearch-exporter

by joaquinito2051

Helm chartv1.2.0App 1.0.2

Elasticsearch stats exporter for Prometheus

About this chart

Elasticsearch Exporter

Prometheus exporter for various metrics about ElasticSearch, written in Go.

Learn more: https://github.com/justwatchcom/elasticsearch_exporter

TL;DR;

$ helm install <helm-repo>/elasticsearch-exporter

$ helm install stable/elasticsearch-exporter

Introduction

This chart creates an Elasticsearch-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>/elasticsearch-exporter

$ helm install --name my-release stable/elasticsearch-exporter The command deploys Elasticsearch-Exporter on the Kubernetes cluster using the 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

The following table lists the configurable parameters of the Elasticsearch-Exporter chart and their default values.

ParameterDescriptionDefault
replicaCountdesired number of pods1
restartPolicycontainer restart policyAlways
image.repositorycontainer image repositoryjustwatch/elasticsearch_exporter
image.tagcontainer image tag1.0.2
image.pullPolicycontainer image pull policyIfNotPresent
resourcesresource requests & limits{}
priorityClassNamepriorityClassNamenil
nodeSelectorNode labels for pod assignment{}
tolerationsNode tolerations for pod assignment{}
podAnnotationsPod annotations{}
service.typetype of service to createClusterIP
service.httpPortport for the http service9108
service.annotationsAnnotations on the http service{}
es.uriaddress of the Elasticsearch node to connect tolocalhost:9200
es.allif true, query stats for all nodes in the cluster, rather than just the node we connect totrue
es.indicesif true, query stats for all indices in the clustertrue
es.timeouttimeout for trying to get stats from Elasticsearch30s
es.ssl.enabledIf true, a secure connection to E cluster is usedfalse
es.ssl.client.ca.pemPEM that contains trusted CAs used for setting up secure Elasticsearch connection
es.ssl.client.pemPEM that contains the client cert to connect to Elasticsearch
es.ssl.client.keyPrivate key for client auth when connecting to Elasticsearch
web.pathpath under which to expose metrics/metrics
serviceMonitor.enabledIf true, a ServiceMonitor CRD is created for a prometheus operatorfalse
serviceMonitor.namespaceIf set, the ServiceMonitor will be installed in a different namespace""
serviceMonitor.labelsLabels for prometheus operator{}
serviceMonitor.intervalInterval at which metrics should be scraped10s
serviceMonitor.scrapeTimeoutTimeout after which the scrape is ended10s
serviceMonitor.schemeScheme to use for scrapinghttp

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
$ helm install --name my-release \
    --set key_1=value_1,key_2=value_2 \
    <helm-repo>/elasticsearch-exporter
$ helm install --name my-release \

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>/elasticsearch-exporter

$ helm install --name my-release -f values.yaml stable/elasticsearch-exporter

Tip: You can use the default values.yaml

Deploy elasticsearch-exporter with OpenTenant

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