GithubHelp home page GithubHelp logo

intel-gpu-exporter's Introduction

Intel GPU Exporter

Python based metrics exporter for Prometheus.

The intel-gpu-tools package is used to extract GPU metrics.

Usage:

Run container:

docker run -d \
  --device /dev/dri:/dev/dri \
  --privileged \
  --publish 9100:9100 \
  --restart always \
  --name intel-gpu-exporter \
  andrewgolikov55/intel-gpu-exporter

Or docker-compose:

version: '3.3'
services:
    intel-gpu-exporter:
        devices:
            - '/dev/dri:/dev/dri'
        privileged: true
        ports:
            - '9100:9100'
        restart: always
        container_name: intel-gpu-exporter
        image: andrewgolikov55/intel-gpu-exporter

/dev/dri is essential for GPU usage, and the container must operate with elevated privileges and as the root user to ensure adequate GPU access.

You can collect metrics after start container at the following address:

http://localhost:9100/metrics

Or you can run script manually, just run:

python3 exporter.py

Prometheus setup

You can use this configuration to collect metrics:

  - job_name: gpu_metrics
    honor_timestamps: true
    scrape_interval: 15s
    scrape_timeout: 10s
    scheme: http
    follow_redirects: true
    static_configs:
    - targets:
      - localhost:9100

Building a container from sources

Building:

git clone https://github.com/AndrewGolikov55/intel-gpu-exporter.git
cd intel-gpu-exporter
docker build -t intel-gpu-exporter .

intel-gpu-exporter's People

Contributors

andrewgolikov55 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.