Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
Description
The Cockpit API provides GetUsageOverview (`RegionalAPI.GetUsageOverview`), returning ingested volume per category (Scaleway vs external metrics/logs/traces) for a project and optional interval.
Exposing this as a Terraform data source enables dashboards, cost estimation modules, and validation without calling the API outside Terraform.
New or Affected Resource(s)
- New data source: `scaleway_cockpit_usage_overview`
Potential Terraform Configuration
data "scaleway_cockpit_usage_overview" "main" {
region = "fr-par"
project_id = var.project_id
interval = "168h" # optional, maps to SDK duration if supported
}
output "external_metrics_quantity" {
value = data.scaleway_cockpit_usage_overview.main.external_metrics_usage.quantity_over_interval
}
References
Community Note
Description
The Cockpit API provides GetUsageOverview (`RegionalAPI.GetUsageOverview`), returning ingested volume per category (Scaleway vs external metrics/logs/traces) for a project and optional interval.
Exposing this as a Terraform data source enables dashboards, cost estimation modules, and validation without calling the API outside Terraform.
New or Affected Resource(s)
Potential Terraform Configuration
References