Prometheus Scrape
Configuration Options
Required Options
endpoints(required)
Endpoints to scrape metrics from.
Type | Syntax | Default | Example |
---|---|---|---|
array | literal | ["http://localhost:9090/metrics"] |
type(required)
The component type. This is a required field for all components and tells Vector which component to use.
Type | Syntax | Default | Example |
---|---|---|---|
string | literal | ["prometheus_scrape"] |
Advanced Options
scrape_interval_secs(optional)
The interval between scrapes, in seconds.
Type | Syntax | Default | Example |
---|---|---|---|
uint | 15 |
proxy(optional)
Configures an HTTP(S) proxy for Vector to use. By default, the globally configured proxy is used.
Type | Syntax | Default | Example |
---|---|---|---|
hash | literal | [] |
tls(optional)
Configures the TLS options for incoming connections.
Type | Syntax | Default | Example |
---|---|---|---|
hash | literal | [] |
auth(optional)
Configures the authentication strategy.
Type | Syntax | Default | Example |
---|---|---|---|
hash | literal | [] |
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.