Skip to main content

Simpleprometheus Receiver

Status Available in: contrib Maintainers: @s3onghyun Source: opentelemetry-collector-contrib

Supported Telemetry

Metrics

Overview

The prometheus_simple receiver is a wrapper around the prometheus receiver.

Configuration

The following settings are available:
  • endpoint (default = localhost:9090): The host:port of the target to scrape. Do not include a scheme or a path: the scheme is selected from the tls settings (see below) and the path is set with metrics_path. An endpoint such as http://host:9090 passes configuration validation but the target is dropped by the prometheus scrape manager as an invalid address.
  • collection_interval (default = 10s): The interval at which the target is scraped.
  • timeout (default = 0): The scrape timeout. It is capped at collection_interval; a larger value logs a warning and collection_interval is used. When unset, the scrape timeout is collection_interval.
  • headers (default = {}): Additional headers sent with each scrape request. Header names that Prometheus reserves, such as Authorization, User-Agent and Host, are rejected at configuration validation (case-insensitive).
  • job_name (default = prometheus_simple/${endpoint}): Prometheus scrape job name.
  • labels (default = {}): Static prometheus labels to assign to all metrics scraped from this endpoint.
  • metrics_path (default = /metrics): The path to the metrics endpoint.
  • proxy_url (default = ""): The URL of the HTTP proxy used for the scrape. It must not contain credentials (user:password@): the prometheus receiver redacts the password when it loads the scrape config, so a proxy URL with credentials is rejected at configuration validation. See #52081.
  • params (default = {}): The query parameters to pass to the metrics endpoint. If specified, params are appended to metrics_path to form the URL with which the target is scraped.
  • use_service_account (default = false): Whether or not to use the Kubernetes Pod service account for authentication.
  • tls: TLS settings for the scrape. Only the following TLS Configuration Settings are used: insecure, ca_file, ca_pem, cert_file, cert_pem, key_file, key_pem, server_name_override, insecure_skip_verify, min_version and max_version. Other tls options are accepted but have no effect. When the target is scraped over https, setting cipher_suites (with or without include_insecure_cipher_suites), curve_preferences, tpm, or include_system_ca_certs_pool together with a CA logs a warning at start, because these settings have no equivalent in the Prometheus scrape config. Certificate, key and CA files are re-read when they change, so reload_interval is not needed.
    • insecure (default = true): Unlike other HTTP clients in the Collector, this receiver defaults to plain http. The target is scraped over https when insecure is false or a ca_file or ca_pem is set; otherwise it is scraped over http and the other tls settings, including cert_file and key_file, are not used.
Other HTTP client settings that the configuration accepts, such as auth and compression, are not applied to the scrape. Example:
The full list of settings exposed for this receiver are documented in config.go with detailed sample configurations in testdata/config.yaml.

Configuration

Example Configuration


Last generated: 2026-11-09