mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
| .. | ||
| grafana | ||
| nvitop_exporter | ||
| Dockerfile | ||
| LICENSE | ||
| pyproject.toml | ||
| README.md | ||
| requirements.txt | ||
| setup.py | ||
nvitop-exporter
Prometheus exporter built on top of nvitop.
Quickstart
Start the exporter with the following command:
uvx nvitop-exporter --bind-address 0.0.0.0 --port 5050
# or
pipx run nvitop-exporter --bind-address 0.0.0.0 --port 5050
Then you can access the metrics at http://localhost:5050/metrics.
You will need to configure Prometheus to scrape the metrics from the exporter.
scrape_configs:
- job_name: 'nvitop-exporter'
static_configs:
- targets: ['localhost:5050']
Grafana Dashboard
A Grafana dashboard is provided to visualize the metrics collected by the exporter.
The source of the dashboard is dashboard.json.
The Grafana dashboard can also be imported as by ID 22589.
If you are using docker-compose, you can start a dashboard at http://localhost:3000 with the following command:
cd nvitop-exporter/grafana
docker compose up --build --detach
The Grafana dashboard for the exporter.