Repository navigation
docs(metrics): remove Prometheus access - #308
gsanchietti wants to merge 4 commits into
Conversation
|
4789548 to
ad21c6a
Compare
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
ad21c6a to
e2e6e8f
Compare
DavidePrincipi
left a comment
There was a problem hiding this comment.
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.
|
|
||
| ## 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). |
There was a problem hiding this comment.
Prometheus access is no longer a NS8 feature: it is troubleshooting and development information, already in the module README. Drop the whole section.
| ## 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). |
There was a problem hiding this comment.
Done: section removed.
|
|
||
| ## 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). |
There was a problem hiding this comment.
Prometheus access is no longer a NS8 feature: it is troubleshooting and development information, already in the module README. Drop the whole section.
| ## 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). |
There was a problem hiding this comment.
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
DavidePrincipi
left a comment
There was a problem hiding this comment.
Merge after Metrics and Core stable release (3.26)
The next metrics release no longer exposes the Prometheus web interface through Traefik, so the
prometheus_pathcommand 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