How to handle partial data from prometheus?

  • What Grafana version and what operating system are you using?
    Prometheus version 2.49.0

  • What are you trying to achieve?
    I want to be able to have a single prometheus client export network ping data every 30 seconds and speedtest data every hour.

  • How are you trying to achieve it?
    I have a working python script that hosts a webpage that contains both metrics at the same time

  • What happened?
    The ping metrics update every 30 seconds, but the speedtest data is also exported. The speedtest data is present as 0 or as the last defined value. The speedtest metrics are also updated every hour

I am wondering what the best solution is here. Do I keep the last defined value and update the dashboard anyway? Do I update the dashboard as long as the value is different? Is there a method to explicitly define what values are new?

I’m new to Grafana, any help is appreciated.