Nginx Metrics

Requirements

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.

TypeSyntaxDefaultExample
arrayliteral["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.

TypeSyntaxDefaultExample
stringliteral["nginx_metrics"]

Advanced Options

scrape_interval_secs(optional)

The interval between scrapes.

TypeSyntaxDefaultExample
uint15
namespace(optional)

The namespace of metrics. Disabled if empty.

TypeSyntaxDefaultExample
stringliteralnginx
tls(optional)

Configures the TLS options for incoming connections.

TypeSyntaxDefaultExample
hashliteral[]
proxy(optional)

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

TypeSyntaxDefaultExample
hashliteral[]
auth(optional)

Configures the authentication strategy.

TypeSyntaxDefaultExample
hashliteral[]

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.