prometheus-druid-exporter

by worawutchan

Helm chartv0.9.0App v0.8.0

Druid exporter to monitor druid metrics with Prometheus

About this chart

Prometheus Druid Exporter

A Prometheus exporter for Druid metrics.

Installs the Druid Exporter for Prometheus.

Some of the metrics collections are:-

  • Druid's health metrics
  • Druid's datasource metrics
  • Druid's segment metrics
  • Druid's supervisor metrics
  • Druid's tasks metrics
  • Druid's components metrics like:- broker, historical, ingestion(kafka), coordinator, sys

Get Repo Info

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update

See helm repo for command documentation.

Install Chart

# Helm 3
$ helm install [RELEASE_NAME] prometheus-community/prometheus-druid-exporter

# Helm 2
$ helm install --name [RELEASE_NAME] prometheus-community/prometheus-druid-exporter

See configuration below.

See helm install for command documentation.

Uninstall Chart

# Helm 3
$ helm uninstall [RELEASE_NAME]

# Helm 2
# helm delete --purge [RELEASE_NAME]

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

See helm uninstall for command documentation.

Upgrading Chart

# Helm 3 or 2
$ helm upgrade [RELEASE_NAME] [CHART] --install

See helm upgrade for command documentation.

Configuration

See Customizing the Chart Before Installing. To see all configurable options with detailed comments, visit the chart's values.yaml, or run these configuration commands:

# Helm 2
$ helm inspect values prometheus-community/prometheus-druid-exporter

# Helm 3
$ helm show values prometheus-community/prometheus-druid-exporter

Druid Server Connection

To use this chart, ensure that druidURL is populated with valid Druid URL. Basically this is the URL of druid router or coordinator service.

An example could be:-

http://druid.opstreelabs.in

Service Monitor

The chart comes with a ServiceMonitor for use with the kube-pometheus-stack. If you're not using the Prometheus Operator, you can disable the ServiceMonitor by setting serviceMonitor.enabled to false and it will auto generate the following podAnnotations into deployment.yaml:

podAnnotations:
  prometheus.io/path: /metrics
  prometheus.io/port: metrics
  prometheus.io/scrape: "true"

Deploy prometheus-druid-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-druid-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-druid-exporter is pinned at v0.9.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