Giter Site home page Giter Site logo

docker-intel-gpu-telegraf's Introduction

Intel iGPU utilization to Grafana: intel-gpu-telegraf

This is a simple container designed to poll utilization data from the integrated GPU in Intel CPUs and send the data to InfluxDB via Telegraf. I'm using the i9-9900k CPU and the GPU is piped to my Plex container, also running on the Unraid server.

This container requires that /dev/dri (the GPU) is piped to the container. This is automatically set if you are using the Unraid template as mentioned below.

Ultimately the goal was to display GPU utilization for my Unraid server via Grafana:


Attributes: Except for the influx_password, all variables are required to be set before starting the container.

telegraf_hostname: This fills the hostname variable under [agent] in Telegraf's config.
influx_url: This fills the [urls] array under [[outputs.influxdb]] in Telegraf's config.
influx_db: This fills the database variable under [[outputs.influxdb]] in Telegraf's config.
influx_passsword: This fills the password variable under [[outputs.influxdb]] in Telegraf's config. This is optional, leave it blank if no password is used to connect to your influx database.
influx_skip_db_creation: This fills the skip_database_creation variable under [[outputs.influxdb]] in Telegraf's config.

For Unraid users:

Just add my repository: "https://github.com/brianmiller/docker-templates" to your repo list in Unraid (bottom on the Docker tab.) The container will show up in your list as "intel-gpu-telegraf":


For docker direct users:

Download the container

docker pull theoriginalbrian/intel-gpu-telegraf

Start the container

docker run --rm -ti --privileged=true --device /dev/dri:/dev/dri --ip ipaddressforthiscontainer --network interfacetobindto --env telegraf_hostname="myhostname" --env influx_url="http://myinfluxdb:port" --env influx_db="myinfluxdb" --env influx_password="" --env influx_skip_db_creation="false" theoriginalbrian/intel-gpu-telegraf

The actual command I use to start the container in my environment, when I'm not using Unraid.

docker run --rm -ti --privileged=true --device /dev/dri:/dev/dri --ip 2.2.20.29 --network br0 --env telegraf_hostname="cerebrum" --env influx_url="http://37648-influxdb1.phospher.com:8086" --env influx_db="telegraf" --env influx_password="" --env influx_skip_db_creation="false" theoriginalbrian/intel-gpu-telegraf

docker-intel-gpu-telegraf's People

Contributors

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