Skip to content

Commit df149ae

Browse files
committed
Update OnCall auth section to prefer service account token setup
1 parent 02d0994 commit df149ae

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

examples/provider/provider-oncall-sa.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Step 1: Configure provider block.
2+
// You may need to set oncall_url too, depending on your region or if you are using Grafana OnCall OSS. You can get it in OnCall -> settings -> API URL.
23
provider "grafana" {
34
alias = "oncall"
45
url = "http://grafana.example.com/"

templates/index.md.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ The changelog for this provider can be found here: <https://github.com/grafana/t
2828

2929
### Managing Grafana OnCall
3030

31-
{{ tffile "examples/provider/provider-oncall.tf" }}
31+
{{ tffile "examples/provider/provider-oncall-sa.tf" }}
3232

33-
Alternatively, you can also configure the provider block by setting `url`
34-
to your Grafana URL and `auth` to a service account token:
33+
Alternatively, you can also configure the provider block by setting
34+
an specific `oncall_access_token` instead, that you can create in the web UI:
3535

36-
{{ tffile "examples/provider/provider-oncall-sa.tf" }}
36+
{{ tffile "examples/provider/provider-oncall.tf" }}
3737

3838
{{ .SchemaMarkdown | trimspace }}
3939

0 commit comments

Comments
 (0)