# nvitop-exporter
Prometheus exporter built on top of `nvitop`.
## Quickstart
Start the exporter with the following command:
```bash
pipx run nvitop-exporter --bind-address 0.0.0.0 --port 5050
# or
uvx nvitop-exporter --bind-address 0.0.0.0 --port 5050
```
Then you can access the metrics at [`http://localhost:5050/metrics`](http://localhost:5050/metrics).
You will need to configure Prometheus to scrape the metrics from the exporter.
```yaml
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`](./dashboard.json).
The Grafana dashboard can also be imported as by ID [22589](https://grafana.com/grafana/dashboards/22589-nvitop-dashboard).
<p align="center">
<img width="100%" src="https://github.com/user-attachments/assets/e4867e64-2ca9-45bc-b524-929053f9673d" alt="Grafana Dashboard">
<br/>
The Grafana dashboard for the exporter.
</p>
Raw data
{
"_id": null,
"home_page": null,
"name": "nvitop-exporter",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "nvidia, nvidia-smi, NVIDIA, NVML, CUDA, GPU, top, monitoring, prometheus, Prometheus, grafana, Grafana",
"author": null,
"author_email": "Xuehai Pan <XuehaiPan@pku.edu.cn>",
"download_url": "https://files.pythonhosted.org/packages/78/91/c236437028d06ec4cd9a30238c864da1318cc856a55bfca08ed9d3b2b83e/nvitop_exporter-1.4.2.tar.gz",
"platform": null,
"description": "# nvitop-exporter\n\nPrometheus exporter built on top of `nvitop`.\n\n## Quickstart\n\nStart the exporter with the following command:\n\n```bash\npipx run nvitop-exporter --bind-address 0.0.0.0 --port 5050\n# or\nuvx nvitop-exporter --bind-address 0.0.0.0 --port 5050\n```\n\nThen you can access the metrics at [`http://localhost:5050/metrics`](http://localhost:5050/metrics).\n\nYou will need to configure Prometheus to scrape the metrics from the exporter.\n\n```yaml\nscrape_configs:\n - job_name: 'nvitop-exporter'\n static_configs:\n - targets: ['localhost:5050']\n```\n\n## Grafana Dashboard\n\nA Grafana dashboard is provided to visualize the metrics collected by the exporter.\nThe source of the dashboard is [`dashboard.json`](./dashboard.json).\nThe Grafana dashboard can also be imported as by ID [22589](https://grafana.com/grafana/dashboards/22589-nvitop-dashboard).\n\n<p align=\"center\">\n <img width=\"100%\" src=\"https://github.com/user-attachments/assets/e4867e64-2ca9-45bc-b524-929053f9673d\" alt=\"Grafana Dashboard\">\n <br/>\n The Grafana dashboard for the exporter.\n</p>\n",
"bugtrack_url": null,
"license": "Apache License, Version 2.0 (Apache-2.0)",
"summary": "Prometheus exporter built on top of `nvitop`.",
"version": "1.4.2",
"project_urls": {
"Bug Report": "https://github.com/XuehaiPan/nvitop/issues",
"Documentation": "https://nvitop.readthedocs.io",
"Homepage": "https://github.com/XuehaiPan/nvitop",
"Repository": "https://github.com/XuehaiPan/nvitop"
},
"split_keywords": [
"nvidia",
" nvidia-smi",
" nvidia",
" nvml",
" cuda",
" gpu",
" top",
" monitoring",
" prometheus",
" prometheus",
" grafana",
" grafana"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "3174e61438ac5c1a8964554d0704a9ce88ce68110ed75eccc21913cc16e3a65e",
"md5": "ee5765ba64374b58a193a75a5ed0c340",
"sha256": "001a98faa615d0e66844cdd67b9ea944abb9c365e24d95980105faf9953eee41"
},
"downloads": -1,
"filename": "nvitop_exporter-1.4.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ee5765ba64374b58a193a75a5ed0c340",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 16625,
"upload_time": "2025-01-26T17:42:10",
"upload_time_iso_8601": "2025-01-26T17:42:10.345640Z",
"url": "https://files.pythonhosted.org/packages/31/74/e61438ac5c1a8964554d0704a9ce88ce68110ed75eccc21913cc16e3a65e/nvitop_exporter-1.4.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "7891c236437028d06ec4cd9a30238c864da1318cc856a55bfca08ed9d3b2b83e",
"md5": "9cf6a7910f9a2704b771ba1dacc6e3ea",
"sha256": "de79ec20a30e8a8b5c8014354c0c9a189cc16d7d00826d7c31346f3c714e00ee"
},
"downloads": -1,
"filename": "nvitop_exporter-1.4.2.tar.gz",
"has_sig": false,
"md5_digest": "9cf6a7910f9a2704b771ba1dacc6e3ea",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 14593,
"upload_time": "2025-01-26T17:42:13",
"upload_time_iso_8601": "2025-01-26T17:42:13.548932Z",
"url": "https://files.pythonhosted.org/packages/78/91/c236437028d06ec4cd9a30238c864da1318cc856a55bfca08ed9d3b2b83e/nvitop_exporter-1.4.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-26 17:42:13",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "XuehaiPan",
"github_project": "nvitop",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "nvidia-ml-py",
"specs": [
[
"<",
"12.571.0a0"
],
[
">=",
"11.450.51"
]
]
},
{
"name": "psutil",
"specs": [
[
">=",
"5.6.6"
]
]
},
{
"name": "colorama",
"specs": [
[
">=",
"0.4.0"
]
]
},
{
"name": "windows-curses",
"specs": [
[
">=",
"2.2.0"
]
]
}
],
"lcname": "nvitop-exporter"
}