Drop Down variable with time range

  • What Grafana version and what operating system are you using?
    Version 10.4.0 - Debian

  • What are you trying to achieve?
    I have a dropdown variable to select for which system to show the data. Its shows all the systems also when it didnt have data in the influxdb for the selected time range. I want the dropdown to update the selection based on the selected time range

image

  • How are you trying to achieve it?
    Update the dropdown selection based on the timerange

Can you a time filter on the SHOW TAG VALUES WITH KEY=host WHERE CPE =~ /$cpe/ and time >= $from and time <= $to kind of thing

1 Like