# Prometheus-elasticsearch-exporter

Prometheus-elasticsearch-exporter is a self-hosted monitoring & logging app. A Prometheus exporter that collects and exposes metrics about Elasticsearch and OpenSearch clusters, giving you a standard /metrics endpoint to monitor them alongside your other services. It is open source and self-hosted, installable on Kubernetes (Helm).

Canonical page: https://ourlocalhost.com/app/7307/prometheus-elasticsearch-exporter

## Description

A Prometheus exporter that collects and exposes metrics about Elasticsearch and OpenSearch clusters, giving you a standard /metrics endpoint to monitor them alongside your other services.

## Platform availability

Available on 1 of 9 platforms: Helm.

## Health score

72/100 (Good), based on 3 of 4 factors.
- Maintained: 100 (last commit 0 days ago)
- Popular: 66 (2,091 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)

## Links

- Kubernetes (Helm): https://artifacthub.io/packages/helm/prometheus-community/prometheus-elasticsearch-exporter
- GitHub: https://github.com/prometheus-community/elasticsearch_exporter

## Common questions

### Which port should I expose for the Elasticsearch exporter in Docker?

The Docker examples use port 9114, such as -p 9114:9114 or a docker-compose mapping of 127.0.0.1:9114:9114.

### How do I point Prometheus at this exporter?

Configure the exporter with your Elasticsearch or OpenSearch endpoints, then point Prometheus's scrape config at the exporter's /metrics endpoint.

### Can a short Prometheus scrape interval hurt Elasticsearch?

The exporter fetches from Elasticsearch on every scrape, so a too-short interval can impose load on ES master nodes, especially with --es.all and --es.indices. You can measure /_nodes/stats and /_all/_stats times or use a dedicated scrape job.

### Does the exporter support both Elasticsearch and OpenSearch?

It supports all currently supported versions of Elasticsearch and OpenSearch and attempts to remain compatible with older and diverging versions, though some collectors may only work with one product.

### How do I enable cluster settings metrics in newer versions?

Use collector.clustersettings, which was introduced in 1.6.0 and replaced es.cluster_settings. It is false by default.

---
Source: Our Local Host (https://ourlocalhost.com/app/7307/prometheus-elasticsearch-exporter), the self-hosted and open-source app directory.
