# Kafka Receiver

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

> OpenTelemetry Collector receiver · contrib distribution

The Kafka Receiver receives telemetry data from Kafka, with configurable topics and encodings. If used in conjunction with the `kafkaexporter` configured with `include_metadata_keys`, The Kafka Receiver will also propagate the Kafka headers to the downstream pipeline, giving access to the rest of the pipeline to arbitrary metadata keys and values.

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

## Stability

| Level | Signals |
| --- | --- |
| beta | logs, metrics, traces |
| development | profiles |

## Attributes

| Attribute | Type | Description |
| --- | --- | --- |
| `node_id` | int | The Kafka node ID. |
| `outcome` | string | The operation outcome. |
| `partition` | int | The Kafka topic partition. |
| `topic` | string | The Kafka topic. |

## Data

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