diff --git a/docs/data-sources/cloud_stack.md b/docs/data-sources/cloud_stack.md index 69e6f007f..1efa8e26b 100644 --- a/docs/data-sources/cloud_stack.md +++ b/docs/data-sources/cloud_stack.md @@ -45,7 +45,7 @@ available at “https://.grafana.net". - `graphite_url` (String) - `graphite_user_id` (Number) - `id` (String) The stack id assigned to this stack by Grafana. -- `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. +- `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. - `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. - `logs_name` (String) - `logs_status` (String) @@ -55,7 +55,7 @@ available at “https://.grafana.net". - `org_id` (Number) Organization id to assign to this stack. - `org_name` (String) Organization name to assign to this stack. - `org_slug` (String) Organization slug to assign to this stack. -- `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. +- `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. - `profiles_name` (String) - `profiles_status` (String) - `profiles_url` (String) diff --git a/docs/resources/cloud_stack.md b/docs/resources/cloud_stack.md index 439f11616..ab0072b96 100644 --- a/docs/resources/cloud_stack.md +++ b/docs/resources/cloud_stack.md @@ -57,7 +57,7 @@ resource "grafana_cloud_stack" "test" { - `graphite_url` (String) - `graphite_user_id` (Number) - `id` (String) The stack id assigned to this stack by Grafana. -- `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. +- `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. - `logs_name` (String) - `logs_status` (String) - `logs_url` (String) @@ -65,7 +65,7 @@ resource "grafana_cloud_stack" "test" { - `org_id` (Number) Organization id to assign to this stack. - `org_name` (String) Organization name to assign to this stack. - `org_slug` (String) Organization slug to assign to this stack. -- `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. +- `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. - `profiles_name` (String) - `profiles_status` (String) - `profiles_url` (String) diff --git a/internal/resources/cloud/resource_cloud_stack.go b/internal/resources/cloud/resource_cloud_stack.go index 14e24749a..7acef49d7 100644 --- a/internal/resources/cloud/resource_cloud_stack.go +++ b/internal/resources/cloud/resource_cloud_stack.go @@ -178,8 +178,8 @@ Required access policy scopes: "graphite_status": common.ComputedString(), // Connections - "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."), - "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."), + "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."), + "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."), }, CustomizeDiff: customdiff.All( customdiff.ComputedIf("url", func(_ context.Context, diff *schema.ResourceDiff, meta interface{}) bool {