You can use node_exporter since it exposes a metric (along with per core information):
node_cpu_scaling_frequency_hertz
For getting in GHz, node_cpu_scaling_frequency_hertz/1000000000 should do the work.
Also, these should be asked in the prometheus-users group.