All Projects â†’ sa7mon â†’ ups-telegraf

sa7mon / ups-telegraf

Licence: other
Get data from USB-connected UPS with Telegraf

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to ups-telegraf

docker-telegraf-influxdb-grafana
Docker Image with Telegraf, InfluxDB and Grafana
Stars: ✭ 17 (-19.05%)
Mutual labels:  influxdb, telegraf
grafana-dashboards
List of Grafana Dashboards 📺
Stars: ✭ 120 (+471.43%)
Mutual labels:  influxdb, telegraf
rpi-monitoring-node
Automated installation of Grafana, Telegraf and influxdb for your Raspberry Pi
Stars: ✭ 18 (-14.29%)
Mutual labels:  influxdb, telegraf
vault-consul-monitoring
Sample project to explore monitoring Vault and Consul with telegraf/influxdb/grafana
Stars: ✭ 52 (+147.62%)
Mutual labels:  influxdb, telegraf
influxdb-php-sdk
InfluxDB PHP SDK - UDP/IP or HTTP adapters for read and write data
Stars: ✭ 88 (+319.05%)
Mutual labels:  influxdb, telegraf
telemetry collector
build telemetry software stack for Cisco nx-os, support both telemetry dial-out and gNMI dial-in
Stars: ✭ 39 (+85.71%)
Mutual labels:  influxdb, telegraf
monitoring-rancher
🤠How to Set up Rancher Server Monitoring with TIG Stack?
Stars: ✭ 22 (+4.76%)
Mutual labels:  influxdb, telegraf
influx snmp
SNMP Data Collection and Analytics with the TICK Stack (Telegraf, InfluxDB, Chronograf and Kapacitor)
Stars: ✭ 28 (+33.33%)
Mutual labels:  influxdb, telegraf
telegraf-influxdb-grafana
TIG Stack
Stars: ✭ 30 (+42.86%)
Mutual labels:  influxdb, telegraf
bounded-disturbances
A k6/.NET red/green load testing workshop
Stars: ✭ 39 (+85.71%)
Mutual labels:  influxdb, telegraf
ruuvitag-demo
Demo of reading Bluetooth Low Energy sensor measurements of RuuviTag environmental sensors and feeding them to MQTT, a database and dashboards
Stars: ✭ 14 (-33.33%)
Mutual labels:  influxdb, telegraf
cv4pve-metrics
Metrics for Proxmox VE, Grafana with dasboard, InfluxDb
Stars: ✭ 38 (+80.95%)
Mutual labels:  influxdb, telegraf
Influxdb exporter
A server that accepts InfluxDB metrics via the HTTP API and exports them via HTTP for Prometheus consumption
Stars: ✭ 159 (+657.14%)
Mutual labels:  influxdb
Pi Hole Monitoring
Monitoring Pi-Hole statistics with Grafana
Stars: ✭ 196 (+833.33%)
Mutual labels:  influxdb
Influxdb.net
Cross-platform .NET library for InfluxDB distributed time-series database.
Stars: ✭ 159 (+657.14%)
Mutual labels:  influxdb
Ohmgraphite
Export Open Hardware sensor data to Graphite / InfluxDB / Prometheus / Postgres / Timescaledb
Stars: ✭ 155 (+638.1%)
Mutual labels:  influxdb
Go Runtime Metrics
Collect golang runtime metrics, pushing to InfluxDB or pulling with Telegraf
Stars: ✭ 245 (+1066.67%)
Mutual labels:  influxdb
Icingaweb2 Module Grafana
Grafana module for Icinga Web 2 (supports InfluxDB & Graphite)
Stars: ✭ 190 (+804.76%)
Mutual labels:  influxdb
Appmetrics
App Metrics is an open-source and cross-platform .NET library used to record and report metrics within an application.
Stars: ✭ 1,986 (+9357.14%)
Mutual labels:  influxdb
Influxdata.net
InfluxData TICK stack .net library.
Stars: ✭ 142 (+576.19%)
Mutual labels:  influxdb

Description

Get data from USB-connected UPS into InfluxDB using Telegraf

Transforms upsc output like this:

battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 20
battery.mfr.date: CPS
battery.runtime: 3133
battery.runtime.low: 300
battery.type: PbAcid
battery.voltage: 13.1
battery.voltage.nominal: 12

into InfluxDB Line Protocol like this:

ups battery.charge=100,battery.charge.low=10,battery.charge.warning=20,battery.mfr.date="CPS",battery.runtime=2970,battery.runtime.low=300,battery.type="PbAcid",battery.voltage=13.1,battery.voltage.nominal=12

Usage

Edit the script string_measurements variable to reflect your setup. Specifically, add any additional measurement names that your UPS provides to the string_measurements array (in sorted order) so they will be included in the output.

To see all the measurements your UPS provides, run this:

upsc YOUR_UPS_NAME_HERE 2>/dev/null | awk -F':' 'BEGIN {print "string_measurements=["} {print "\"" $1 "\", "} END {print "]"}' |tr -d '\n'

Call the script from telegraf.conf like this

[[inputs.exec]]

   commands = ["python /path/to/getUpsData.py <YOUR_UPS_NAME_HERE>"]
   timeout = "5s"
   data_format = "influx"

Compatibility

Tested on:

  • Cyberpower CP1000AVRLCDa
  • CyberPower SL700U (CyberPowerSL700U.py)
  • Dell UPS 1000T/1920T/1920R HV (DellBadge-Eaton5PX.py)
  • MGE Pulsar 2200

If you're using this with a different UPS, please let me know so I can add it to the list

Contributors

Thanks to the following for helping improve this repo.

  • @openincident
  • @mattster98
  • @Graffics
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].