From e98ed91d1505888a3c4d49ac012d287c634b78e6 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Mon, 15 Apr 2024 14:40:30 -0400 Subject: [PATCH] add docker compose example --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 07ef681..008c5f8 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,24 @@ Get metrics from Intel GPUs Runs on port 8080, does stuff, is hyperglued using python and intel_gpu_top +### Docker Compose + +```yaml +version: "3.8" + +services: + intel-gpu-exporter: + image: ghcr.io/onedr0p/intel-gpu-exporter:rolling + container_name: intel-gpu-exporter + restart: unless-stopped + privileged: true + pid: host + ports: + - 8080:8080 + volumes: + - /dev/dri/:/dev/dri/ +``` + ## Metrics ```bash @@ -72,4 +90,4 @@ igpu_power_package 5.480595 # HELP igpu_rc6 RC6 % # TYPE igpu_rc6 gauge igpu_rc6 99.999993 -``` \ No newline at end of file +```