CouchDB 3.2.0 adds built-in prometheus style metrics. These metrics are exposed at /_node/_local/_prometheus. Since this is part of the main http server, this endpoint is authenticated. CouchDB 3.2.0 Also adds configuration to expose the new metrics on another unauthenticated port. This PR also adds extra support for that new configuration.
New Variables
New variables that match the new CouchDB configuration have been added.
prometheusPort.enabled - when true the new feature will be enabled
prometheusPort.port - the new unauthenticated port
prometheusPort.bind_address - the address to listen on
When prometheusPort.enabled is true:
A new prometheus.ini is added to the /defaults.d directory
A metrics port is added to the headless service
The new metrics port is opened up in the NetworkSecurityPolicy
The new metrics port is exposed on the CouchDB container
This makes it possible to have prometheus scrape CouchDB metrics using a ServiceMonitor such as
What this PR does / why we need it:
Bump CouchDB version to 3.2.0
CouchDB 3.2.0 adds built-in prometheus style metrics. These metrics are exposed at
/_node/_local/_prometheus
. Since this is part of the main http server, this endpoint is authenticated. CouchDB 3.2.0 Also adds configuration to expose the new metrics on another unauthenticated port. This PR also adds extra support for that new configuration.New Variables
New variables that match the new CouchDB configuration have been added.
prometheusPort.enabled
- when true the new feature will be enabledprometheusPort.port
- the new unauthenticated portprometheusPort.bind_address
- the address to listen onWhen
prometheusPort.enabled
is true:This makes it possible to have prometheus scrape CouchDB metrics using a ServiceMonitor such as
Referenced URLS:
Special notes for your reviewer:
Checklist