lukasmalkmus / rpi_exporter

A Raspberry Pi CPU temperature exporter.
Apache License 2.0
78 stars 17 forks source link

Add CPU and GPU frequency metrics #21

Closed ToMe25 closed 1 year ago

ToMe25 commented 1 year ago

This PR adds metrics for the per core CPU frequency, as well as the three GPU components whose frequency can be checked using vcgencmd measure_clock.

It also avoids recreating the prometheus.Desc for every /metrics request.

I did test this, however I didn't test this with older raspbian versions, so I'm not sure how new it has to be for this to work.

ToMe25 commented 1 year ago

Thanks for reviewing this so quickly :)