Expvar Receiver
contrib
Maintainers: @jamesmoessis, @MovieStoreGuy
Source: opentelemetry-collector-contrib
Supported Telemetry
Overview
Configuration
Default
By default, without any configuration, a request will be sent tohttp://localhost:8000/debug/vars
every 60 seconds. The default configuration is achieved by the following:
Customising
The following can be configured:- Configure the HTTP client for scraping the expvar variables. The full set of
configuration options for the client can be found in the core repo’s
confighttp.
- defaults:
endpoint = http://localhost:8000/debug/varstimeout = 3s
- defaults:
collection_interval- Configure how often the metrics are scraped.- default: 1m
initial_delay(default =1s): defines how long this receiver waits before starting.metrics- Enable or disable metrics by name.
Example configuration
Metrics
Configuration
Example Configuration
Last generated: 2026-10-05