The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
grafana/docs/sources/administration/provisioning.md

22 lines
1.3 KiB

+++
title = "Datasource provisioning"
description = ""
keywords = ["grafana", "provisioning", "datasources"]
type = "docs"
[menu.docs]
parent = "admin"
weight = 8
+++
# Provisioning Grafana
## Datasources
> This feature is available from v4.7
8 years ago
It's possible to manage datasources in Grafana with the `conf/datasources.yaml` configuration file. Any datasource defined in this config file will be added to the database.
If the datasource already exists Grafana will update it to match the configuration file. You can also configure grafana to delete datasources that are not listed in the config by setting `purge_other_datasources` to true, this is disabled by default.
### Running multiple grafana instances.
8 years ago
If you are running multiple instances of Grafana you might run into problems if they have different versions of the datasource.yaml configuration file. The best way to solve this problem is to add a version number to each datasource in the configuration and increase it when you update the config. Grafana will only update datasources with the same or lower version number than specified in the config. That way old configs cannot overwrite newer configs if they restart at the same time. It's also recommended to not use purge_other_datasources when running multiple instances since instances with old configs might delete datasources created by new configs.