'synchronization between grafana and prometheus

who has an idea how to make grafana detect changes in prometheus target ? ( Grafana use prometheus as data source )

for exemple if i change my target in prometheus from localhost:9090 to localhost:8080 grafana must detect those changes and adapt them in the graphs .



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source