Simpleprometheus Receiver
contrib
Maintainers: @s3onghyun
Source: opentelemetry-collector-contrib
Supported Telemetry
Overview
Theprometheus_simple receiver is a wrapper around the prometheus
receiver.
Configuration
The following settings are available:endpoint(default =localhost:9090): Thehost:portof the target to scrape. Do not include a scheme or a path: the scheme is selected from thetlssettings (see below) and the path is set withmetrics_path. An endpoint such ashttp://host:9090passes 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 atcollection_interval; a larger value logs a warning andcollection_intervalis used. When unset, the scrape timeout iscollection_interval.headers(default ={}): Additional headers sent with each scrape request. Header names that Prometheus reserves, such asAuthorization,User-AgentandHost, 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 tometrics_pathto 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_versionandmax_version. Othertlsoptions are accepted but have no effect. When the target is scraped overhttps, settingcipher_suites(with or withoutinclude_insecure_cipher_suites),curve_preferences,tpm, orinclude_system_ca_certs_pooltogether 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, soreload_intervalis not needed.insecure(default =true): Unlike other HTTP clients in the Collector, this receiver defaults to plainhttp. The target is scraped overhttpswheninsecureisfalseor aca_fileorca_pemis set; otherwise it is scraped overhttpand the othertlssettings, includingcert_fileandkey_file, are not used.
auth and
compression, are not applied to the scrape.
Example:
Configuration
Example Configuration
Last generated: 2026-11-09