-
What Grafana version and what operating system are you using?
9.4.7 (2023-03-16) in Linux on Kubernetes.
-
What are you trying to achieve?
Build datasources dynamically based on pods/services as an URL and variables for authentication
. -
How are you trying to achieve it?
Do a research if there as an option to do that in an automatic way.
The question if there is a way to automatically provision datasources for Grafana based on the running pods in a Kubernetes?
- We run PostgreSQL instances dynamically in a Kubernetes in a db namespace with a specific set of labels and variables
- Grafana run in the same namespace
- Grafana sidecar should observe every new pod in this namespace and check for a specific label and variables for authentication
- When new pod fit all criterias it should be added to the Grafana list of datasources and removed at pod termination