Skip to content

Commit 19b535d

Browse files
Cloud stack: Add missing properties to state (#2031)
1 parent d789d6c commit 19b535d

File tree

6 files changed

+198
-11
lines changed

6 files changed

+198
-11
lines changed

docs/data-sources/cloud_stack.md

+23
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ available at “https://<stack_slug>.grafana.net".
3535

3636
### Read-Only
3737

38+
- `alertmanager_ip_allow_list_cname` (String) Comma-separated list of CNAMEs that can be whitelisted to access the Alertmanager instances (Optional)
3839
- `alertmanager_name` (String) Name of the Alertmanager instance configured for this stack.
3940
- `alertmanager_status` (String) Status of the Alertmanager instance configured for this stack.
4041
- `alertmanager_url` (String) Base URL of the Alertmanager instance configured for this stack.
@@ -45,35 +46,57 @@ available at “https://<stack_slug>.grafana.net".
4546
- `fleet_management_status` (String) Status of the Fleet Management instance configured for this stack.
4647
- `fleet_management_url` (String) Base URL of the Fleet Management instance configured for this stack.
4748
- `fleet_management_user_id` (Number) User ID of the Fleet Management instance configured for this stack.
49+
- `grafanas_ip_allow_list_cname` (String) Comma-separated list of CNAMEs that can be whitelisted to access the grafana instance (Optional)
50+
- `graphite_ip_allow_list_cname` (String) Comma-separated list of CNAMEs that can be whitelisted to access the Graphite instance (Optional)
4851
- `graphite_name` (String)
52+
- `graphite_private_connectivity_info_private_dns` (String) Private DNS for Graphite when using AWS PrivateLink (only for AWS stacks)
53+
- `graphite_private_connectivity_info_service_name` (String) Service Name for Graphite when using AWS PrivateLink (only for AWS stacks)
4954
- `graphite_status` (String)
5055
- `graphite_url` (String)
5156
- `graphite_user_id` (Number)
5257
- `id` (String) The stack id assigned to this stack by Grafana.
5358
- `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.
5459
- `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.
60+
- `logs_ip_allow_list_cname` (String) Comma-separated list of CNAMEs that can be whitelisted to access the Logs instance (Optional)
5561
- `logs_name` (String)
62+
- `logs_private_connectivity_info_private_dns` (String) Private DNS for Logs when using AWS PrivateLink (only for AWS stacks)
63+
- `logs_private_connectivity_info_service_name` (String) Service Name for Logs when using AWS PrivateLink (only for AWS stacks)
5664
- `logs_status` (String)
5765
- `logs_url` (String)
5866
- `logs_user_id` (Number)
5967
- `name` (String) Name of stack. Conventionally matches the url of the instance (e.g. `<stack_slug>.grafana.net`).
6068
- `org_id` (Number) Organization id to assign to this stack.
6169
- `org_name` (String) Organization name to assign to this stack.
6270
- `org_slug` (String) Organization slug to assign to this stack.
71+
- `otlp_private_connectivity_info_private_dns` (String) Private DNS for OTLP when using AWS PrivateLink (only for AWS stacks)
72+
- `otlp_private_connectivity_info_service_name` (String) Service Name for OTLP when using AWS PrivateLink (only for AWS stacks)
6373
- `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.
74+
- `pdc_api_private_connectivity_info_private_dns` (String) Private DNS for PDC's API when using AWS PrivateLink (only for AWS stacks)
75+
- `pdc_api_private_connectivity_info_service_name` (String) Service Name for PDC's API when using AWS PrivateLink (only for AWS stacks)
76+
- `pdc_gateway_private_connectivity_info_private_dns` (String) Private DNS for PDC's Gateway when using AWS PrivateLink (only for AWS stacks)
77+
- `pdc_gateway_private_connectivity_info_service_name` (String) Service Name for PDC's Gateway when using AWS PrivateLink (only for AWS stacks)
78+
- `profiles_ip_allow_list_cname` (String) Comma-separated list of CNAMEs that can be whitelisted to access the Profiles instance (Optional)
6479
- `profiles_name` (String)
80+
- `profiles_private_connectivity_info_private_dns` (String) Private DNS for Profiles when using AWS PrivateLink (only for AWS stacks)
81+
- `profiles_private_connectivity_info_service_name` (String) Service Name for Profiles when using AWS PrivateLink (only for AWS stacks)
6582
- `profiles_status` (String)
6683
- `profiles_url` (String)
6784
- `profiles_user_id` (Number)
85+
- `prometheus_ip_allow_list_cname` (String) Comma-separated list of CNAMEs that can be whitelisted to access the Prometheus instance (Optional)
6886
- `prometheus_name` (String) Prometheus name for this instance.
87+
- `prometheus_private_connectivity_info_private_dns` (String) Private DNS for Prometheus when using AWS PrivateLink (only for AWS stacks)
88+
- `prometheus_private_connectivity_info_service_name` (String) Service Name for Prometheus when using AWS PrivateLink (only for AWS stacks)
6989
- `prometheus_remote_endpoint` (String) Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
7090
- `prometheus_remote_write_endpoint` (String) Use this URL to send prometheus metrics to Grafana cloud
7191
- `prometheus_status` (String) Prometheus status for this instance.
7292
- `prometheus_url` (String) Prometheus url for this instance.
7393
- `prometheus_user_id` (Number) Prometheus user ID. Used for e.g. remote_write.
7494
- `region_slug` (String) The region this stack is deployed to.
7595
- `status` (String) Status of the stack.
96+
- `traces_ip_allow_list_cname` (String) Comma-separated list of CNAMEs that can be whitelisted to access the Traces instance (Optional)
7697
- `traces_name` (String)
98+
- `traces_private_connectivity_info_private_dns` (String) Private DNS for Traces when using AWS PrivateLink (only for AWS stacks)
99+
- `traces_private_connectivity_info_service_name` (String) Service Name for Traces when using AWS PrivateLink (only for AWS stacks)
77100
- `traces_status` (String)
78101
- `traces_url` (String) Base URL of the Traces instance configured for this stack. To use this in the Tempo data source in Grafana, append `/tempo` to the URL.
79102
- `traces_user_id` (Number)

docs/resources/cloud_stack.md

+23
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ resource "grafana_cloud_stack" "test" {
4848

4949
### Read-Only
5050

51+
- `alertmanager_ip_allow_list_cname` (String) Comma-separated list of CNAMEs that can be whitelisted to access the Alertmanager instances (Optional)
5152
- `alertmanager_name` (String) Name of the Alertmanager instance configured for this stack.
5253
- `alertmanager_status` (String) Status of the Alertmanager instance configured for this stack.
5354
- `alertmanager_url` (String) Base URL of the Alertmanager instance configured for this stack.
@@ -57,32 +58,54 @@ resource "grafana_cloud_stack" "test" {
5758
- `fleet_management_status` (String) Status of the Fleet Management instance configured for this stack.
5859
- `fleet_management_url` (String) Base URL of the Fleet Management instance configured for this stack.
5960
- `fleet_management_user_id` (Number) User ID of the Fleet Management instance configured for this stack.
61+
- `grafanas_ip_allow_list_cname` (String) Comma-separated list of CNAMEs that can be whitelisted to access the grafana instance (Optional)
62+
- `graphite_ip_allow_list_cname` (String) Comma-separated list of CNAMEs that can be whitelisted to access the Graphite instance (Optional)
6063
- `graphite_name` (String)
64+
- `graphite_private_connectivity_info_private_dns` (String) Private DNS for Graphite when using AWS PrivateLink (only for AWS stacks)
65+
- `graphite_private_connectivity_info_service_name` (String) Service Name for Graphite when using AWS PrivateLink (only for AWS stacks)
6166
- `graphite_status` (String)
6267
- `graphite_url` (String)
6368
- `graphite_user_id` (Number)
6469
- `id` (String) The stack id assigned to this stack by Grafana.
6570
- `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.
71+
- `logs_ip_allow_list_cname` (String) Comma-separated list of CNAMEs that can be whitelisted to access the Logs instance (Optional)
6672
- `logs_name` (String)
73+
- `logs_private_connectivity_info_private_dns` (String) Private DNS for Logs when using AWS PrivateLink (only for AWS stacks)
74+
- `logs_private_connectivity_info_service_name` (String) Service Name for Logs when using AWS PrivateLink (only for AWS stacks)
6775
- `logs_status` (String)
6876
- `logs_url` (String)
6977
- `logs_user_id` (Number)
7078
- `org_id` (Number) Organization id to assign to this stack.
7179
- `org_name` (String) Organization name to assign to this stack.
7280
- `org_slug` (String) Organization slug to assign to this stack.
81+
- `otlp_private_connectivity_info_private_dns` (String) Private DNS for OTLP when using AWS PrivateLink (only for AWS stacks)
82+
- `otlp_private_connectivity_info_service_name` (String) Service Name for OTLP when using AWS PrivateLink (only for AWS stacks)
7383
- `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.
84+
- `pdc_api_private_connectivity_info_private_dns` (String) Private DNS for PDC's API when using AWS PrivateLink (only for AWS stacks)
85+
- `pdc_api_private_connectivity_info_service_name` (String) Service Name for PDC's API when using AWS PrivateLink (only for AWS stacks)
86+
- `pdc_gateway_private_connectivity_info_private_dns` (String) Private DNS for PDC's Gateway when using AWS PrivateLink (only for AWS stacks)
87+
- `pdc_gateway_private_connectivity_info_service_name` (String) Service Name for PDC's Gateway when using AWS PrivateLink (only for AWS stacks)
88+
- `profiles_ip_allow_list_cname` (String) Comma-separated list of CNAMEs that can be whitelisted to access the Profiles instance (Optional)
7489
- `profiles_name` (String)
90+
- `profiles_private_connectivity_info_private_dns` (String) Private DNS for Profiles when using AWS PrivateLink (only for AWS stacks)
91+
- `profiles_private_connectivity_info_service_name` (String) Service Name for Profiles when using AWS PrivateLink (only for AWS stacks)
7592
- `profiles_status` (String)
7693
- `profiles_url` (String)
7794
- `profiles_user_id` (Number)
95+
- `prometheus_ip_allow_list_cname` (String) Comma-separated list of CNAMEs that can be whitelisted to access the Prometheus instance (Optional)
7896
- `prometheus_name` (String) Prometheus name for this instance.
97+
- `prometheus_private_connectivity_info_private_dns` (String) Private DNS for Prometheus when using AWS PrivateLink (only for AWS stacks)
98+
- `prometheus_private_connectivity_info_service_name` (String) Service Name for Prometheus when using AWS PrivateLink (only for AWS stacks)
7999
- `prometheus_remote_endpoint` (String) Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
80100
- `prometheus_remote_write_endpoint` (String) Use this URL to send prometheus metrics to Grafana cloud
81101
- `prometheus_status` (String) Prometheus status for this instance.
82102
- `prometheus_url` (String) Prometheus url for this instance.
83103
- `prometheus_user_id` (Number) Prometheus user ID. Used for e.g. remote_write.
84104
- `status` (String) Status of the stack.
105+
- `traces_ip_allow_list_cname` (String) Comma-separated list of CNAMEs that can be whitelisted to access the Traces instance (Optional)
85106
- `traces_name` (String)
107+
- `traces_private_connectivity_info_private_dns` (String) Private DNS for Traces when using AWS PrivateLink (only for AWS stacks)
108+
- `traces_private_connectivity_info_service_name` (String) Service Name for Traces when using AWS PrivateLink (only for AWS stacks)
86109
- `traces_status` (String)
87110
- `traces_url` (String) Base URL of the Traces instance configured for this stack. To use this in the Tempo data source in Grafana, append `/tempo` to the URL.
88111
- `traces_user_id` (Number)

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
github.com/go-openapi/strfmt v0.23.0
1313
github.com/grafana/amixr-api-go-client v0.0.19 // main branch
1414
github.com/grafana/fleet-management-api v0.1.2
15-
github.com/grafana/grafana-com-public-clients/go/gcom v0.0.0-20240807172819-ac10800522a3
15+
github.com/grafana/grafana-com-public-clients/go/gcom v0.0.0-20250214150112-a52892176c26
1616
github.com/grafana/grafana-openapi-client-go v0.0.0-20241113095943-9cb2bbfeb8a3
1717
github.com/grafana/machine-learning-go-client v0.8.2
1818
github.com/grafana/river v0.3.0

go.sum

+4
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ github.com/grafana/fleet-management-api v0.1.2 h1:ADBRtK7zACm+Qh/0rA0JtxnYrmCldm
145145
github.com/grafana/fleet-management-api v0.1.2/go.mod h1:6iJjhjWhHZ8iwkyuDXFVTuay57JILnE3kaOPk8Nzorw=
146146
github.com/grafana/grafana-com-public-clients/go/gcom v0.0.0-20240807172819-ac10800522a3 h1:CVLTffnWgBGvVaXfUUcSgFrZbiMzvj0/Hpi909zdeG0=
147147
github.com/grafana/grafana-com-public-clients/go/gcom v0.0.0-20240807172819-ac10800522a3/go.mod h1:u9d0BESoKlztYm93CpoRleQjMbYBcZ+JOLHHP2nN6Wg=
148+
github.com/grafana/grafana-com-public-clients/go/gcom v0.0.0-20250214122057-e5d151cc7c72 h1:Se2Az5hscviEq8Zn45zzcGWoNE7iatXfXGuU2Ac08uo=
149+
github.com/grafana/grafana-com-public-clients/go/gcom v0.0.0-20250214122057-e5d151cc7c72/go.mod h1:sYWkB3NhyirQJfy3wtNQ29UYjoHbRlJlYhqN1jNsC5g=
150+
github.com/grafana/grafana-com-public-clients/go/gcom v0.0.0-20250214150112-a52892176c26 h1:7NMB6/x0CcfH/zKQ5D+3Ffb2DbYMJBx0QdJ1GGdw8z4=
151+
github.com/grafana/grafana-com-public-clients/go/gcom v0.0.0-20250214150112-a52892176c26/go.mod h1:sYWkB3NhyirQJfy3wtNQ29UYjoHbRlJlYhqN1jNsC5g=
148152
github.com/grafana/grafana-openapi-client-go v0.0.0-20241113095943-9cb2bbfeb8a3 h1:poKxGlUaEYVp2DMofC/I2GHw/vvtHAZ20c48I8rFB6M=
149153
github.com/grafana/grafana-openapi-client-go v0.0.0-20241113095943-9cb2bbfeb8a3/go.mod h1:hiZnMmXc9KXNUlvkV2BKFsiWuIFF/fF4wGgYWEjBitI=
150154
github.com/grafana/grafana-plugin-sdk-go v0.250.0 h1:9EBucp9jLqMx2b8NTlOXH+4OuQWUh6L85c6EJUN8Jdo=

0 commit comments

Comments
 (0)