Skip to main content

Expvar Receiver

Status Available in: contrib Maintainers: @jamesmoessis, @MovieStoreGuy Source: opentelemetry-collector-contrib

Supported Telemetry

Metrics

Overview

Configuration

Default

By default, without any configuration, a request will be sent to http://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/vars
      • timeout = 3s
  • 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-08-24