Skip to content

Building your own DCIM from Grafana and $50 of sensors

Datacenter Talk by pieter_rtm 3 replies 495 views
6 #1

To be honest, most DCIM suites are overpriced bloat. As said, here's what I run at two edge sites.

Hardware:
- 10x SHT30 temp/humidity sensors ($2.80/ea)
- 3x INA219 current sensors ($4.50/ea)
- Raspberry Pi 4 with PoE HAT (already had)
- Total: $47.30

Stack:
- Prometheus node_exporter on PDU management LAN
- Telegraf on Pi, MQTT to Grafana Cloud
- Alerts via webhook to PagerDuty

Dashboard shows:
- Per-rack power
- "Ambient" temperature (ceiling-mounted sensors)
- Humidity trendlines

400+ upvotes later, still running clean. No licensing headaches. No "unlimited" support contracts.

Config snippets below if useful.

[[inputs.mqtt_consumer]]
  servers = ["tcp://10.0.30.5:1883"]
  topics = ["sensors/+/temperature"]
  data_format = "value"
  data_type = "float"
Containers before it was cool
#2

Fun little project, it actually works!

I did similar with a Hetzner remote hands closet. Used your Telegraf config almost verbatim.

[[inputs.http]]
  urls = ["http://10.0.30.10/api/power"]
  data_format = "json"

One tweak: I added UPS charge percentage to the same dashboard. Handy during the last "scheduled maintenance" that wasn't scheduled.

works on my bench ¯\_(ツ)_/¯
#3

What PoE HAT are you using, the official one?

#4

Which Grafana version, 10 or the new 11?

Have you tried restarting it?

Post a reply

You need an account to reply. Log in or register to join the conversation.

Post reply Preview Save draft