{"id":19102706,"url":"https://github.com/bugroger/nvidia-exporter","last_synced_at":"2025-04-30T16:26:13.329Z","repository":{"id":57595651,"uuid":"119297854","full_name":"BugRoger/nvidia-exporter","owner":"BugRoger","description":"Prometheus Exporter for NVIDIA GPUs using NVML","archived":false,"fork":false,"pushed_at":"2020-06-27T02:59:47.000Z","size":260,"stargazers_count":75,"open_issues_count":6,"forks_count":23,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T17:51:11.310Z","etag":null,"topics":["kubernetes","nvidia","nvml","prometheus"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BugRoger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-28T21:07:03.000Z","updated_at":"2025-01-07T10:53:23.000Z","dependencies_parsed_at":"2022-09-26T19:53:04.527Z","dependency_job_id":null,"html_url":"https://github.com/BugRoger/nvidia-exporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BugRoger%2Fnvidia-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BugRoger%2Fnvidia-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BugRoger%2Fnvidia-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BugRoger%2Fnvidia-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BugRoger","download_url":"https://codeload.github.com/BugRoger/nvidia-exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249536140,"owners_count":21287535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kubernetes","nvidia","nvml","prometheus"],"created_at":"2024-11-09T03:56:54.167Z","updated_at":"2025-04-18T19:32:13.935Z","avatar_url":"https://github.com/BugRoger.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NVIDIA Prometheus Exporter\n\nThis exporter used the NVidia Management Library (NVML) to query information\nabout the installed Nvidia GPUs.\n\n## Requirements\n\nThe NVML shared library (libnvidia-ml.so.1) need to be loadable. When running\nin a container it must be either baked in or mounted from the host.\n\n## Running in Kubernetes\n\n```\napiVersion: apps/v1beta1 \nkind: Deployment\n\nmetadata:\n  name: nvidia-exporter \nspec:\n  replicas: 1 \n  strategy: \n    type: Recreate\n  template:\n    metadata:\n      labels:\n        app: nvidia-exporter\n    spec:\n      containers:\n        - name: nvidia-exporter\n          securityContext:\n            privileged: true\n          image: bugroger/nvidia-exporter:latest\n          ports:\n            - containerPort: 9401 \n          volumeMounts:\n            - mountPath: /usr/local/nvidia\n              name: nvidia \n      volumes:\n        - name: nvidia\n          hostPath:\n            path: /opt/nvidia/current\n---\napiVersion: v1\nkind: Service\n\nmetadata:\n  name: nvidia-exporter \n  annotations:\n    prometheus.io/scrape: \"true\"\n    prometheus.io/port: \"9401\"\nspec:\n  selector:\n    app: nvidia-exporter\n  ports:\n    - name: tcp\n      port: 9401\n```\n\n## Example\n\n```\n# HELP nvidia_device_count Count of found nvidia devices\n# TYPE nvidia_device_count gauge\nnvidia_device_count 6\n# HELP nvidia_driver_info NVML Info\n# TYPE nvidia_driver_info gauge\nnvidia_driver_info{version=\"384.111\"} 1\n# HELP nvidia_fanspeed Fan speed as reported by the device\n# TYPE nvidia_fanspeed gauge\nnvidia_fanspeed{minor=\"0\"} 40\nnvidia_fanspeed{minor=\"1\"} 32\nnvidia_fanspeed{minor=\"2\"} 27\nnvidia_fanspeed{minor=\"3\"} 42\nnvidia_fanspeed{minor=\"4\"} 39\nnvidia_fanspeed{minor=\"5\"} 43\n# HELP nvidia_info Info as reported by the device\n# TYPE nvidia_info gauge\nnvidia_info{index=\"0\",minor=\"0\",name=\"GPU-352c2b3d-5783-6e52-25b7-bc6a9fdb78bb\",uuid=\"GeForce GTX 1070\"} 1\nnvidia_info{index=\"1\",minor=\"1\",name=\"GPU-7484d1b6-8b71-15dd-ddda-4dcd3e0d22c6\",uuid=\"GeForce GTX 1070\"} 1\nnvidia_info{index=\"2\",minor=\"2\",name=\"GPU-7a604372-6642-db36-be4a-81e9e4d2de59\",uuid=\"GeForce GTX 1070\"} 1\nnvidia_info{index=\"3\",minor=\"3\",name=\"GPU-727f0f85-cbfa-c75c-484b-5cd5a71175ba\",uuid=\"GeForce GTX 1070\"} 1\nnvidia_info{index=\"4\",minor=\"4\",name=\"GPU-34891dbe-e41c-2568-8af5-84b170805eaf\",uuid=\"GeForce GTX 1070\"} 1\nnvidia_info{index=\"5\",minor=\"5\",name=\"GPU-2e31969f-b354-9675-c034-1fce9073951c\",uuid=\"GeForce GTX 1070\"} 1\n# HELP nvidia_memory_total Total memory as reported by the device\n# TYPE nvidia_memory_total gauge\nnvidia_memory_total{minor=\"0\"} 8.506048512e+09\nnvidia_memory_total{minor=\"1\"} 8.508145664e+09\nnvidia_memory_total{minor=\"2\"} 8.508145664e+09\nnvidia_memory_total{minor=\"3\"} 8.508145664e+09\nnvidia_memory_total{minor=\"4\"} 8.508145664e+09\nnvidia_memory_total{minor=\"5\"} 8.508145664e+09\n# HELP nvidia_memory_used Used memory as reported by the device\n# TYPE nvidia_memory_used gauge\nnvidia_memory_used{minor=\"0\"} 5.53517056e+08\nnvidia_memory_used{minor=\"1\"} 5.53517056e+08\nnvidia_memory_used{minor=\"2\"} 5.53517056e+08\nnvidia_memory_used{minor=\"3\"} 5.53517056e+08\nnvidia_memory_used{minor=\"4\"} 5.53517056e+08\nnvidia_memory_used{minor=\"5\"} 5.53517056e+08\n# HELP nvidia_power_usage Power usage as reported by the device\n# TYPE nvidia_power_usage gauge\nnvidia_power_usage{minor=\"0\"} 98510\nnvidia_power_usage{minor=\"1\"} 99647\nnvidia_power_usage{minor=\"2\"} 98112\nnvidia_power_usage{minor=\"3\"} 97347\nnvidia_power_usage{minor=\"4\"} 101280\nnvidia_power_usage{minor=\"5\"} 98777\n# HELP nvidia_power_usage_average Power usage as reported by the device averaged over 10s\n# TYPE nvidia_power_usage_average gauge\nnvidia_power_usage_average{minor=\"0\"} 99466\nnvidia_power_usage_average{minor=\"1\"} 99373\nnvidia_power_usage_average{minor=\"2\"} 99513\nnvidia_power_usage_average{minor=\"3\"} 99927\nnvidia_power_usage_average{minor=\"4\"} 99611\nnvidia_power_usage_average{minor=\"5\"} 99653\n# HELP nvidia_temperatures Temperature as reported by the device\n# TYPE nvidia_temperatures gauge\nnvidia_temperatures{minor=\"0\"} 60\nnvidia_temperatures{minor=\"1\"} 55\nnvidia_temperatures{minor=\"2\"} 54\nnvidia_temperatures{minor=\"3\"} 61\nnvidia_temperatures{minor=\"4\"} 59\nnvidia_temperatures{minor=\"5\"} 62\n# HELP nvidia_up NVML Metric Collection Operational\n# TYPE nvidia_up gauge\nnvidia_up 1\n# HELP nvidia_utilization_gpu GPU utilization as reported by the device\n# TYPE nvidia_utilization_gpu gauge\nnvidia_utilization_gpu{minor=\"0\"} 100\nnvidia_utilization_gpu{minor=\"1\"} 100\nnvidia_utilization_gpu{minor=\"2\"} 100\nnvidia_utilization_gpu{minor=\"3\"} 100\nnvidia_utilization_gpu{minor=\"4\"} 100\nnvidia_utilization_gpu{minor=\"5\"} 100\n# HELP nvidia_utilization_gpu_average Used memory as reported by the device averraged over 10s\n# TYPE nvidia_utilization_gpu_average gauge\nnvidia_utilization_gpu_average{minor=\"0\"} 99\nnvidia_utilization_gpu_average{minor=\"1\"} 99\nnvidia_utilization_gpu_average{minor=\"2\"} 99\nnvidia_utilization_gpu_average{minor=\"3\"} 99\nnvidia_utilization_gpu_average{minor=\"4\"} 99\nnvidia_utilization_gpu_average{minor=\"5\"} 99\n# HELP nvidia_utilization_memory Memory Utilization as reported by the device\n# TYPE nvidia_utilization_memory gauge\nnvidia_utilization_memory{minor=\"0\"} 78\nnvidia_utilization_memory{minor=\"1\"} 78\nnvidia_utilization_memory{minor=\"2\"} 76\nnvidia_utilization_memory{minor=\"3\"} 75\nnvidia_utilization_memory{minor=\"4\"} 78\nnvidia_utilization_memory{minor=\"5\"} 76\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugroger%2Fnvidia-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbugroger%2Fnvidia-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugroger%2Fnvidia-exporter/lists"}