docs: adds provisioning examples for all datasources

closes #11363
This commit is contained in:
bergquist
2018-03-28 17:39:00 +02:00
parent df89be4de9
commit d95eabfeec
8 changed files with 157 additions and 0 deletions
@@ -100,3 +100,18 @@ The step option is useful to limit the number of events returned from your query
## Getting Grafana metrics into Prometheus
Since 4.6.0 Grafana exposes metrics for Prometheus on the `/metrics` endpoint. We also bundle a dashboard within Grafana so you can get started viewing your metrics faster. You can import the bundled dashboard by going to the data source edit page and click the dashboard tab. There you can find a dashboard for Grafana and one for Prometheus. Import and start viewing all the metrics!
## Configure datasource with provisioning
Its now possible to configure datasources using config files with Grafanas [provisioning system](/administration/provisioning/#datasources
Here are some examples of how you can configure the Cloudwatch datasource using configuration.
```yaml
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: proxy
url: http://localhost:9090
```