Giter VIP home page Giter VIP logo

igpu-node-exporter's Introduction

iGPU-Node-Exporter

A Python based node, exporting Intel iGPU data for Prometheus.

This has been made & tested on a Intel Xeon E3-1275v6 CPU.

Requirements

Apt packages

  • python3
  • python3-pip
  • intel_gpu_tools

Pip packages

  • prometheus_client
  • subprocess

Usage

iGPU host

Syntax: python3 script.py port http_service_metric_point

Real use case example: python3 igpu_exporter.py 9101 http://localhost:9101/metrics

  1. Try the script with the example above
  2. Add the service file to /etc/systemd/system/
  3. Test the service with systemctl daemon-reload && systemctl start igpu_exporter.service
  4. Check the status with systemctl status igpu_exporter.service
  5. Add the service to run at boot with systemctl enable igpu_exporter.service

Metric End Point data

# HELP igpu_video_busy  Video busy utilisation in %
# TYPE igpu_video_busy summary
igpu_video_busy 0.0
# HELP igpu_render_busy Render busy utilisation in %
# TYPE igpu_render_busy summary
igpu_render_busy 0.0
# HELP igpu_enhance_busy Enhance busy utilisation in %
# TYPE igpu_enhance_busy summary
igpu_enhance_busy 0.0
# HELP igpu_power Power utilisation in W
# TYPE igpu_power summary
igpu_power 0.0

Prometheus configuration

Please see prometheus.yml

Required changes for you

  • Adapt path to script in igpu_exporter.service
  • Adapt http_service_metric_point in igpu_exporter.service
  • Adapt the target in prometheus.yml

igpu-node-exporter's People

Contributors

christophedc0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.