﻿---
title: Prometheus Scrape via OTel (Custom Config)
description: This package allows you to scrape Prometheus-compatible metrics endpoints using the OpenTelemetry Collector's Prometheus receiver by pasting your existing...
url: https://www.elastic.co/docs/reference/integrations/prometheus_input_otel_raw
products:
  - Elastic integrations
applies_to:
  - Serverless Observability projects: Preview
  - Serverless Security projects: Preview
  - Elastic Stack: Preview since 9.2
---

# Prometheus Scrape via OTel (Custom Config)
|                                                                                                 |                                                                   |
|-------------------------------------------------------------------------------------------------|-------------------------------------------------------------------|
| **Version**                                                                                     | 0.1.2 <applies-to>: Preview</applies-to> ([View all](#changelog)) |
| **Subscription level**[What's this?](https://www.elastic.co/subscriptions)                      | Basic                                                             |
| **Developed by**[What's this?](https://www.elastic.co/docs/reference/integrations/developed-by) | Elastic                                                           |
| **Minimum Kibana version(s)**                                                                   | 9.2.0                                                             |

<admonition title="The Prometheus Scrape via OTel (Custom Config) integration v0.1.2 is in technical preview">
  To use pre-release integrations, go to the **Integrations** page in Kibana, scroll down, and toggle on the _Display beta integrations_ option.
</admonition>


## Overview

This package allows you to scrape Prometheus-compatible metrics endpoints using the OpenTelemetry Collector's [Prometheus receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/prometheusreceiver) by pasting your existing Prometheus scrape configuration directly.

### How it works

This package configures the Prometheus receiver in the EDOT collector to scrape metrics from Prometheus-compatible endpoints. Simply paste your existing Prometheus `scrape_configs` YAML and the package will use it as-is. The Elastic Agent processes and enriches the data before sending it to Elasticsearch for indexing and analysis.
**Looking for guided configuration?** If you prefer configuring individual settings through the Fleet UI, consider using the [Prometheus Scrape via OTel (Guided)](https://github.com/elastic/integrations/tree/main/packages/prometheus_input_otel) package instead.

## Configuration

Paste your existing Prometheus `scrape_configs` YAML directly from your `prometheus.yml` file:
```yaml
- job_name: 'my-app'
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  static_configs:
    - targets:
        - 'localhost:9090'
        - 'localhost:9100'
  honor_labels: true
  honor_timestamps: true
```

This becomes the literal receiver config:
```yaml
receivers:
  prometheus:
    config:
      scrape_configs:
        - job_name: 'my-app'
          scrape_interval: 15s
          scrape_timeout: 10s
          metrics_path: /metrics
          scheme: http
          static_configs:
            - targets:
                - 'localhost:9090'
                - 'localhost:9100'
          honor_labels: true
          honor_timestamps: true
```


## Configuration Reference

For detailed configuration options and their descriptions, refer to the [Prometheus Receiver documentation](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/prometheusreceiver/README.md) in the upstream OpenTelemetry Collector repository.

## Use Cases

- Quickly migrate existing Prometheus scrape configurations
- Use advanced Prometheus scraping features not exposed in the guided package
- Monitor applications exposing Prometheus metrics
- Scrape Node Exporter, cAdvisor, or other Prometheus exporters


## Compatibility

This package requires:
- Kibana 9.2.0 or later
- Elastic Agent with OpenTelemetry Collector support


## Changelog

<dropdown title="Changelog">
  | Version   | Details                                                                                                                                                    | Minimum Kibana version |
  |-----------|------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------|
  | **0.1.2** | **Enhancement** ([View pull request](https://github.com/elastic/integrations/pull/20546))Add group field to package manifest.                              | 9.2.0                  |
  | **0.1.1** | **Enhancement** ([View pull request](https://github.com/elastic/integrations/pull/19526))Update package title and description to improve clarity of use.   | 9.2.0                  |
  | **0.1.0** | **Enhancement** ([View pull request](https://github.com/elastic/integrations/pull/17117))Initial release of the Prometheus OpenTelemetry Raw Input package | 9.2.0                  |
</dropdown>