|
Grafana currently is only exposed to `localhost`, therefore a local port forwarding is needed to access the web service remotely via SSH:
|
|
Grafana currently is only exposed to `localhost`, therefore a local port forwarding is needed to access the web service remotely via SSH:
|
|
|
|
|
|
`ssh -L3000:localhost:3000 141.13.250.82` |
|
**Grafana**: `ssh -L3000:localhost:3000 141.13.250.82` (Browser: http://localhost:3000)
|
|
\ No newline at end of file |
|
**Prometheus**: `ssh -L3000:localhost:3000 141.13.250.82` (Browser: http://localhost:9090/graph)
|
|
|
|
|
|
|
|
|
|
|
|
Setup
|
|
|
|
-----
|
|
|
|
|
|
|
|
The monitoring is based on [Prometheus](https://prometheus.io/), [Node exporter](https://github.com/prometheus/node_exporter) and [Grafana](https://grafana.com/).
|
|
|
|
|
|
|
|
Prometheus and Grafana are running in Docker containers which are orchestrated via Docker Compose. The neccessary files are located in `/srv/monitoring/`.
|
|
|
|
|
|
|
|
The host metrics are collected via a manually installed instance of Node exporter, as running it in a Docker container is discouraged[^1]. For the installation of Node exporter, the [guide of Prometheus](https://prometheus.io/docs/guides/node-exporter/) was followed.
|
|
|
|
|
|
|
|
|
|
|
|
Footnotes
|
|
|
|
---------
|
|
|
|
|
|
|
|
[^1]: "It's not recommended to deploy it as a Docker container because it requires access to the host system." https://github.com/prometheus/node_exporter/blob/b14168cf6ad2fd40bbe53b29eebea149dae31105/README.md#using-docker |
|
|
|
\ No newline at end of file |