Nginx Metrics
Module ngx_http_stub_status_module
should be enabled.
Configuration Options
Required Options
endpoints(required)
HTTP/HTTPS endpoint to Nginx server with enabled ngx_http_stub_status_module
module.
Type | Syntax | Default | Example |
---|---|---|---|
array | literal | ["http://localhost:8000/basic_status"] |
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 | ["nginx_metrics"] |
Advanced Options
scrape_interval_secs(optional)
The interval between scrapes.
Type | Syntax | Default | Example |
---|---|---|---|
uint | 15 |
namespace(optional)
The namespace of metrics. Disabled if empty.
Type | Syntax | Default | Example |
---|---|---|---|
string | literal | nginx |
tls(optional)
Configures the TLS options for incoming connections.
Type | Syntax | Default | Example |
---|---|---|---|
hash | literal | [] |
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 | [] |
auth(optional)
Configures the authentication strategy.
Type | Syntax | Default | Example |
---|---|---|---|
hash | literal | [] |
How it Works
Module `ngx_http_stub_status_module`
The [ngx_http_stub_status_module]9http://nginx.org/en/docs/http/ngx_http_stub_status_module.html) module provides access to basic status information. Basic status information is a simple web page with text data.
State
This component is stateless, meaning its behavior is consistent across each input.
Context
By default, the nginx_metrics
source augments events with helpful
context keys.