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.