Prometheus Scrape

Configuration Options

Required Options

endpoints(required)

Endpoints to scrape metrics from.

TypeSyntaxDefaultExample
arrayliteral["http://localhost:9090/metrics"]
type(required)

The component type. This is a required field for all components and tells Vector which component to use.

TypeSyntaxDefaultExample
stringliteral["prometheus_scrape"]

Advanced Options

scrape_interval_secs(optional)

The interval between scrapes, in seconds.

TypeSyntaxDefaultExample
uint15
proxy(optional)

Configures an HTTP(S) proxy for Vector to use. By default, the globally configured proxy is used.

TypeSyntaxDefaultExample
hashliteral[]
tls(optional)

Configures the TLS options for incoming connections.

TypeSyntaxDefaultExample
hashliteral[]
auth(optional)

Configures the authentication strategy.

TypeSyntaxDefaultExample
hashliteral[]

How it Works

State

This component is stateless, meaning its behavior is consistent across each input.

Transport Layer Security (TLS)

Vector uses OpenSSL for TLS protocols. You can adjust TLS behavior via the tls.* options.

Context

By default, the prometheus_scrape source augments events with helpful context keys.