Controls how tag conflicts are handled if the scraped source has tags that Vector would add. If true,
Vector will not add the new tag if the scraped metric has the tag already. If false, Vector will rename
the conflicting tag by adding exported_ to it. This matches Prometheus’s honor_labels
configuration.
Custom parameters for the scrape request query string.
One or more values for the same parameter key can be provided.
The parameters provided in this option are appended to any parameters manually provided in the endpoints option.
This option is especially useful when scraping the /federate endpoint.
If enabled, certificates must be valid in terms of not being expired, as well as being issued by a trusted
issuer. This verification operates in a hierarchical manner, checking that not only the leaf certificate (the
certificate presented by the client/server) is valid, but also that the issuer of that certificate is valid, and
so on until reaching a root certificate.
Relevant for both incoming and outgoing connections.
Do NOT set this to false unless you understand the risks of not verifying the validity of certificates.
If enabled, the hostname used to connect to the remote host must be present in the TLS certificate presented by
the remote host, either as the Common Name or as an entry in the Subject Alternative Name extension.
Only relevant for outgoing connections.
Do NOT set this to false unless you understand the risks of not verifying the remote hostname.
A single value that can be incremented or reset to a zero value but not decremented.
*optional
Any tags present on the metric.
endpointoptional
Any endpoint of the scraped instance. Only present if endpoint_tag is set.
instanceoptional
The host:port of the scraped instance. Only present if instance_tag is set.
gauge
gauge
A gauge represents a point-in-time value
that can increase and decrease. Vector’s
internal gauge type represents changes to
that value. Gauges should be used to track
fluctuations in values, like current memory
or CPU usage.
*optional
Any tags present on the metric.
endpointoptional
Any endpoint of the scraped instance. Only present if endpoint_tag is set.
instanceoptional
The host:port of the scraped instance. Only present if instance_tag is set.
histogram
gauge
Also called a timer. A histogram samples
observations (usually things like request
durations or response sizes) and counts them
in configurable buckets. It also provides a
sum of all observed values.
*optional
Any tags present on the metric.
endpointoptional
Any endpoint of the scraped instance. Only present if endpoint_tag is set.
instanceoptional
The host:port of the scraped instance. Only present if instance_tag is set.
summary
gauge
Similar to a histogram, a summary samples
observations (usually things like request
durations and response sizes). While it also
provides a total count of observations and a
sum of all observed values, it calculates
configurable quantiles over a sliding time
window.
*optional
Any tags present on the metric.
endpointoptional
Any endpoint of the scraped instance. Only present if endpoint_tag is set.
instanceoptional
The host:port of the scraped instance. Only present if instance_tag is set.
Deprecated, use component_id instead. The value is the same as component_id.
component_type
The Vector component type.
hostoptional
The hostname of the system Vector is running on.
pidoptional
The process ID of the Vector instance.
component_errors_total
counter
The total number of errors encountered by this component.
component_id
The Vector component ID.
component_kind
The Vector component kind.
component_name
Deprecated, use component_id instead. The value is the same as component_id.
component_type
The Vector component type.
error_type
The type of the error
hostoptional
The hostname of the system Vector is running on.
pidoptional
The process ID of the Vector instance.
stage
The stage within the component at which the error occurred.
component_received_bytes_total
counter
The number of raw bytes accepted by this component from source origins.
component_id
The Vector component ID.
component_kind
The Vector component kind.
component_name
Deprecated, use component_id instead. The value is the same as component_id.
component_type
The Vector component type.
container_nameoptional
The name of the container from which the data originated.
fileoptional
The file from which the data originated.
hostoptional
The hostname of the system Vector is running on.
modeoptional
The connection mode used by the component.
peer_addroptional
The IP from which the data originated.
peer_pathoptional
The pathname from which the data originated.
pidoptional
The process ID of the Vector instance.
pod_nameoptional
The name of the pod from which the data originated.
urioptional
The sanitized URI from which the data originated.
component_received_event_bytes_total
counter
The number of event bytes accepted by this component either from
tagged origins like file and uri, or cumulatively from other origins.
component_id
The Vector component ID.
component_kind
The Vector component kind.
component_name
Deprecated, use component_id instead. The value is the same as component_id.
component_type
The Vector component type.
container_nameoptional
The name of the container from which the data originated.
fileoptional
The file from which the data originated.
hostoptional
The hostname of the system Vector is running on.
modeoptional
The connection mode used by the component.
peer_addroptional
The IP from which the data originated.
peer_pathoptional
The pathname from which the data originated.
pidoptional
The process ID of the Vector instance.
pod_nameoptional
The name of the pod from which the data originated.
urioptional
The sanitized URI from which the data originated.
component_received_events_total
counter
The number of events accepted by this component either from tagged
origins like file and uri, or cumulatively from other origins.
component_id
The Vector component ID.
component_kind
The Vector component kind.
component_name
Deprecated, use component_id instead. The value is the same as component_id.
component_type
The Vector component type.
container_nameoptional
The name of the container from which the data originated.
fileoptional
The file from which the data originated.
hostoptional
The hostname of the system Vector is running on.
modeoptional
The connection mode used by the component.
peer_addroptional
The IP from which the data originated.
peer_pathoptional
The pathname from which the data originated.
pidoptional
The process ID of the Vector instance.
pod_nameoptional
The name of the pod from which the data originated.
urioptional
The sanitized URI from which the data originated.
component_sent_event_bytes_total
counter
The total number of event bytes emitted by this component.
component_id
The Vector component ID.
component_kind
The Vector component kind.
component_name
Deprecated, use component_id instead. The value is the same as component_id.
component_type
The Vector component type.
hostoptional
The hostname of the system Vector is running on.
outputoptional
The specific output of the component.
pidoptional
The process ID of the Vector instance.
component_sent_events_total
counter
The total number of events emitted by this component.
component_id
The Vector component ID.
component_kind
The Vector component kind.
component_name
Deprecated, use component_id instead. The value is the same as component_id.
component_type
The Vector component type.
hostoptional
The hostname of the system Vector is running on.
outputoptional
The specific output of the component.
pidoptional
The process ID of the Vector instance.
events_in_total
counter
The number of events accepted by this component either from tagged
origins like file and uri, or cumulatively from other origins.
This metric is deprecated and will be removed in a future version.
Use component_received_events_total instead.
component_id
The Vector component ID.
component_kind
The Vector component kind.
component_name
Deprecated, use component_id instead. The value is the same as component_id.
component_type
The Vector component type.
container_nameoptional
The name of the container from which the data originated.
fileoptional
The file from which the data originated.
hostoptional
The hostname of the system Vector is running on.
modeoptional
The connection mode used by the component.
peer_addroptional
The IP from which the data originated.
peer_pathoptional
The pathname from which the data originated.
pidoptional
The process ID of the Vector instance.
pod_nameoptional
The name of the pod from which the data originated.
urioptional
The sanitized URI from which the data originated.
events_out_total
counter
The total number of events emitted by this component.
This metric is deprecated and will be removed in a future version.
Use component_sent_events_total instead.
component_id
The Vector component ID.
component_kind
The Vector component kind.
component_name
Deprecated, use component_id instead. The value is the same as component_id.
component_type
The Vector component type.
hostoptional
The hostname of the system Vector is running on.
outputoptional
The specific output of the component.
pidoptional
The process ID of the Vector instance.
http_error_response_total
counter
The total number of HTTP error responses for this component.
hostoptional
The hostname of the system Vector is running on.
pidoptional
The process ID of the Vector instance.
http_request_errors_total
counter
The total number of HTTP request errors for this component.
hostoptional
The hostname of the system Vector is running on.
pidoptional
The process ID of the Vector instance.
parse_errors_total
counter
The total number of errors parsing metrics for this component.
hostoptional
The hostname of the system Vector is running on.
pidoptional
The process ID of the Vector instance.
processed_bytes_total
counter
The number of bytes processed by the component.
component_id
The Vector component ID.
component_kind
The Vector component kind.
component_name
Deprecated, use component_id instead. The value is the same as component_id.
component_type
The Vector component type.
container_nameoptional
The name of the container from which the bytes originate.
fileoptional
The file from which the bytes originate.
hostoptional
The hostname of the system Vector is running on.
modeoptional
The connection mode used by the component.
peer_addroptional
The IP from which the bytes originate.
peer_pathoptional
The pathname from which the bytes originate.
pidoptional
The process ID of the Vector instance.
pod_nameoptional
The name of the pod from which the bytes originate.
Deprecated, use component_id instead. The value is the same as component_id.
component_type
The Vector component type.
hostoptional
The hostname of the system Vector is running on.
pidoptional
The process ID of the Vector instance.
request_duration_seconds
histogram
The total request duration in seconds.
hostoptional
The hostname of the system Vector is running on.
pidoptional
The process ID of the Vector instance.
requests_completed_total
counter
The total number of requests completed by this component.
component_id
The Vector component ID.
component_kind
The Vector component kind.
component_name
Deprecated, use component_id instead. The value is the same as component_id.
component_type
The Vector component type.
hostoptional
The hostname of the system Vector is running on.
pidoptional
The process ID of the Vector instance.
source_lag_time_seconds
histogram
The difference between the timestamp recorded in each event and the time when it was ingested, expressed as fractional seconds.
component_id
The Vector component ID.
component_kind
The Vector component kind.
component_name
Deprecated, use component_id instead. The value is the same as component_id.
component_type
The Vector component type.
hostoptional
The hostname of the system Vector is running on.
pidoptional
The process ID of the Vector instance.
How it works
Context
By default, the prometheus_scrape source augments events with helpful
context keys.
Duplicate tag names
Multiple tags with the same name are invalid within Prometheus. Prometheus
itself will reject a metric with duplicate tags. Vector will accept the metric,
but will only take the last value for each tag name specified.
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.
Sign up to receive emails on the latest Vector content and new releases