Skip to content

Commit cf84efe

Browse files
Stack: Document what the usernames are for Influx and OTLP (#1636)
Got a question about this here: #1358 (comment)
1 parent e04cff0 commit cf84efe

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/data-sources/cloud_stack.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ available at “https://<stack_slug>.grafana.net".
4545
- `graphite_url` (String)
4646
- `graphite_user_id` (Number)
4747
- `id` (String) The stack id assigned to this stack by Grafana.
48-
- `influx_url` (String) Base URL of the InfluxDB instance configured for this stack. See https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-influxdb/push-from-telegraf/ for docs on how to use this.
48+
- `influx_url` (String) Base URL of the InfluxDB instance configured for this stack. The username is the same as the metrics' (`prometheus_user_id` attribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-influxdb/push-from-telegraf/ for docs on how to use this.
4949
- `labels` (Map of String) A map of labels to assign to the stack. Label keys and values must match the following regexp: "^[a-zA-Z0-9/\\-.]+$" and stacks cannot have more than 10 labels.
5050
- `logs_name` (String)
5151
- `logs_status` (String)
@@ -55,7 +55,7 @@ available at “https://<stack_slug>.grafana.net".
5555
- `org_id` (Number) Organization id to assign to this stack.
5656
- `org_name` (String) Organization name to assign to this stack.
5757
- `org_slug` (String) Organization slug to assign to this stack.
58-
- `otlp_url` (String) Base URL of the OTLP instance configured for this stack. See https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ for docs on how to use this.
58+
- `otlp_url` (String) Base URL of the OTLP instance configured for this stack. The username is the stack's ID (`id` attribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ for docs on how to use this.
5959
- `profiles_name` (String)
6060
- `profiles_status` (String)
6161
- `profiles_url` (String)

docs/resources/cloud_stack.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ resource "grafana_cloud_stack" "test" {
5757
- `graphite_url` (String)
5858
- `graphite_user_id` (Number)
5959
- `id` (String) The stack id assigned to this stack by Grafana.
60-
- `influx_url` (String) Base URL of the InfluxDB instance configured for this stack. See https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-influxdb/push-from-telegraf/ for docs on how to use this.
60+
- `influx_url` (String) Base URL of the InfluxDB instance configured for this stack. The username is the same as the metrics' (`prometheus_user_id` attribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-influxdb/push-from-telegraf/ for docs on how to use this.
6161
- `logs_name` (String)
6262
- `logs_status` (String)
6363
- `logs_url` (String)
6464
- `logs_user_id` (Number)
6565
- `org_id` (Number) Organization id to assign to this stack.
6666
- `org_name` (String) Organization name to assign to this stack.
6767
- `org_slug` (String) Organization slug to assign to this stack.
68-
- `otlp_url` (String) Base URL of the OTLP instance configured for this stack. See https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ for docs on how to use this.
68+
- `otlp_url` (String) Base URL of the OTLP instance configured for this stack. The username is the stack's ID (`id` attribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ for docs on how to use this.
6969
- `profiles_name` (String)
7070
- `profiles_status` (String)
7171
- `profiles_url` (String)

internal/resources/cloud/resource_cloud_stack.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ Required access policy scopes:
178178
"graphite_status": common.ComputedString(),
179179

180180
// Connections
181-
"influx_url": common.ComputedStringWithDescription("Base URL of the InfluxDB instance configured for this stack. See https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-influxdb/push-from-telegraf/ for docs on how to use this."),
182-
"otlp_url": common.ComputedStringWithDescription("Base URL of the OTLP instance configured for this stack. See https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ for docs on how to use this."),
181+
"influx_url": common.ComputedStringWithDescription("Base URL of the InfluxDB instance configured for this stack. The username is the same as the metrics' (`prometheus_user_id` attribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-influxdb/push-from-telegraf/ for docs on how to use this."),
182+
"otlp_url": common.ComputedStringWithDescription("Base URL of the OTLP instance configured for this stack. The username is the stack's ID (`id` attribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ for docs on how to use this."),
183183
},
184184
CustomizeDiff: customdiff.All(
185185
customdiff.ComputedIf("url", func(_ context.Context, diff *schema.ResourceDiff, meta interface{}) bool {

0 commit comments

Comments
 (0)