eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

208
active users

#exporter

0 posts0 participants0 posts today

If you're looking for a #Prometheus #Exporter with total system power consumption of your #MacMini or recent #AppleSilicon hardware-without-a-battery you're looking for this Rust project.

It uses SMC value "PSTR" (with little documentation except this one) in an intelligent way: by sampling the value often and accumulating a counter value based on energy (1 Joule = 1 Watt per second = 1/3600 Wh) so that the value is the best approximation even if scraped rarely.

Most other project either use the battery metrics (which don't work when plugged in) or powermetrics which only account for about 30%-40% of the total power consumption.

PS: I'm not really an Apple fan myself, quite the contrary, but I wanted to experiment with self-histed #LLM and nowadays a MacMini is overwhelmingly superior to any other low-cost option when considering performance/Watt.

GitHubI was just about to create something like this… · Issue #1 · mdekstrand/smc-exporterBy lapo-luchini