forked from grafana/terraform-provider-grafana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.md.tmpl
56 lines (33 loc) · 1.91 KB
/
index.md.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
layout: ""
page_title: "Provider: Grafana"
description: |-
The Grafana provider provides configuration management resources for Grafana.
---
# Grafana Provider
The Grafana provider provides configuration management resources for
[Grafana](https://grafana.com/).
The changelog for this provider can be found here: <https://github.com/grafana/terraform-provider-grafana/releases>.
## Example Usage
### Creating a Grafana provider
{{ tffile "examples/provider/provider.tf" }}
### Creating a Grafana Cloud stack provider
{{ tffile "examples/provider/provider-cloud.tf" }}
### Installing Synthetic Monitoring on a new Grafana Cloud Stack
{{ tffile "examples/resources/grafana_synthetic_monitoring_installation/resource.tf" }}
### Managing Grafana OnCall
{{ tffile "examples/provider/provider-oncall.tf" }}
{{ .SchemaMarkdown | trimspace }}
## Authentication
One, or many, of the following authentication settings must be set. Each authentication setting allows a subset of resources to be used
### `auth`
This can be a Grafana API key, basic auth `username:password`, or a
[Grafana Service Account token](https://grafana.com/docs/grafana/latest/developers/http_api/create-api-tokens-for-org/).
### `cloud_access_policy_token`
An access policy token created on the [Grafana Cloud Portal](https://grafana.com/docs/grafana-cloud/account-management/authentication-and-permissions/create-api-key/).
### `sm_access_token`
[Grafana Synthetic Monitoring](https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/) uses distinct tokens for API access.
You can use the `grafana_synthetic_monitoring_installation` resource as shown above or you can request a new Synthetic Monitoring API key in Synthetics -> Config page.
### `oncall_access_token`
[Grafana OnCall](https://grafana.com/docs/oncall/latest/oncall-api-reference/)
uses API keys to allow access to the API. You can request a new OnCall API key in OnCall -> Settings page.