Skip to content

Commit

Permalink
Updated dynatrace_k8s_monitoring resource
Browse files Browse the repository at this point in the history
  • Loading branch information
kishikawa12 committed Nov 5, 2024
1 parent 3aeada5 commit 8e852a6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 17 deletions.
15 changes: 1 addition & 14 deletions dynatrace/api/builtin/cloud/kubernetes/monitoring/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,19 +125,6 @@
"modificationPolicy": "DEFAULT",
"nullable": false,
"type": "boolean"
},
"pvcMonitoringEnabled": {
"default": false,
"description": "This toggle will be removed in a future version. The persistent volume claim monitoring is now builtin and independent of this toggle. See [this community guide](https://dt-url.net/v2200u4m) for details.",
"displayName": "Monitor persistent volume claims",
"documentation": "The persistent volume claims feature is based on custom metrics and is, therefore, subject to licensing.\n\nIf you have DPS licensing see [licensing documentation](https://dt-url.net/nd0348b) for details.\n\nIf you have non-DPS licensing see [DDUs for custom metrics](https://dt-url.net/k8smcc) for details.",
"maxObjects": 1,
"metadata": {
"minActiveGateVersion": "1.239"
},
"modificationPolicy": "DEFAULT",
"nullable": false,
"type": "boolean"
}
},
"schemaGroups": [
Expand Down Expand Up @@ -221,5 +208,5 @@
"versionInfo": ""
}
},
"version": "1.0.1"
"version": "1.0.2"
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/dynatrace-oss/terraform-provider-dynatrace/dynatrace/settings/services/settings20"
)

const SchemaVersion = "1.0.1"
const SchemaVersion = "1.0.2"
const SchemaID = "builtin:cloud.kubernetes.monitoring"

func Service(credentials *settings.Credentials) settings.CRUDService[*monitoring.Settings] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ func (me *Settings) Schema() map[string]*schema.Schema {
"pvc_monitoring_enabled": {
Type: schema.TypeBool,
Description: "To enable dashboards and alerts, add the [Kubernetes persistent volume claims](ui/hub/ext/com.dynatrace.extension.kubernetes-pvc) extension to your environment.",
Required: true,
Optional: true,
Deprecated: "This attribute is deprecated, see [this community guide](https://dt-url.net/v2200u4m) for details.",
},
"scope": {
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ resource "dynatrace_k8s_monitoring" "#name#" {
include_all_fdi_events = true
open_metrics_builtin_enabled = false
open_metrics_pipeline_enabled = true
pvc_monitoring_enabled = true
scope = "KUBERNETES_CLUSTER-1234567890000000"
event_patterns {
event_pattern {
Expand Down

0 comments on commit 8e852a6

Please sign in to comment.