See this picture, there are 3 available values for the variable “Datasource”.
Prometheus, default, and Prometheus-envoy.
I am trying to build some programmatic UI tool around grafana, but I couldn’t figure out how these 3 values are loaded dynamically. Is it rendered by the server directly? But the initial HTML doesn’t contain those values at all. I couldn’t find any APIs that returned those values either.