You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gets information about Scaleway Cockpit's Grafana instance for a specific project.
9
+
10
+
This data source provides the Grafana URL and project details. Authentication is managed through [Scaleway IAM (Identity and Access Management)](https://www.scaleway.com/en/docs/identity-and-access-management/iam/).
11
+
12
+
Refer to Cockpit's [product documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/) and [API documentation](https://www.scaleway.com/en/developers/api/cockpit/regional-api) for more information.
13
+
14
+
## Example Usage
15
+
16
+
### Basic usage
17
+
18
+
```terraform
19
+
data "scaleway_cockpit_grafana" "main" {
20
+
project_id = scaleway_account_project.project.id
21
+
}
22
+
23
+
output "grafana_url" {
24
+
value = data.scaleway_cockpit_grafana.main.grafana_url
25
+
description = "Access Grafana using your Scaleway IAM credentials"
26
+
}
27
+
```
28
+
29
+
### Using with default project
30
+
31
+
```terraform
32
+
# Uses the default project from provider configuration
33
+
data "scaleway_cockpit_grafana" "main" {}
34
+
35
+
output "grafana_url" {
36
+
value = data.scaleway_cockpit_grafana.main.grafana_url
description = "Use your Scaleway IAM credentials to authenticate"
61
+
}
62
+
```
63
+
64
+
## Argument Reference
65
+
66
+
-`project_id` - (Optional) The ID of the project the Grafana instance is associated with. If not provided, the default project configured in the provider is used.
67
+
68
+
## Attributes Reference
69
+
70
+
In addition to all arguments above, the following attributes are exported:
71
+
72
+
-`id` - The ID of the project (same as `project_id`).
73
+
-`grafana_url` - The URL to access the Grafana dashboard. Use your Scaleway IAM credentials to authenticate.
74
+
75
+
## Authentication
76
+
77
+
To access Grafana, use your Scaleway IAM credentials:
78
+
79
+
1. Navigate to the `grafana_url` provided by this data source
80
+
2. Sign in using your Scaleway account (IAM authentication)
81
+
3. Your access level is determined by your IAM permissions on the project
82
+
83
+
For more information about IAM authentication, see the [Scaleway IAM documentation](https://www.scaleway.com/en/docs/identity-and-access-management/iam/).
To retrieve the deprecated `grafana_url`, you must create a Grafana user. Creating the user will trigger the creation of the Grafana instance:
114
+
~> **Note:** The `scaleway_cockpit_grafana_user` resource is deprecated and will be removed on January 1st, 2026. Grafana authentication is now managed through Scaleway IAM.
115
+
116
+
To retrieve the Grafana URL, use the `scaleway_cockpit_grafana` data source. Authentication is handled via your Scaleway IAM credentials:
~> **Note:** The `scaleway_cockpit_grafana_user` resource is deprecated. Grafana authentication is now handled via Scaleway IAM, and no import is needed for the data source.
-`scaleway_cockpit_grafana` data source for accessing Grafana (authentication via IAM)
13
13
14
14
For detailed migration instructions, see the [Cockpit Migration Guide](../guides/migration_guide_cockpit_plan.md).
15
15
@@ -20,7 +20,7 @@ If you have created customized dashboards with data for your Scaleway resources
20
20
-> **Note:**
21
21
From January 1st 2025, Cockpit plans have been deprecated. You can now edit the retention period for all your datasources (metrics, logs, and traces) separately. Refer to our product documentation for more information on [possible retention values](https://www.scaleway.com/en/docs/cockpit/concepts/#retention) and [pricing](https://www.scaleway.com/en/docs/cockpit/faq/#how-am-i-billed-for-increasing-data-retention-period).
22
22
23
-
Please note that even if you provide the grafana_url, it will only be active if a [Grafana user](../resources/cockpit_grafana_user.md)is created first. Make sure to create a Grafana user in your Cockpit instance to enable full access to Grafana.
23
+
~> **Note:** The `scaleway_cockpit_grafana_user` resource is deprecated. Use the [`scaleway_cockpit_grafana` data source](../data-sources/cockpit_grafana.md) to retrieve the Grafana URL and authenticate using your Scaleway IAM credentials.
24
24
25
25
The `scaleway_cockpit` resource allows you to create and manage Scaleway Cockpit instances.
~> **Deprecated:** This resource is deprecated and will be removed on **January 1st, 2026**.
9
+
10
+
~> **Migration Guide:** Grafana authentication is now managed through [Scaleway IAM (Identity and Access Management)](https://www.scaleway.com/en/docs/identity-and-access-management/iam/). To access your Grafana instance, use the [`scaleway_cockpit_grafana` data source](../data-sources/cockpit_grafana.md) to retrieve the Grafana URL and authenticate using your Scaleway IAM credentials.
11
+
8
12
The `scaleway_cockpit_grafana_user` resource allows you to create and manage [Grafana users](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#grafana-users) in Scaleway Cockpit.
9
13
10
14
Refer to Cockpit's [product documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/) and [API documentation](https://www.scaleway.com/en/developers/api/cockpit/regional-api) for more information.
11
15
12
16
## Example Usage
13
17
14
-
### Create a Grafana user
18
+
### Migration to IAM Authentication
19
+
20
+
Instead of managing Grafana users, retrieve your Grafana URL using the data source:
Copy file name to clipboardExpand all lines: docs/resources/instance_volume.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,9 @@ The following arguments are supported:
24
24
25
25
-`type` - (Required) The type of the volume. The possible values are: `l_ssd` (Local SSD), `scratch` (Local Scratch SSD).
26
26
-`size_in_gb` - (Optional) The size of the volume. Only one of `size_in_gb` and `from_snapshot_id` should be specified.
27
+
28
+
~> **Important:** It is not possible to resize local and scratch volumes. Updates to this field will recreate the resource.
29
+
27
30
-`from_snapshot_id` - (Optional) If set, the new volume will be created from this snapshot. Only one of `size_in_gb` and `from_snapshot_id` should be specified.
28
31
-`name` - (Optional) The name of the volume. If not provided it will be randomly generated.
29
32
-`zone` - (Defaults to [provider](../index.md#zone)`zone`) The [zone](../guides/regions_and_zones.md#zones) in which the volume should be created.
DeprecationMessage: "The scaleway_cockpit resource is deprecated and will be removed after January 1st, 2025. Use the new specialized resources instead: scaleway_cockpit_source, scaleway_cockpit_alert_manager, and scaleway_cockpit_grafana_user.",
93
+
DeprecationMessage: "The scaleway_cockpit resource is deprecated and will be removed after January 1st, 2025. Use the new specialized resources instead: scaleway_cockpit_source and scaleway_cockpit_alert_manager. For Grafana access, use the scaleway_cockpit_grafana data source with IAM authentication (the scaleway_cockpit_grafana_user resource is also deprecated).",
0 commit comments