"Migrating from Monaco to Terraform for management zone: CD_dpm"
parent
3fee636dd9
commit
99b36bda1c
|
|
@ -0,0 +1,38 @@
|
||||||
|
# DEFINE dynatrace_alerting.CD_dpm_PROD.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACQwNWMyMTY0Yi04ZjZjLTNkNzUtYjQ1OS01OGIzZjk5ZDNkNjm-71TeFdrerQ
|
||||||
|
data "dynatrace_management_zone" "CD_dpm_PROD"{ name="CD_dpm" }
|
||||||
|
resource "dynatrace_alerting" "CD_dpm_PROD" {
|
||||||
|
name = "CD_dpm PROD"
|
||||||
|
management_zone = data.dynatrace_management_zone.CD_dpm_PROD.id
|
||||||
|
rules {
|
||||||
|
rule {
|
||||||
|
delay_in_minutes = 0
|
||||||
|
include_mode = "INCLUDE_ALL"
|
||||||
|
severity_level = "AVAILABILITY"
|
||||||
|
tags = [ "Environment:PROD" ]
|
||||||
|
}
|
||||||
|
rule {
|
||||||
|
delay_in_minutes = 10
|
||||||
|
include_mode = "INCLUDE_ALL"
|
||||||
|
severity_level = "CUSTOM_ALERT"
|
||||||
|
tags = [ "Environment:PROD" ]
|
||||||
|
}
|
||||||
|
rule {
|
||||||
|
delay_in_minutes = 10
|
||||||
|
include_mode = "INCLUDE_ALL"
|
||||||
|
severity_level = "ERRORS"
|
||||||
|
tags = [ "Environment:PROD" ]
|
||||||
|
}
|
||||||
|
rule {
|
||||||
|
delay_in_minutes = 30
|
||||||
|
include_mode = "INCLUDE_ALL"
|
||||||
|
severity_level = "PERFORMANCE"
|
||||||
|
tags = [ "Environment:PROD" ]
|
||||||
|
}
|
||||||
|
rule {
|
||||||
|
delay_in_minutes = 30
|
||||||
|
include_mode = "INCLUDE_ALL"
|
||||||
|
severity_level = "RESOURCE_CONTENTION"
|
||||||
|
tags = [ "Environment:PROD" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,287 @@
|
||||||
|
# DEFINE dynatrace_dashboard.CD_DPM_E2E.id = 91891f43-c185-431a-9a00-e27bf77a7c23
|
||||||
|
data "dynatrace_management_zone" "CD_DPM_E2E"{ name="CD_discover-bmw-composite-service" }
|
||||||
|
resource "dynatrace_dashboard" "CD_DPM_E2E" {
|
||||||
|
dashboard_metadata {
|
||||||
|
name = "CD_DPM_E2E"
|
||||||
|
owner = "daniel.leopold@partner.bmw.de"
|
||||||
|
# preset = false
|
||||||
|
shared = true
|
||||||
|
tags = [ "PERSDPM", "CD_DPP_DPM", "CD_DPM" ]
|
||||||
|
unknowns = jsonencode({
|
||||||
|
"popularity": 1
|
||||||
|
})
|
||||||
|
}
|
||||||
|
tile {
|
||||||
|
name = "Custom chart"
|
||||||
|
configured = true
|
||||||
|
tile_type = "CUSTOM_CHARTING"
|
||||||
|
unknowns = jsonencode({
|
||||||
|
"isAutoRefreshDisabled": false
|
||||||
|
})
|
||||||
|
bounds {
|
||||||
|
height = 304
|
||||||
|
left = 38
|
||||||
|
top = 342
|
||||||
|
width = 304
|
||||||
|
}
|
||||||
|
filter_config {
|
||||||
|
type = "MIXED"
|
||||||
|
custom_name = "Failure rate (HTTP 4xx/5xx errors)"
|
||||||
|
default_name = "Custom chart"
|
||||||
|
chart_config {
|
||||||
|
type = "TIMESERIES"
|
||||||
|
legend = true
|
||||||
|
result_metadata {
|
||||||
|
config {
|
||||||
|
custom_color = "#ef651f"
|
||||||
|
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
|
||||||
|
last_modified = 1595276148986
|
||||||
|
}
|
||||||
|
}
|
||||||
|
series {
|
||||||
|
type = "BAR"
|
||||||
|
aggregation = "AVG"
|
||||||
|
aggregation_rate = "TOTAL"
|
||||||
|
entity_type = "SERVICE"
|
||||||
|
metric = "builtin:service.errors.fourxx.rate"
|
||||||
|
# sort_ascending = false
|
||||||
|
# sort_column = false
|
||||||
|
dimension {
|
||||||
|
name = "dt.entity.service"
|
||||||
|
entity_dimension = true
|
||||||
|
id = "0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
series {
|
||||||
|
type = "BAR"
|
||||||
|
aggregation = "AVG"
|
||||||
|
aggregation_rate = "TOTAL"
|
||||||
|
entity_type = "SERVICE"
|
||||||
|
metric = "builtin:service.errors.fivexx.rate"
|
||||||
|
# sort_ascending = false
|
||||||
|
sort_column = true
|
||||||
|
dimension {
|
||||||
|
name = "dt.entity.service"
|
||||||
|
entity_dimension = true
|
||||||
|
id = "0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
filters {
|
||||||
|
filter {
|
||||||
|
entity_type = "SERVICE"
|
||||||
|
match {
|
||||||
|
key = "AUTO_TAGS"
|
||||||
|
values = [ "Environment:E2E", "Component:DPM" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tile {
|
||||||
|
name = "Problems"
|
||||||
|
configured = true
|
||||||
|
tile_type = "OPEN_PROBLEMS"
|
||||||
|
unknowns = jsonencode({
|
||||||
|
"isAutoRefreshDisabled": false
|
||||||
|
})
|
||||||
|
bounds {
|
||||||
|
height = 152
|
||||||
|
left = 950
|
||||||
|
top = 342
|
||||||
|
width = 152
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tile {
|
||||||
|
name = "Markdown"
|
||||||
|
configured = true
|
||||||
|
markdown = "Response time (line, left axis), number of requests (blue bars, right axis) and number of errors (red bars, right axis)."
|
||||||
|
tile_type = "MARKDOWN"
|
||||||
|
unknowns = jsonencode({
|
||||||
|
"isAutoRefreshDisabled": false
|
||||||
|
})
|
||||||
|
bounds {
|
||||||
|
height = 304
|
||||||
|
left = 1254
|
||||||
|
top = 38
|
||||||
|
width = 152
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tile {
|
||||||
|
name = "Custom chart"
|
||||||
|
configured = true
|
||||||
|
tile_type = "CUSTOM_CHARTING"
|
||||||
|
unknowns = jsonencode({
|
||||||
|
"isAutoRefreshDisabled": false
|
||||||
|
})
|
||||||
|
bounds {
|
||||||
|
height = 304
|
||||||
|
left = 38
|
||||||
|
top = 38
|
||||||
|
width = 1216
|
||||||
|
}
|
||||||
|
filter_config {
|
||||||
|
type = "MIXED"
|
||||||
|
custom_name = "Response time, Throughput and Number of Errors"
|
||||||
|
default_name = "Custom chart"
|
||||||
|
chart_config {
|
||||||
|
type = "TIMESERIES"
|
||||||
|
legend = true
|
||||||
|
result_metadata {
|
||||||
|
config {
|
||||||
|
custom_color = "#008cdb"
|
||||||
|
key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE"
|
||||||
|
last_modified = 1595275720776
|
||||||
|
}
|
||||||
|
config {
|
||||||
|
custom_color = "#b4e5f9"
|
||||||
|
key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE"
|
||||||
|
last_modified = 1595275686773
|
||||||
|
}
|
||||||
|
config {
|
||||||
|
custom_color = "#ef651f"
|
||||||
|
key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE"
|
||||||
|
last_modified = 1595275955999
|
||||||
|
}
|
||||||
|
}
|
||||||
|
series {
|
||||||
|
type = "LINE"
|
||||||
|
aggregation = "AVG"
|
||||||
|
aggregation_rate = "TOTAL"
|
||||||
|
entity_type = "SERVICE"
|
||||||
|
metric = "builtin:service.response.time"
|
||||||
|
# sort_ascending = false
|
||||||
|
# sort_column = false
|
||||||
|
dimension {
|
||||||
|
name = "dt.entity.service"
|
||||||
|
entity_dimension = true
|
||||||
|
id = "0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
series {
|
||||||
|
type = "BAR"
|
||||||
|
aggregation = "NONE"
|
||||||
|
aggregation_rate = "TOTAL"
|
||||||
|
entity_type = "SERVICE"
|
||||||
|
metric = "builtin:service.requestCount.total"
|
||||||
|
# sort_ascending = false
|
||||||
|
# sort_column = false
|
||||||
|
dimension {
|
||||||
|
name = "dt.entity.service"
|
||||||
|
entity_dimension = true
|
||||||
|
id = "0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
series {
|
||||||
|
type = "BAR"
|
||||||
|
aggregation = "NONE"
|
||||||
|
aggregation_rate = "TOTAL"
|
||||||
|
entity_type = "SERVICE"
|
||||||
|
metric = "builtin:service.errors.total.count"
|
||||||
|
# sort_ascending = false
|
||||||
|
sort_column = true
|
||||||
|
dimension {
|
||||||
|
name = "dt.entity.service"
|
||||||
|
entity_dimension = true
|
||||||
|
id = "0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
filters {
|
||||||
|
filter {
|
||||||
|
entity_type = "SERVICE"
|
||||||
|
match {
|
||||||
|
key = "AUTO_TAGS"
|
||||||
|
values = [ "Component:DPM" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tile {
|
||||||
|
name = ""
|
||||||
|
chart_visible = true
|
||||||
|
configured = true
|
||||||
|
tile_type = "SERVICES"
|
||||||
|
unknowns = jsonencode({
|
||||||
|
"isAutoRefreshDisabled": false
|
||||||
|
})
|
||||||
|
bounds {
|
||||||
|
height = 304
|
||||||
|
left = 342
|
||||||
|
top = 342
|
||||||
|
width = 304
|
||||||
|
}
|
||||||
|
filter_config {
|
||||||
|
type = "SERVICE"
|
||||||
|
custom_name = "Services - DPM"
|
||||||
|
default_name = "Services - DPM"
|
||||||
|
chart_config {
|
||||||
|
type = "TIMESERIES"
|
||||||
|
legend = true
|
||||||
|
}
|
||||||
|
filters {
|
||||||
|
filter {
|
||||||
|
entity_type = "SERVICE"
|
||||||
|
match {
|
||||||
|
key = "AUTO_TAGS"
|
||||||
|
values = [ "Environment:E2E" ]
|
||||||
|
}
|
||||||
|
match {
|
||||||
|
key = "NAME"
|
||||||
|
values = [ "DPM" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tile {
|
||||||
|
name = ""
|
||||||
|
chart_visible = true
|
||||||
|
configured = true
|
||||||
|
tile_type = "DATABASES_OVERVIEW"
|
||||||
|
unknowns = jsonencode({
|
||||||
|
"isAutoRefreshDisabled": false
|
||||||
|
})
|
||||||
|
bounds {
|
||||||
|
height = 304
|
||||||
|
left = 646
|
||||||
|
top = 342
|
||||||
|
width = 304
|
||||||
|
}
|
||||||
|
filter_config {
|
||||||
|
type = "DATABASE"
|
||||||
|
custom_name = "Databases"
|
||||||
|
default_name = "Databases"
|
||||||
|
chart_config {
|
||||||
|
type = "TIMESERIES"
|
||||||
|
legend = true
|
||||||
|
}
|
||||||
|
filters {
|
||||||
|
filter {
|
||||||
|
entity_type = "DATABASE"
|
||||||
|
match {
|
||||||
|
key = "AUTO_TAGS"
|
||||||
|
values = [ "Environment:E2E" ]
|
||||||
|
}
|
||||||
|
match {
|
||||||
|
key = "NAME"
|
||||||
|
values = [ "dpm" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# DEFINE dynatrace_dashboard_sharing.CD_DPM_E2E.id = 91891f43-c185-431a-9a00-e27bf77a7c23
|
||||||
|
resource "dynatrace_dashboard_sharing" "CD_DPM_E2E" {
|
||||||
|
enabled = true
|
||||||
|
dashboard_id = dynatrace_dashboard.CD_DPM_E2E.id
|
||||||
|
# preset = false
|
||||||
|
permissions {
|
||||||
|
permission {
|
||||||
|
type = "ALL"
|
||||||
|
level = "VIEW"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,281 @@
|
||||||
|
# DEFINE dynatrace_dashboard.CD_DPM_PROD.id = 9107ddc6-52f8-4a0e-b31b-3159996fd947
|
||||||
|
data "dynatrace_management_zone" "CD_DPM_PROD"{ name="CD_dpm" }
|
||||||
|
resource "dynatrace_dashboard" "CD_DPM_PROD" {
|
||||||
|
dashboard_metadata {
|
||||||
|
name = "CD_DPM_PROD"
|
||||||
|
owner = "daniel.leopold@partner.bmw.de"
|
||||||
|
preset = true
|
||||||
|
shared = true
|
||||||
|
tags = [ "PERSDPM", "CD_DPM", "CD_DPP_DPM" ]
|
||||||
|
unknowns = jsonencode({
|
||||||
|
"popularity": 1
|
||||||
|
})
|
||||||
|
filter {
|
||||||
|
management_zone {
|
||||||
|
name = "CD_dpm"
|
||||||
|
id = data.dynatrace_management_zone.CD_DPM_PROD.id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tile {
|
||||||
|
name = "Custom chart"
|
||||||
|
configured = true
|
||||||
|
tile_type = "CUSTOM_CHARTING"
|
||||||
|
unknowns = jsonencode({
|
||||||
|
"isAutoRefreshDisabled": false
|
||||||
|
})
|
||||||
|
bounds {
|
||||||
|
height = 304
|
||||||
|
left = 38
|
||||||
|
top = 342
|
||||||
|
width = 304
|
||||||
|
}
|
||||||
|
filter_config {
|
||||||
|
type = "MIXED"
|
||||||
|
custom_name = "Failure rate (HTTP 4xx/5xx errors)"
|
||||||
|
default_name = "Custom chart"
|
||||||
|
chart_config {
|
||||||
|
type = "TIMESERIES"
|
||||||
|
legend = true
|
||||||
|
result_metadata {
|
||||||
|
config {
|
||||||
|
custom_color = "#ef651f"
|
||||||
|
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
|
||||||
|
last_modified = 1595276148986
|
||||||
|
}
|
||||||
|
}
|
||||||
|
series {
|
||||||
|
type = "BAR"
|
||||||
|
aggregation = "AVG"
|
||||||
|
aggregation_rate = "TOTAL"
|
||||||
|
entity_type = "SERVICE"
|
||||||
|
metric = "builtin:service.errors.fourxx.rate"
|
||||||
|
# sort_ascending = false
|
||||||
|
# sort_column = false
|
||||||
|
dimension {
|
||||||
|
name = "dt.entity.service"
|
||||||
|
entity_dimension = true
|
||||||
|
id = "0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
series {
|
||||||
|
type = "BAR"
|
||||||
|
aggregation = "AVG"
|
||||||
|
aggregation_rate = "TOTAL"
|
||||||
|
entity_type = "SERVICE"
|
||||||
|
metric = "builtin:service.errors.fivexx.rate"
|
||||||
|
# sort_ascending = false
|
||||||
|
sort_column = true
|
||||||
|
dimension {
|
||||||
|
name = "dt.entity.service"
|
||||||
|
entity_dimension = true
|
||||||
|
id = "0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
filters {
|
||||||
|
filter {
|
||||||
|
entity_type = "SERVICE"
|
||||||
|
match {
|
||||||
|
key = "AUTO_TAGS"
|
||||||
|
values = [ "Environment:PROD" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tile {
|
||||||
|
name = "Problems"
|
||||||
|
configured = true
|
||||||
|
tile_type = "OPEN_PROBLEMS"
|
||||||
|
unknowns = jsonencode({
|
||||||
|
"isAutoRefreshDisabled": false
|
||||||
|
})
|
||||||
|
bounds {
|
||||||
|
height = 152
|
||||||
|
left = 950
|
||||||
|
top = 342
|
||||||
|
width = 152
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tile {
|
||||||
|
name = "Markdown"
|
||||||
|
configured = true
|
||||||
|
markdown = "Response time (line, left axis), number of requests (blue bars, right axis) and number of errors (red bars, right axis)."
|
||||||
|
tile_type = "MARKDOWN"
|
||||||
|
unknowns = jsonencode({
|
||||||
|
"isAutoRefreshDisabled": false
|
||||||
|
})
|
||||||
|
bounds {
|
||||||
|
height = 304
|
||||||
|
left = 1254
|
||||||
|
top = 38
|
||||||
|
width = 152
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tile {
|
||||||
|
name = "Custom chart"
|
||||||
|
configured = true
|
||||||
|
tile_type = "CUSTOM_CHARTING"
|
||||||
|
unknowns = jsonencode({
|
||||||
|
"isAutoRefreshDisabled": false
|
||||||
|
})
|
||||||
|
bounds {
|
||||||
|
height = 304
|
||||||
|
left = 38
|
||||||
|
top = 38
|
||||||
|
width = 1216
|
||||||
|
}
|
||||||
|
filter_config {
|
||||||
|
type = "MIXED"
|
||||||
|
custom_name = "Response time, Throughput and Number of Errors"
|
||||||
|
default_name = "Custom chart"
|
||||||
|
chart_config {
|
||||||
|
type = "TIMESERIES"
|
||||||
|
legend = true
|
||||||
|
result_metadata {
|
||||||
|
config {
|
||||||
|
custom_color = "#008cdb"
|
||||||
|
key = "nullbuiltin:service.requestCount.total|NONE|TOTAL|BAR|SERVICE"
|
||||||
|
last_modified = 1595275720776
|
||||||
|
}
|
||||||
|
config {
|
||||||
|
custom_color = "#b4e5f9"
|
||||||
|
key = "nullbuiltin:service.response.time|AVG|TOTAL|LINE|SERVICE"
|
||||||
|
last_modified = 1595275686773
|
||||||
|
}
|
||||||
|
config {
|
||||||
|
custom_color = "#ef651f"
|
||||||
|
key = "nullbuiltin:service.errors.total.count|NONE|TOTAL|BAR|SERVICE"
|
||||||
|
last_modified = 1595275955999
|
||||||
|
}
|
||||||
|
}
|
||||||
|
series {
|
||||||
|
type = "LINE"
|
||||||
|
aggregation = "AVG"
|
||||||
|
aggregation_rate = "TOTAL"
|
||||||
|
entity_type = "SERVICE"
|
||||||
|
metric = "builtin:service.response.time"
|
||||||
|
# sort_ascending = false
|
||||||
|
# sort_column = false
|
||||||
|
dimension {
|
||||||
|
name = "dt.entity.service"
|
||||||
|
entity_dimension = true
|
||||||
|
id = "0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
series {
|
||||||
|
type = "BAR"
|
||||||
|
aggregation = "NONE"
|
||||||
|
aggregation_rate = "TOTAL"
|
||||||
|
entity_type = "SERVICE"
|
||||||
|
metric = "builtin:service.requestCount.total"
|
||||||
|
# sort_ascending = false
|
||||||
|
# sort_column = false
|
||||||
|
dimension {
|
||||||
|
name = "dt.entity.service"
|
||||||
|
entity_dimension = true
|
||||||
|
id = "0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
series {
|
||||||
|
type = "BAR"
|
||||||
|
aggregation = "NONE"
|
||||||
|
aggregation_rate = "TOTAL"
|
||||||
|
entity_type = "SERVICE"
|
||||||
|
metric = "builtin:service.errors.total.count"
|
||||||
|
# sort_ascending = false
|
||||||
|
sort_column = true
|
||||||
|
dimension {
|
||||||
|
name = "dt.entity.service"
|
||||||
|
entity_dimension = true
|
||||||
|
id = "0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
filters {
|
||||||
|
filter {
|
||||||
|
entity_type = "SERVICE"
|
||||||
|
match {
|
||||||
|
key = "AUTO_TAGS"
|
||||||
|
values = [ "Environment:PROD", "Component:DPM" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tile {
|
||||||
|
name = ""
|
||||||
|
chart_visible = true
|
||||||
|
configured = true
|
||||||
|
tile_type = "SERVICES"
|
||||||
|
unknowns = jsonencode({
|
||||||
|
"isAutoRefreshDisabled": false
|
||||||
|
})
|
||||||
|
bounds {
|
||||||
|
height = 304
|
||||||
|
left = 342
|
||||||
|
top = 342
|
||||||
|
width = 304
|
||||||
|
}
|
||||||
|
filter_config {
|
||||||
|
type = "SERVICE"
|
||||||
|
custom_name = "Services - DPM"
|
||||||
|
default_name = "Services - DPM"
|
||||||
|
chart_config {
|
||||||
|
type = "TIMESERIES"
|
||||||
|
legend = true
|
||||||
|
}
|
||||||
|
filters {
|
||||||
|
filter {
|
||||||
|
entity_type = "SERVICE"
|
||||||
|
match {
|
||||||
|
key = "AUTO_TAGS"
|
||||||
|
values = [ "Environment:PROD" ]
|
||||||
|
}
|
||||||
|
match {
|
||||||
|
key = "NAME"
|
||||||
|
values = [ "DPM" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tile {
|
||||||
|
name = ""
|
||||||
|
chart_visible = true
|
||||||
|
configured = true
|
||||||
|
tile_type = "DATABASES_OVERVIEW"
|
||||||
|
unknowns = jsonencode({
|
||||||
|
"isAutoRefreshDisabled": false
|
||||||
|
})
|
||||||
|
bounds {
|
||||||
|
height = 304
|
||||||
|
left = 646
|
||||||
|
top = 342
|
||||||
|
width = 304
|
||||||
|
}
|
||||||
|
filter_config {
|
||||||
|
type = "DATABASE"
|
||||||
|
custom_name = "Databases"
|
||||||
|
default_name = "Databases"
|
||||||
|
chart_config {
|
||||||
|
type = "TIMESERIES"
|
||||||
|
legend = true
|
||||||
|
}
|
||||||
|
filters {
|
||||||
|
filter {
|
||||||
|
entity_type = "DATABASE"
|
||||||
|
match {
|
||||||
|
key = "AUTO_TAGS"
|
||||||
|
values = [ "Environment:PROD" ]
|
||||||
|
}
|
||||||
|
match {
|
||||||
|
key = "NAME"
|
||||||
|
values = [ "dpm" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
# DEFINE dynatrace_management_zone.CD_dpm.id = 3521442346466955677
|
||||||
|
resource "dynatrace_management_zone" "CD_dpm" {
|
||||||
|
name = "CD_dpm"
|
||||||
|
entity_selector_based_rule {
|
||||||
|
enabled = true
|
||||||
|
selector =<<-EOT
|
||||||
|
type(HOST),tag("compass-id:dpm","compass-id:DPM")
|
||||||
|
EOT
|
||||||
|
}
|
||||||
|
entity_selector_based_rule {
|
||||||
|
enabled = true
|
||||||
|
selector =<<-EOT
|
||||||
|
type(Service),tag("compass-id:dpm","compass-id:DPM")
|
||||||
|
EOT
|
||||||
|
}
|
||||||
|
entity_selector_based_rule {
|
||||||
|
enabled = true
|
||||||
|
selector =<<-EOT
|
||||||
|
type(PROCESS_GROUP_INSTANCE),tag("compass-id:dpm","compass-id:DPM")
|
||||||
|
EOT
|
||||||
|
}
|
||||||
|
entity_selector_based_rule {
|
||||||
|
enabled = true
|
||||||
|
selector =<<-EOT
|
||||||
|
type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag("compass-id:dpm","compass-id:DPM"))
|
||||||
|
EOT
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue