# Elasticsearch Receiver

<!-- llms-txt-link: /llms.txt -->

> OpenTelemetry Collector receiver · contrib distribution

This receiver queries the Elasticsearch [node stats](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html), [cluster health](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html) and [index stats](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-stats.html) endpoints in order to scrape metrics from a running Elasticsearch cluster.

- **Component ID**: `contrib-elasticsearchreceiver`
- **Name**: `elasticsearchreceiver`
- **Type**: receiver
- **Distribution**: contrib
- **Repository**: `opentelemetry-collector-contrib`

## Stability

| Level | Signals |
| --- | --- |
| beta | metrics |

## Attributes

| Attribute | Type | Description |
| --- | --- | --- |
| `cache_name` | string | The name of cache. |
| `circuit_breaker_name` | string | The name of circuit breaker. |
| `cluster_published_difference_state` | string | State of the published differences |
| `cluster_state_queue_state` | string | State of the published differences |
| `cluster_state_update_state` | string | State of cluster state update |
| `cluster_state_update_type` | string | Type of cluster state update |
| `collector_name` | string | The name of the garbage collector. |
| `direction` | string | The direction of network data. |
| `document_state` | string | The state of the document. |
| `get_result` | string | Result of get operation |
| `health_status` | string | The health status of the cluster. |
| `index_aggregation_type` | string | Type of shard aggregation for index statistics |
| `indexing_pressure_stage` | string | Stage of the indexing pressure |
| `ingest_pipeline_name` | string | Name of the ingest pipeline. |
| `memory_pool_name` | string | The name of the JVM memory pool. |
| `memory_state` | string | State of the memory |
| `operation` | string | The type of operation. |
| `query_cache_count_type` | string | Type of query cache count |
| `segments_memory_object_type` | string | Type of object in segment |
| `shard_state` | string | The state of the shard. |
| `task_state` | string | The state of the task. |
| `thread_pool_name` | string | The name of the thread pool. |
| `thread_state` | string | The state of the thread. |

## Data

- **JSON**: [/data/collector/components/contrib-elasticsearchreceiver/contrib-elasticsearchreceiver-ba8ee9cdae35.json](/data/collector/components/contrib-elasticsearchreceiver/contrib-elasticsearchreceiver-ba8ee9cdae35.json)
- **Explore**: [/collector/components/contrib/elasticsearchreceiver](/collector/components/contrib/elasticsearchreceiver)
