markuslindenberg / co2monitor_exporter

Prometheus exporter for USB CO2 Monitors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CO2 Monitor Exporter

This is a Prometheus exporter for some similar USB CO2 monitors:

It uses the Linux HIDRAW API (/dev/hidraw0 etc.) to access the CO2 Monitor.

Metrics

  • co2monitor_co2_ppm
  • co2monitor_temp_celsius
  • co2monitor_humidity_rh

Installation

go get github.com/markuslindenberg/co2monitor_exporter

A example udev rule and systemd service to automatically start co3monitor_exporter when the device is plugged in are provided in the systemd/ directory.

sudo cp systemd/prometheus-co2monitor-exporter@.service /etc/systemd/system/
sudo cp systemd/90-co2monitor.rules /etc/udev/rules.d/
sudo systemctl restart udev.service

Usage

~/go/bin/co2monitor_exporter --device /dev/hidraw0

Package

This repository includes a Go package for the USB CO2 monitor.

About

Prometheus exporter for USB CO2 Monitors

License:Apache License 2.0


Languages

Language:Go 100.0%