Visualization: Difference between revisions

 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
My current home metrics + visualization stack is self-hosted [https://grafana.com/ Grafana OSS] atop a [https://github.com/prometheus Prometheus] time series database. Prometheus is fed by [https://github.com/hikhvar/mqtt2prometheus mqtt2prometheus], which reads [https://mosquitto.org/ Mosquitto]-brokered metrics from my [https://github.com/dankamongmen/counterforce bespoke scripts] and various IoT devices. It also ingests [[SNMP]] via its own snmp_exporter. I was originally using Prometheus's node_exporter, but thought it horribly heavyweight.
My current home metrics + visualization stack is self-hosted [https://grafana.com/ Grafana OSS] atop a [https://github.com/prometheus Prometheus] time series database. Prometheus is fed by [https://github.com/hikhvar/mqtt2prometheus mqtt2prometheus], which reads [https://mosquitto.org/ Mosquitto]-brokered metrics from my [https://github.com/dankamongmen/counterforce bespoke scripts] and various IoT devices. Grafana also ingests [[SNMP]] from my switches via its own snmp_exporter. I was originally using Prometheus's node_exporter, but thought it horribly heavyweight and kicked that bitch to the curb.


At Microsoft, I use Grafana atop an otherwise custom stack. At Google, I used an entirely custom stack because hey, SWEs gotta get promoted, and the authors of Monarch weren't gonna demonstrate complexity by adapting standard open source tooling.
At Microsoft, I use Grafana atop an otherwise custom stack. At Google, I used an entirely custom stack because hey, SWEs gotta get promoted, and the authors of Monarch weren't gonna demonstrate complexity by adapting standard open source tooling.


==Data sources==
==Data sources==
I've got an [[ESP8266]]-powered [https://sonoff.tech/product/smart-plugs/s31-s31lite/ Sonoff S31] smart plug on pretty much every outlet plate. They can be found for less than $20 on sale and consume negligible parasitic power. The vendor firmware is cursed, and they ought immediately be flashed with open source [https://tasmota.github.io/docs/ Tasmota] (this takes about ten minutes per device). Once this is done, enable MQTT. From these, I sample wattage, AC voltage, and wireless quality.
I've got an [[ESP8266]]-powered [https://sonoff.tech/product/smart-plugs/s31-s31lite/ Sonoff S31] smart plug on pretty much every outlet plate. They can be found for less than $20 on sale and consume negligible parasitic power. The vendor firmware is cursed, and ought be immediately replaced with open source [https://tasmota.github.io/docs/ Tasmota] (this takes about ten minutes per device). Once this is done, enable MQTT. From these, I sample wattage, AC voltage, and wireless quality.


[[File:Voltage-grafana.png|24 hour history of AC voltages in my condo]]
[[File:Voltage-grafana.png|24 hour history of AC voltages in my condo]]