Skip to content
/ systemp Public

Simple Python flask app for Linux system temperature monitoring

Notifications You must be signed in to change notification settings

vladak/systemp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

systemp

Simple Python app for Linux system temperature monitoring to be consumed by Prometheus.

Install

  • This needs Prometheus Python client API library:
sudo apt-get install -y python3-prometheus-client
  • clone the repository to /srv/:
which git || sudo apt-get install -y git
sudo mkdir -p /srv/systemp
sudo chown $USER /srv/systemp
git clone https://github.com/vladak/systemp.git /srv/systemp
  • copy systemp.service file to /etc/systemd/system/systemp.service:
sudo cp /srv/systemp/systemp.service /etc/systemd/system/systemp.service
  • enable the service:
sudo systemctl enable systemp
  • if the file /etc/systemd/system/systemp.service changes, run:
sudo systemctl daemon-reload
  • to start the service:
sudo systemctl start systemp
sudo systemctl status systemp

Use

$ curl http://localhost:8222/

...

CPU_temp_pihole 58.913

This can be now added to /etc/prometheus/prometheus.yml like so:

  - job_name: CPU_pihole
    static_configs:
      - targets: ['pi:8222']

About

Simple Python flask app for Linux system temperature monitoring

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages