feat(observability): add logs and traces retentions days (#1032)

* feat(observability): add logs and traces retentions days

* feat(observability): add inputs to acceptance test

* feat(observability): add inputs to example

* feat(observability): fix docs

* feat(observability): fix ModifyPlan checks after review

* feat(observability): fix acceptance test max values

* feat(observability): fix lint issues

* feat(observability): apply suggestion
This commit is contained in:
mitterle-sit 2025-10-29 14:45:39 +01:00 committed by GitHub
parent e4e2e55e94
commit 10eced46c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 366 additions and 5 deletions

View file

@ -42,6 +42,7 @@ data "stackit_observability_instance" "example" {
- `jaeger_traces_url` (String)
- `jaeger_ui_url` (String)
- `logs_push_url` (String) Specifies URL for pushing logs.
- `logs_retention_days` (Number) Specifies for how many days the logs are kept. Default is set to `7`.
- `logs_url` (String) Specifies Logs URL.
- `metrics_push_url` (String) Specifies URL for pushing metrics.
- `metrics_retention_days` (Number) Specifies for how many days the raw metrics are kept. Default is set to `90`.
@ -54,6 +55,7 @@ data "stackit_observability_instance" "example" {
- `plan_id` (String) The Observability plan ID.
- `plan_name` (String) Specifies the Observability plan. E.g. `Observability-Monitoring-Medium-EU01`.
- `targets_url` (String) Specifies Targets URL.
- `traces_retention_days` (Number) Specifies for how many days the traces are kept. Default is set to `7`.
- `zipkin_spans_url` (String)
<a id="nestedatt--alert_config"></a>

View file

@ -16,8 +16,10 @@ Observability instance resource schema. Must have a `region` specified in the pr
resource "stackit_observability_instance" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example-instance"
plan_name = "Observability-Monitoring-Medium-EU01"
plan_name = "Observability-Starter-EU01"
acl = ["1.1.1.1/32", "2.2.2.2/32"]
logs_retention_days = 30
traces_retention_days = 30
metrics_retention_days = 90
metrics_retention_days_5m_downsampling = 90
metrics_retention_days_1h_downsampling = 90
@ -43,10 +45,12 @@ import {
- `acl` (Set of String) The access control list for this instance. Each entry is an IP address range that is permitted to access, in CIDR notation.
- `alert_config` (Attributes) Alert configuration for the instance. (see [below for nested schema](#nestedatt--alert_config))
- `logs_retention_days` (Number) Specifies for how many days the logs are kept. Default is set to `7`.
- `metrics_retention_days` (Number) Specifies for how many days the raw metrics are kept. Default is set to `90`.
- `metrics_retention_days_1h_downsampling` (Number) Specifies for how many days the 1h downsampled metrics are kept. must be less than the value of the 5m downsampling retention. Default is set to `90`.
- `metrics_retention_days_5m_downsampling` (Number) Specifies for how many days the 5m downsampled metrics are kept. must be less than the value of the general retention. Default is set to `90`.
- `parameters` (Map of String) Additional parameters.
- `traces_retention_days` (Number) Specifies for how many days the traces are kept. Default is set to `7`.
### Read-Only