From aa8c74a8f57f70dbd15b115207364f589d4afed8 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Fri, 17 Jul 2026 08:17:35 +0300 Subject: [PATCH] Upgrade prometheus-nginxlog-exporter role (v1.10.0-4 -> v1.10.0-5) and fix its metric names The exporter's configuration used to ship a leftover "myprefix" placeholder as the metric name prefix, so the bundled Grafana dashboard (which queries unprefixed metric names) could never show any data. Metric names are now unprefixed and the namespace label value changed from matrix to nginx. See the CHANGELOG entry for details. Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/3380 Co-Authored-By: Claude Fable 5 --- CHANGELOG.md | 11 +++++++++++ requirements.yml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11f0ce701..2bdb388ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +# 2026-07-17 + +## prometheus-nginxlog-exporter metric names have changed + +If you have enabled [metrics for nginx logs](docs/configuring-playbook-prometheus-grafana.md) (`prometheus_nginxlog_exporter_enabled: true`), note that the exporter's metric names have changed. + +The exporter's configuration used to ship a leftover `myprefix` placeholder as the metric name prefix, producing metrics like `myprefix_http_response_count_total`. The bundled Grafana dashboard queries unprefixed metric names (`http_response_count_total`), so it could never show any data (reported in [#3380](https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/3380)). + +Metric names are now unprefixed, matching the bundled dashboard, which should start working. Each metric carries a `namespace` label, whose value is now `nginx` (previously `matrix`); it is configurable via `prometheus_nginxlog_exporter_config_namespace_name`. If you have built custom dashboards or alerts on top of the old `myprefix_*` metric names, adjust them accordingly, or restore the old behavior by setting `prometheus_nginxlog_exporter_config_namespace_metrics_prefix: myprefix` in your `vars.yml` file. + + # 2026-07-16 ## (Backward Compatibility Break) Bridge variables have been renamed diff --git a/requirements.yml b/requirements.yml index 17add7f81..a4a9996ed 100644 --- a/requirements.yml +++ b/requirements.yml @@ -66,7 +66,7 @@ version: v3.13.1-0 name: prometheus - src: git+https://github.com/mother-of-all-self-hosting/ansible-role-prometheus-nginxlog-exporter.git - version: v1.10.0-4 + version: v1.10.0-5 name: prometheus_nginxlog_exporter - src: git+https://github.com/mother-of-all-self-hosting/ansible-role-prometheus-node-exporter.git version: v1.12.1-0