Type to search.

Prometheus Scrape via OTel (Guided)

Serverless Observability Preview

Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud.

Availability

  • Preview

    This functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply.

Serverless Security Preview

Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud.

Availability

  • Preview

    This functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply.

Stack Preview 9.2+

The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.

Availability

  • Preview since 9.2

    This functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply.

Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments.

This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.

Version 0.3.0 Availability Preview This functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply. (View all)
Subscription level
What's this?
Basic
Developed by
What's this?
Elastic
Minimum Kibana version(s) 9.2.0
The Prometheus Scrape via OTel (Guided) integration v0.3.0 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.

This package allows you to scrape Prometheus-compatible metrics endpoints using the OpenTelemetry Collector's Prometheus receiver.

This package configures the Prometheus receiver in the EDOT collector to scrape metrics from Prometheus-compatible endpoints. The Elastic Agent processes and enriches the data before sending it to Elasticsearch for indexing and analysis.

Configure individual fields like targets, scrape interval, and TLS settings through the Fleet UI.

Looking for raw config mode? If you have an existing Prometheus scrape_configs YAML that you want to use directly, consider using the Prometheus Scrape via OTel (Custom Config) package instead.

Setting Description Default
Scrape Targets List of targets in host:port format localhost:9090
Scrape Interval How frequently to scrape targets 60s
Scrape Timeout Timeout for scraping 10s
Metrics Path HTTP resource path to fetch metrics. Path only — do not append query parameters here; use Query Parameters instead. /metrics
Query Parameters Prometheus scrape query parameters as a YAML map of parameter name to list of values. These are appended to the scrape URL as a proper query string. —
Scheme Protocol scheme (HTTP/HTTPS) http
Honor Labels Honor labels from scraped metrics false
Honor Timestamps Honor timestamps from scraped metrics true
Username Username for HTTP basic authentication —
Password Password for HTTP basic authentication (use with Username) —
Bearer Token Token sent as Authorization: Bearer <token> —

For HTTPS endpoints, you can configure:

  • Skip TLS verification for self-signed certificates
  • CA certificate path for custom certificate authorities
  • Client certificate and key for mutual TLS authentication

Configure either basic authentication or a Bearer token — not both.

Set Username and Password for endpoints that require HTTP basic authentication.

Set Bearer Token for endpoints that require Authorization: Bearer <token> (for example, Temporal Cloud OpenMetrics).

If both Username and Bearer Token are set, the package configures basic authentication only and ignores the Bearer Token. Clear Username (and Password) when you intend to use Bearer authentication.

Some Prometheus-compatible endpoints accept query parameters to filter or scope the metrics they return (for example, Temporal Cloud's namespaces and labels parameters). Use the Query Parameters field — do not append them to Metrics Path.

The Prometheus receiver places metrics_path verbatim into url.URL.Path, and Go's net/url percent-encodes ? in path context (%3F), producing a request the server does not recognise. The params map is placed into url.RawQuery instead, which preserves the ? delimiter.

Example:

YAML
namespaces:
  - my-namespace.account
labels:
  - temporal_activity_type

For detailed configuration options and their descriptions, refer to the Prometheus Receiver documentation in the upstream OpenTelemetry Collector repository.

  • Monitor applications exposing Prometheus metrics
  • Scrape Node Exporter, cAdvisor, or other Prometheus exporters
  • Collect custom application metrics in Prometheus format
  • Migrate from Prometheus to Elastic Observability

This package requires:

  • Kibana 9.2.0 or later
  • Elastic Agent with OpenTelemetry Collector support
Changelog
Version Details Minimum Kibana version
0.3.0 Bug fix (View pull request)
Add params variable to pass Prometheus scrape query parameters separately from the metrics path, preventing percent-encoding of '?' in the URL path.
9.2.0
0.2.0 Enhancement (View pull request)
Add Bearer token authentication support for scrape targets.
9.2.0
0.1.2 Enhancement (View pull request)
Add group field to package manifest.
9.2.0
0.1.1 Enhancement (View pull request)
Update package title and description to improve clarity of use.
9.2.0
0.1.0 Enhancement (View pull request)
Initial release of the Prometheus OpenTelemetry Input package with guided configuration
9.2.0