Except you’re not really given the soup. It’s just there for your taking, with a sign “contains piss”.
I’m just permanently surprised by the entitlement of people smh
How much free stuff did you create in your life, piss or not?
Except you’re not really given the soup. It’s just there for your taking, with a sign “contains piss”.
I’m just permanently surprised by the entitlement of people smh
How much free stuff did you create in your life, piss or not?
Except you’re not exactly homeless, are you?


I love grafana, but it’s a resource hog, and my machine isn’t powerful. Prometheus/node_exporter however is as lightweight as it can get.
So I made a little Python script that fetches the data from Prometheus and uses mathplotlib to generate a graph.
The dashboard calls that python script for every configured graph and embeds the image so it looks nice.
You can find the script in one of my other repos (Prometheus-renderer probably), but there are dozen similar ones: search github for Prometheus renderer and you’ll see
If there are other things unclear, please don’t hesitate to ask


Is it … a new tool? I love new tools 🥹


Loved that idea so much that I went and implemented it:
So now with this preamble:
# Defaults are used when nothing is defined at the slot level. They can be overridden by defining rules directly on a slot.
defaults:
rules:
- match:
code: 0
status: { id: ok, label: "✅" }
- match: {}
status: { id: error, label: "❌" }
# YAML anchors: reusable fragments ilias doesn't interpret directly...
# it's all just yaml
_anchors:
pct_rules: &pct_rules # works for disk, memory, CPU …
- match:
output: "^[0-6]\\d%$|^[0-9]%$"
status: { id: ok, label: "✅ <70%" }
- match:
output: "^[7-8]\\d%$"
status: { id: warn, label: "⚠️ 70–89%" }
- match: {}
status: { id: critical, label: "🔴 ≥90%" }
I can now have a tile like this:
- name: Memory
slots: # combine anchors and default rules as well as check shorthands
- name: usage
check: "free | awk '/^Mem:/ {printf \"%.0f%\", $3/$2 * 100}'"
rules: *pct_rules
- name: available
check: "free -h | awk '/^Mem:/ {print $7 \" free\"}'"
# uses default rules
- name: total
check: "free -h | awk '/^Mem:/ {print $2 \" total\"}'"
# uses default rules
And the best? It’s fully backwards compatible ❤️
Thanks again for the suggestion!


Yes, I’m aware of that, but I always found it weird to have a live service for something that hardly ever changes. And then I had the idea of this whole “fully self contained html”, and now I can’t imagine it another way 😆
That’s just opinions though, and if Homepage strikes your fancy go for it - it’s an awesome project.
Most european o’clock 😂
Okay 🤷
But what about 20 o’clock?
If you can point to any part of the analogy that’s valuable, I’m happy to go along. But this post is like breaking into someone’s home and shitting on their table. There, I can analogy too.