Grafana + Prometheus -> showing multiple Gauge value

@tanmaybhat24 The below query combined the result based on the instance name and showed one value. However not clear how to make it dynamic.
How does Grafana send interval to Prometheus?

max_over_time(max by (pod_name) (chronos_histogram_latency_seconds{from="kafka_phlegethon", NAME ="LD11X",env="uat", quantile="0.99"})[24h:15m])