Skip to content

docs(metrics): remove Prometheus access - #308

Open
gsanchietti wants to merge 4 commits into
mainfrom
metrics-local-auth
Open

gsanchietti wants to merge 4 commits into
mainfrom
metrics-local-auth

Conversation

@gsanchietti

@gsanchietti gsanchietti commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

The next metrics release no longer exposes the Prometheus web interface through Traefik, so the prometheus_path command in the "Metrics and alerts" page stops working. Reaching Prometheus is troubleshooting and development information, already covered by the ns8-metrics README, so this removes the "Access Prometheus web interface" section in English and Italian.

Merge only when the metrics release ships.

See also


Generated by Claude Code:claude-opus-5.5 with nethserver-pr

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.2

QR code for preview link

🚀 View preview at
https://NethServer.github.io/ns8-docs/pr-preview/pr-308/

Built to branch gh-pages at 2026-12-01 15:14 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@gsanchietti
gsanchietti force-pushed the metrics-local-auth branch 2 times, most recently from 4789548 to ad21c6a Compare November 27, 2026 08:37
@gsanchietti gsanchietti changed the title docs(metrics): note Alertmanager password docs(metrics): Alertmanager password, Prometheus Nov 27, 2026
The next metrics release makes the local Prometheus and Alertmanager
ask for a password and no longer exposes Prometheus through Traefik.
Explain where to read the password and how to reach Prometheus for
troubleshooting.

Assisted-by: Claude Code:claude-opus-5.5
@gsanchietti gsanchietti changed the title docs(metrics): Alertmanager password, Prometheus docs(metrics): Prometheus, Alertmanager password Nov 27, 2026
@gsanchietti
gsanchietti marked this pull request as ready for review December 1, 2026 07:43

@DavidePrincipi DavidePrincipi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prometheus access is a troubleshooting topic, covered by the ns8-metrics README: remove the section instead. Please update the title and description, e.g. docs(metrics): remove Prometheus access.

Comment on lines +150 to +159

## Access Prometheus web interface

By default, Prometheus web interface is not exposed to the public network.
The Prometheus web interface is not exposed to the public network. It listens only on the leader node, at `127.0.0.1:9091`.

If you need to troubleshoot the Prometheus configuration, you can enable it on `https://<leader-node>/prometheus`. As for Grafana, you will need to authenticate with cluster admin credentials.
If you need to troubleshoot the Prometheus configuration, open an SSH tunnel to the leader node, browse `http://127.0.0.1:9091` and log in with the user `metrics` and the password above:

To enable Prometheus web interface access, run the following command on the leader node:
ssh -L 9091:127.0.0.1:9091 root@<leader-node>

api-cli run module/metrics1/configure-module --data '{"prometheus_path": "prometheus", "grafana_path": "grafana"}'
For other options, see the [metrics module README](https://github.com/NethServer/ns8-metrics#prometheus-web-interface-debug).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prometheus access is no longer a NS8 feature: it is troubleshooting and development information, already in the module README. Drop the whole section.

Suggested change
## Access Prometheus web interface
By default, Prometheus web interface is not exposed to the public network.
The Prometheus web interface is not exposed to the public network. It listens only on the leader node, at `127.0.0.1:9091`.
If you need to troubleshoot the Prometheus configuration, you can enable it on `https://<leader-node>/prometheus`. As for Grafana, you will need to authenticate with cluster admin credentials.
If you need to troubleshoot the Prometheus configuration, open an SSH tunnel to the leader node, browse `http://127.0.0.1:9091` and log in with the user `metrics` and the password above:
To enable Prometheus web interface access, run the following command on the leader node:
ssh -L 9091:127.0.0.1:9091 root@<leader-node>
api-cli run module/metrics1/configure-module --data '{"prometheus_path": "prometheus", "grafana_path": "grafana"}'
For other options, see the [metrics module README](https://github.com/NethServer/ns8-metrics#prometheus-web-interface-debug).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done: section removed.

Comment on lines +150 to +159

## Accesso all'interfaccia web di Prometheus

Per impostazione predefinita, l'interfaccia web di Prometheus non è esposta alla rete pubblica.
L'interfaccia web di Prometheus non è esposta alla rete pubblica. È in ascolto solo sul nodo leader, all'indirizzo `127.0.0.1:9091`.

Se devi risolvere problemi nella configurazione di Prometheus, puoi abilitarla su `https://<leader-node>/prometheus`. Come per Grafana, dovrai autenticarti con le credenziali di amministrazione del cluster.
Se devi risolvere problemi nella configurazione di Prometheus, apri un tunnel SSH verso il nodo leader, visita `http://127.0.0.1:9091` e accedi con l'utente `metrics` e la password indicata sopra:

Per abilitare l'accesso all'interfaccia web di Prometheus, esegui il seguente comando sul nodo leader:
ssh -L 9091:127.0.0.1:9091 root@<leader-node>

api-cli run module/metrics1/configure-module --data '{"prometheus_path": "prometheus", "grafana_path": "grafana"}'
Per altre opzioni, vedi il [README del modulo metrics](https://github.com/NethServer/ns8-metrics#prometheus-web-interface-debug).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prometheus access is no longer a NS8 feature: it is troubleshooting and development information, already in the module README. Drop the whole section.

Suggested change
## Accesso all'interfaccia web di Prometheus
Per impostazione predefinita, l'interfaccia web di Prometheus non è esposta alla rete pubblica.
L'interfaccia web di Prometheus non è esposta alla rete pubblica. È in ascolto solo sul nodo leader, all'indirizzo `127.0.0.1:9091`.
Se devi risolvere problemi nella configurazione di Prometheus, puoi abilitarla su `https://<leader-node>/prometheus`. Come per Grafana, dovrai autenticarti con le credenziali di amministrazione del cluster.
Se devi risolvere problemi nella configurazione di Prometheus, apri un tunnel SSH verso il nodo leader, visita `http://127.0.0.1:9091` e accedi con l'utente `metrics` e la password indicata sopra:
Per abilitare l'accesso all'interfaccia web di Prometheus, esegui il seguente comando sul nodo leader:
ssh -L 9091:127.0.0.1:9091 root@<leader-node>
api-cli run module/metrics1/configure-module --data '{"prometheus_path": "prometheus", "grafana_path": "grafana"}'
Per altre opzioni, vedi il [README del modulo metrics](https://github.com/NethServer/ns8-metrics#prometheus-web-interface-debug).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done: section removed.

Prometheus web interface access is troubleshooting and development
information, already covered by the ns8-metrics README. It is not an
admin feature, so drop the section from the manual.

Assisted-by: Claude Code:claude-opus-5-5
@gsanchietti gsanchietti changed the title docs(metrics): Prometheus, Alertmanager password docs(metrics): remove Prometheus access Dec 1, 2026

@DavidePrincipi DavidePrincipi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge after Metrics and Core stable release (3.26)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants