Closed ToMe25 closed 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.
vcgencmd measure_clock
It also avoids recreating the prometheus.Desc for every /metrics request.
prometheus.Desc
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.
Thanks for reviewing this so quickly :)
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.