OPMAAS-3480 - Offboarding application CD_ASBS
parent
be4667177f
commit
124fcbd753
|
|
@ -1,38 +0,0 @@
|
||||||
# DEFINE dynatrace_alerting.CD_ASBS_INT.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACRkMmYyN2FhZi0wZTAxLTM0MjAtYWNhZS0xMGVmZjY5NzNjMWK-71TeFdrerQ
|
|
||||||
data "dynatrace_management_zone" "CD_ASBS_INT"{ name="CD_ASBS" }
|
|
||||||
resource "dynatrace_alerting" "CD_ASBS_INT" {
|
|
||||||
name = "CD_ASBS INT"
|
|
||||||
management_zone = data.dynatrace_management_zone.CD_ASBS_INT.id
|
|
||||||
rules {
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 0
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "AVAILABILITY"
|
|
||||||
tags = [ "Component:ASBS", "Environment:INT" ]
|
|
||||||
}
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 10
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "CUSTOM_ALERT"
|
|
||||||
tags = [ "Component:ASBS", "Environment:INT" ]
|
|
||||||
}
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 10
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "ERRORS"
|
|
||||||
tags = [ "Component:ASBS", "Environment:INT" ]
|
|
||||||
}
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 30
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "PERFORMANCE"
|
|
||||||
tags = [ "Component:ASBS", "Environment:INT" ]
|
|
||||||
}
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 30
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "RESOURCE_CONTENTION"
|
|
||||||
tags = [ "Component:ASBS", "Environment:INT" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,294 +0,0 @@
|
||||||
# DEFINE dynatrace_dashboard.CD_ASBS_INT.id = 7c045840-d716-4fc5-b764-7f58c9b1e569
|
|
||||||
data "dynatrace_management_zone" "CD_ASBS_INT"{ name="CD_ASBS" }
|
|
||||||
resource "dynatrace_dashboard" "CD_ASBS_INT" {
|
|
||||||
dashboard_metadata {
|
|
||||||
name = "CD_ASBS INT"
|
|
||||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
|
||||||
preset = true
|
|
||||||
shared = true
|
|
||||||
tags = [ "ASBS" ]
|
|
||||||
filter {
|
|
||||||
timeframe = "-24h to now"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 228
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
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 = "#ff0000"
|
|
||||||
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956393463
|
|
||||||
}
|
|
||||||
config {
|
|
||||||
custom_color = "#fff29a"
|
|
||||||
key = "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956441725
|
|
||||||
}
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fourxx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fivexx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:INT" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Problems"
|
|
||||||
configured = true
|
|
||||||
tile_type = "OPEN_PROBLEMS"
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 950
|
|
||||||
top = 38
|
|
||||||
width = 152
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_INT.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Overall Health"
|
|
||||||
configured = true
|
|
||||||
tile_type = "HEADER"
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 0
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 532
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 570
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "MIXED"
|
|
||||||
custom_name = "Response time, Request Count 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
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.requestCount.total"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.total.count"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:INT" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 190
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "DATABASES_OVERVIEW"
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 646
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
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 = [ "Component:ASBS", "Environment:INT" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "SERVICES"
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 342
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "SERVICE"
|
|
||||||
custom_name = "Services"
|
|
||||||
default_name = "Services"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:INT" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "HOSTS"
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 38
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "HOST"
|
|
||||||
custom_name = "Hosts"
|
|
||||||
default_name = "Hosts"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "HOST"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:INT" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,294 +0,0 @@
|
||||||
# DEFINE dynatrace_dashboard.CD_ASBS_TEST.id = 96b2479a-11ac-4696-b7ee-56eb3b9e8542
|
|
||||||
data "dynatrace_management_zone" "CD_ASBS_TEST"{ name="CD_ASBS" }
|
|
||||||
resource "dynatrace_dashboard" "CD_ASBS_TEST" {
|
|
||||||
dashboard_metadata {
|
|
||||||
name = "CD_ASBS TEST"
|
|
||||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
|
||||||
preset = true
|
|
||||||
shared = true
|
|
||||||
tags = [ "ASBS" ]
|
|
||||||
filter {
|
|
||||||
timeframe = "-24h to now"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 228
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
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 = "#ff0000"
|
|
||||||
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956393463
|
|
||||||
}
|
|
||||||
config {
|
|
||||||
custom_color = "#fff29a"
|
|
||||||
key = "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956441725
|
|
||||||
}
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fourxx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fivexx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:TEST" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Problems"
|
|
||||||
configured = true
|
|
||||||
tile_type = "OPEN_PROBLEMS"
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 950
|
|
||||||
top = 38
|
|
||||||
width = 152
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_TEST.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Overall Health"
|
|
||||||
configured = true
|
|
||||||
tile_type = "HEADER"
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 0
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 532
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 570
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "MIXED"
|
|
||||||
custom_name = "Response time, Request Count 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
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.requestCount.total"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.total.count"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:TEST" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 190
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "DATABASES_OVERVIEW"
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 646
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
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 = [ "Component:ASBS", "Environment:TEST" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "SERVICES"
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 342
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "SERVICE"
|
|
||||||
custom_name = "Services"
|
|
||||||
default_name = "Services"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:TEST" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "HOSTS"
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 38
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "HOST"
|
|
||||||
custom_name = "Hosts"
|
|
||||||
default_name = "Hosts"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "HOST"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:TEST" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,95 +0,0 @@
|
||||||
# DEFINE dynatrace_management_zone.CD_ASBS.id = -4543105294126529935
|
|
||||||
resource "dynatrace_management_zone" "CD_ASBS" {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
rules {
|
|
||||||
type = "CLOUD_APPLICATION"
|
|
||||||
enabled = true
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "CLOUD_APPLICATION_NAME"
|
|
||||||
}
|
|
||||||
string {
|
|
||||||
case_sensitive = true
|
|
||||||
# negate = false
|
|
||||||
operator = "CONTAINS"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "CLOUD_APPLICATION_NAMESPACE"
|
|
||||||
enabled = true
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "CLOUD_APPLICATION_NAMESPACE_NAME"
|
|
||||||
}
|
|
||||||
string {
|
|
||||||
case_sensitive = true
|
|
||||||
# negate = false
|
|
||||||
operator = "CONTAINS"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "HOST"
|
|
||||||
enabled = true
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "HOST_TAGS"
|
|
||||||
}
|
|
||||||
tag {
|
|
||||||
# negate = false
|
|
||||||
operator = "EQUALS"
|
|
||||||
value {
|
|
||||||
context = "CONTEXTLESS"
|
|
||||||
key = "Component"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "PROCESS_GROUP"
|
|
||||||
enabled = true
|
|
||||||
propagation_types = [ "PROCESS_GROUP_TO_HOST" ]
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "PROCESS_GROUP_TAGS"
|
|
||||||
}
|
|
||||||
tag {
|
|
||||||
# negate = false
|
|
||||||
operator = "EQUALS"
|
|
||||||
value {
|
|
||||||
context = "CONTEXTLESS"
|
|
||||||
key = "Component"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "SERVICE"
|
|
||||||
enabled = true
|
|
||||||
propagation_types = [ "SERVICE_TO_HOST_LIKE", "SERVICE_TO_PROCESS_GROUP_LIKE" ]
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "SERVICE_TAGS"
|
|
||||||
}
|
|
||||||
tag {
|
|
||||||
# negate = false
|
|
||||||
operator = "EQUALS"
|
|
||||||
value {
|
|
||||||
context = "CONTEXTLESS"
|
|
||||||
key = "Component"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
||||||
# DEFINE dynatrace_alerting.CD_ASBS_PROD.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACQ1NGQ2N2UzNi1lZDJkLTM5ZjctYTBhNS01YmMyYjRhOWYzNze-71TeFdrerQ
|
|
||||||
data "dynatrace_management_zone" "CD_ASBS_PROD"{ name="CD_ASBS" }
|
|
||||||
resource "dynatrace_alerting" "CD_ASBS_PROD" {
|
|
||||||
name = "CD_ASBS PROD"
|
|
||||||
management_zone = data.dynatrace_management_zone.CD_ASBS_PROD.id
|
|
||||||
rules {
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 0
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "AVAILABILITY"
|
|
||||||
tags = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 10
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "CUSTOM_ALERT"
|
|
||||||
tags = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 10
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "ERRORS"
|
|
||||||
tags = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 30
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "PERFORMANCE"
|
|
||||||
tags = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 30
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "RESOURCE_CONTENTION"
|
|
||||||
tags = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,297 +0,0 @@
|
||||||
# DEFINE dynatrace_dashboard.CD_ASBS_E2E.id = c573dab5-6a1f-4857-a45f-8bab552aea91
|
|
||||||
data "dynatrace_management_zone" "CD_ASBS_E2E"{ name="CD_ASBS" }
|
|
||||||
resource "dynatrace_dashboard" "CD_ASBS_E2E" {
|
|
||||||
dashboard_metadata {
|
|
||||||
name = "CD_ASBS E2E"
|
|
||||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
|
||||||
preset = true
|
|
||||||
shared = true
|
|
||||||
tags = [ "ASBS" ]
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"popularity": 1
|
|
||||||
})
|
|
||||||
filter {
|
|
||||||
timeframe = "-24h to now"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 228
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
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 = "#ff0000"
|
|
||||||
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956393463
|
|
||||||
}
|
|
||||||
config {
|
|
||||||
custom_color = "#fff29a"
|
|
||||||
key = "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956441725
|
|
||||||
}
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fourxx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fivexx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:E2E" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Problems"
|
|
||||||
configured = true
|
|
||||||
tile_type = "OPEN_PROBLEMS"
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 950
|
|
||||||
top = 38
|
|
||||||
width = 152
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_E2E.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Overall Health"
|
|
||||||
configured = true
|
|
||||||
tile_type = "HEADER"
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 0
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 532
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 570
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "MIXED"
|
|
||||||
custom_name = "Response time, Request Count 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
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.requestCount.total"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.total.count"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:E2E" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 190
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "DATABASES_OVERVIEW"
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 646
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
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 = [ "Component:ASBS", "Environment:E2E" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "SERVICES"
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 342
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "SERVICE"
|
|
||||||
custom_name = "Services"
|
|
||||||
default_name = "Services"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:E2E" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "HOSTS"
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 38
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "HOST"
|
|
||||||
custom_name = "Hosts"
|
|
||||||
default_name = "Hosts"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "HOST"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:E2E" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,297 +0,0 @@
|
||||||
# DEFINE dynatrace_dashboard.CD_ASBS_PROD.id = e4fb1e9a-616d-4c00-ab4c-aeafd1892d8a
|
|
||||||
data "dynatrace_management_zone" "CD_ASBS_PROD"{ name="CD_ASBS" }
|
|
||||||
resource "dynatrace_dashboard" "CD_ASBS_PROD" {
|
|
||||||
dashboard_metadata {
|
|
||||||
name = "CD_ASBS PROD"
|
|
||||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
|
||||||
preset = true
|
|
||||||
shared = true
|
|
||||||
tags = [ "ASBS" ]
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"popularity": 1
|
|
||||||
})
|
|
||||||
filter {
|
|
||||||
timeframe = "-24h to now"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 228
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
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 = "#ff0000"
|
|
||||||
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956393463
|
|
||||||
}
|
|
||||||
config {
|
|
||||||
custom_color = "#fff29a"
|
|
||||||
key = "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956441725
|
|
||||||
}
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fourxx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fivexx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Problems"
|
|
||||||
configured = true
|
|
||||||
tile_type = "OPEN_PROBLEMS"
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 950
|
|
||||||
top = 38
|
|
||||||
width = 152
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_PROD.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Overall Health"
|
|
||||||
configured = true
|
|
||||||
tile_type = "HEADER"
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 0
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 532
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 570
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "MIXED"
|
|
||||||
custom_name = "Response time, Request Count 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
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.requestCount.total"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.total.count"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 190
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "DATABASES_OVERVIEW"
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 646
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
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 = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "SERVICES"
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 342
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "SERVICE"
|
|
||||||
custom_name = "Services"
|
|
||||||
default_name = "Services"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "HOSTS"
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 38
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "HOST"
|
|
||||||
custom_name = "Hosts"
|
|
||||||
default_name = "Hosts"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "HOST"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,95 +0,0 @@
|
||||||
# DEFINE dynatrace_management_zone.CD_ASBS.id = 6520190911716554583
|
|
||||||
resource "dynatrace_management_zone" "CD_ASBS" {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
rules {
|
|
||||||
type = "CLOUD_APPLICATION"
|
|
||||||
enabled = true
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "CLOUD_APPLICATION_NAME"
|
|
||||||
}
|
|
||||||
string {
|
|
||||||
case_sensitive = true
|
|
||||||
# negate = false
|
|
||||||
operator = "CONTAINS"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "CLOUD_APPLICATION_NAMESPACE"
|
|
||||||
enabled = true
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "CLOUD_APPLICATION_NAMESPACE_NAME"
|
|
||||||
}
|
|
||||||
string {
|
|
||||||
case_sensitive = true
|
|
||||||
# negate = false
|
|
||||||
operator = "CONTAINS"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "HOST"
|
|
||||||
enabled = true
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "HOST_TAGS"
|
|
||||||
}
|
|
||||||
tag {
|
|
||||||
# negate = false
|
|
||||||
operator = "EQUALS"
|
|
||||||
value {
|
|
||||||
context = "CONTEXTLESS"
|
|
||||||
key = "Component"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "PROCESS_GROUP"
|
|
||||||
enabled = true
|
|
||||||
propagation_types = [ "PROCESS_GROUP_TO_HOST" ]
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "PROCESS_GROUP_TAGS"
|
|
||||||
}
|
|
||||||
tag {
|
|
||||||
# negate = false
|
|
||||||
operator = "EQUALS"
|
|
||||||
value {
|
|
||||||
context = "CONTEXTLESS"
|
|
||||||
key = "Component"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "SERVICE"
|
|
||||||
enabled = true
|
|
||||||
propagation_types = [ "SERVICE_TO_HOST_LIKE", "SERVICE_TO_PROCESS_GROUP_LIKE" ]
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "SERVICE_TAGS"
|
|
||||||
}
|
|
||||||
tag {
|
|
||||||
# negate = false
|
|
||||||
operator = "EQUALS"
|
|
||||||
value {
|
|
||||||
context = "CONTEXTLESS"
|
|
||||||
key = "Component"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,360 +0,0 @@
|
||||||
# DEFINE dynatrace_dashboard.CD_ASBS_INT.id = 480a17d6-f7d5-4425-b03f-bfa728b27629
|
|
||||||
data "dynatrace_management_zone" "CD_ASBS_INT"{ name="CD_ASBS" }
|
|
||||||
resource "dynatrace_dashboard" "CD_ASBS_INT" {
|
|
||||||
dashboard_metadata {
|
|
||||||
name = "CD_ASBS INT"
|
|
||||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
|
||||||
preset = true
|
|
||||||
shared = true
|
|
||||||
tags = [ "CD_ASBS" ]
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"popularity": 1
|
|
||||||
})
|
|
||||||
filter {
|
|
||||||
timeframe = "-24h to now"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 228
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_INT.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
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 = "#ff0000"
|
|
||||||
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956393463
|
|
||||||
}
|
|
||||||
config {
|
|
||||||
custom_color = "#fff29a"
|
|
||||||
key = "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956441725
|
|
||||||
}
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fourxx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fivexx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Environment:INT" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Problems"
|
|
||||||
configured = true
|
|
||||||
tile_type = "OPEN_PROBLEMS"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 950
|
|
||||||
top = 38
|
|
||||||
width = 152
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_INT.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Overall Health"
|
|
||||||
configured = true
|
|
||||||
tile_type = "HEADER"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 0
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_INT.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 532
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 570
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_INT.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "MIXED"
|
|
||||||
custom_name = "Response time, Request Count 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
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.requestCount.total"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.total.count"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Environment:INT" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 190
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "DATABASES_OVERVIEW"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 646
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_INT.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
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:INT" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "SERVICES"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 342
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_INT.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "SERVICE"
|
|
||||||
custom_name = "Services"
|
|
||||||
default_name = "Services"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Environment:INT" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "HOSTS"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 38
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_INT.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "HOST"
|
|
||||||
custom_name = "Hosts"
|
|
||||||
default_name = "Hosts"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "HOST"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Environment:INT" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,360 +0,0 @@
|
||||||
# DEFINE dynatrace_dashboard.CD_ASBS_TEST.id = 96ee04ef-ded1-486c-8605-9c6054abd688
|
|
||||||
data "dynatrace_management_zone" "CD_ASBS_TEST"{ name="CD_ASBS" }
|
|
||||||
resource "dynatrace_dashboard" "CD_ASBS_TEST" {
|
|
||||||
dashboard_metadata {
|
|
||||||
name = "CD_ASBS TEST"
|
|
||||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
|
||||||
preset = true
|
|
||||||
shared = true
|
|
||||||
tags = [ "CD_ASBS" ]
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"popularity": 1
|
|
||||||
})
|
|
||||||
filter {
|
|
||||||
timeframe = "-24h to now"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 228
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_TEST.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
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 = "#ff0000"
|
|
||||||
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956393463
|
|
||||||
}
|
|
||||||
config {
|
|
||||||
custom_color = "#fff29a"
|
|
||||||
key = "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956441725
|
|
||||||
}
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fourxx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fivexx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Environment:TEST" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Problems"
|
|
||||||
configured = true
|
|
||||||
tile_type = "OPEN_PROBLEMS"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 950
|
|
||||||
top = 38
|
|
||||||
width = 152
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_TEST.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Overall Health"
|
|
||||||
configured = true
|
|
||||||
tile_type = "HEADER"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 0
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_TEST.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 532
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 570
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_TEST.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "MIXED"
|
|
||||||
custom_name = "Response time, Request Count 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
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.requestCount.total"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.total.count"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Environment:TEST" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 190
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "DATABASES_OVERVIEW"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 646
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_TEST.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
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:TEST" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "SERVICES"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 342
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_TEST.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "SERVICE"
|
|
||||||
custom_name = "Services"
|
|
||||||
default_name = "Services"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Environment:TEST" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "HOSTS"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 38
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_TEST.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "HOST"
|
|
||||||
custom_name = "Hosts"
|
|
||||||
default_name = "Hosts"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "HOST"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Environment:TEST" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,95 +0,0 @@
|
||||||
# DEFINE dynatrace_management_zone.CD_ASBS.id = 614750315153348722
|
|
||||||
resource "dynatrace_management_zone" "CD_ASBS" {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
rules {
|
|
||||||
type = "CLOUD_APPLICATION"
|
|
||||||
enabled = true
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "CLOUD_APPLICATION_NAME"
|
|
||||||
}
|
|
||||||
string {
|
|
||||||
case_sensitive = true
|
|
||||||
# negate = false
|
|
||||||
operator = "CONTAINS"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "CLOUD_APPLICATION_NAMESPACE"
|
|
||||||
enabled = true
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "CLOUD_APPLICATION_NAMESPACE_NAME"
|
|
||||||
}
|
|
||||||
string {
|
|
||||||
case_sensitive = true
|
|
||||||
# negate = false
|
|
||||||
operator = "CONTAINS"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "HOST"
|
|
||||||
enabled = true
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "HOST_TAGS"
|
|
||||||
}
|
|
||||||
tag {
|
|
||||||
# negate = false
|
|
||||||
operator = "EQUALS"
|
|
||||||
value {
|
|
||||||
context = "CONTEXTLESS"
|
|
||||||
key = "Component"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "PROCESS_GROUP"
|
|
||||||
enabled = true
|
|
||||||
propagation_types = [ "PROCESS_GROUP_TO_HOST" ]
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "PROCESS_GROUP_TAGS"
|
|
||||||
}
|
|
||||||
tag {
|
|
||||||
# negate = false
|
|
||||||
operator = "EQUALS"
|
|
||||||
value {
|
|
||||||
context = "CONTEXTLESS"
|
|
||||||
key = "Component"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "SERVICE"
|
|
||||||
enabled = true
|
|
||||||
propagation_types = [ "SERVICE_TO_HOST_LIKE", "SERVICE_TO_PROCESS_GROUP_LIKE" ]
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "SERVICE_TAGS"
|
|
||||||
}
|
|
||||||
tag {
|
|
||||||
# negate = false
|
|
||||||
operator = "EQUALS"
|
|
||||||
value {
|
|
||||||
context = "CONTEXTLESS"
|
|
||||||
key = "Component"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
||||||
# DEFINE dynatrace_alerting.CD_ASBS_PROD.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACQyOTkzZmRjOS0zYzgyLTM5MGQtOWFiNC02NzViMjc5NDZiNTO-71TeFdrerQ
|
|
||||||
data "dynatrace_management_zone" "CD_ASBS_PROD"{ name="CD_ASBS" }
|
|
||||||
resource "dynatrace_alerting" "CD_ASBS_PROD" {
|
|
||||||
name = "CD_ASBS PROD"
|
|
||||||
management_zone = data.dynatrace_management_zone.CD_ASBS_PROD.id
|
|
||||||
rules {
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 0
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "AVAILABILITY"
|
|
||||||
tags = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 10
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "CUSTOM_ALERT"
|
|
||||||
tags = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 10
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "ERRORS"
|
|
||||||
tags = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 30
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "PERFORMANCE"
|
|
||||||
tags = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 30
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "RESOURCE_CONTENTION"
|
|
||||||
tags = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,324 +0,0 @@
|
||||||
# DEFINE dynatrace_dashboard.CD_ASBS_E2E.id = 16ef5263-9658-4c77-a823-d7caf4f815b5
|
|
||||||
data "dynatrace_management_zone" "CD_ASBS_E2E"{ name="CD_ASBS" }
|
|
||||||
resource "dynatrace_dashboard" "CD_ASBS_E2E" {
|
|
||||||
dashboard_metadata {
|
|
||||||
name = "CD_ASBS E2E"
|
|
||||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
|
||||||
preset = true
|
|
||||||
shared = true
|
|
||||||
tags = [ "ASBS" ]
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"popularity": 1
|
|
||||||
})
|
|
||||||
filter {
|
|
||||||
timeframe = "-24h to now"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 228
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
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 = "#ff0000"
|
|
||||||
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956393463
|
|
||||||
}
|
|
||||||
config {
|
|
||||||
custom_color = "#fff29a"
|
|
||||||
key = "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956441725
|
|
||||||
}
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fourxx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fivexx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:E2E" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Problems"
|
|
||||||
configured = true
|
|
||||||
tile_type = "OPEN_PROBLEMS"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 950
|
|
||||||
top = 38
|
|
||||||
width = 152
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_E2E.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Overall Health"
|
|
||||||
configured = true
|
|
||||||
tile_type = "HEADER"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 0
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 532
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 570
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "MIXED"
|
|
||||||
custom_name = "Response time, Request Count 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
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.requestCount.total"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.total.count"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:E2E" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 190
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "DATABASES_OVERVIEW"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 646
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
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 = [ "Component:ASBS", "Environment:E2E" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "SERVICES"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 342
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "SERVICE"
|
|
||||||
custom_name = "Services"
|
|
||||||
default_name = "Services"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:E2E" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "HOSTS"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 38
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "HOST"
|
|
||||||
custom_name = "Hosts"
|
|
||||||
default_name = "Hosts"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "HOST"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:E2E" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,324 +0,0 @@
|
||||||
# DEFINE dynatrace_dashboard.CD_ASBS_PROD.id = a1cd194f-e05d-4a87-9573-8c0f0e748502
|
|
||||||
data "dynatrace_management_zone" "CD_ASBS_PROD"{ name="CD_ASBS" }
|
|
||||||
resource "dynatrace_dashboard" "CD_ASBS_PROD" {
|
|
||||||
dashboard_metadata {
|
|
||||||
name = "CD_ASBS PROD"
|
|
||||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
|
||||||
preset = true
|
|
||||||
shared = true
|
|
||||||
tags = [ "ASBS" ]
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"popularity": 1
|
|
||||||
})
|
|
||||||
filter {
|
|
||||||
timeframe = "-24h to now"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 228
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
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 = "#ff0000"
|
|
||||||
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956393463
|
|
||||||
}
|
|
||||||
config {
|
|
||||||
custom_color = "#fff29a"
|
|
||||||
key = "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956441725
|
|
||||||
}
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fourxx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fivexx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Problems"
|
|
||||||
configured = true
|
|
||||||
tile_type = "OPEN_PROBLEMS"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 950
|
|
||||||
top = 38
|
|
||||||
width = 152
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_PROD.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Overall Health"
|
|
||||||
configured = true
|
|
||||||
tile_type = "HEADER"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 0
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 532
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 570
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "MIXED"
|
|
||||||
custom_name = "Response time, Request Count 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
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.requestCount.total"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.total.count"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 190
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "DATABASES_OVERVIEW"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 646
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
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 = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "SERVICES"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 342
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "SERVICE"
|
|
||||||
custom_name = "Services"
|
|
||||||
default_name = "Services"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "HOSTS"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 38
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "HOST"
|
|
||||||
custom_name = "Hosts"
|
|
||||||
default_name = "Hosts"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "HOST"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,95 +0,0 @@
|
||||||
# DEFINE dynatrace_management_zone.CD_ASBS.id = 281869016656866433
|
|
||||||
resource "dynatrace_management_zone" "CD_ASBS" {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
rules {
|
|
||||||
type = "CLOUD_APPLICATION"
|
|
||||||
enabled = true
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "CLOUD_APPLICATION_NAME"
|
|
||||||
}
|
|
||||||
string {
|
|
||||||
case_sensitive = true
|
|
||||||
# negate = false
|
|
||||||
operator = "CONTAINS"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "CLOUD_APPLICATION_NAMESPACE"
|
|
||||||
enabled = true
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "CLOUD_APPLICATION_NAMESPACE_NAME"
|
|
||||||
}
|
|
||||||
string {
|
|
||||||
case_sensitive = true
|
|
||||||
# negate = false
|
|
||||||
operator = "CONTAINS"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "HOST"
|
|
||||||
enabled = true
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "HOST_TAGS"
|
|
||||||
}
|
|
||||||
tag {
|
|
||||||
# negate = false
|
|
||||||
operator = "EQUALS"
|
|
||||||
value {
|
|
||||||
context = "CONTEXTLESS"
|
|
||||||
key = "Component"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "PROCESS_GROUP"
|
|
||||||
enabled = true
|
|
||||||
propagation_types = [ "PROCESS_GROUP_TO_HOST" ]
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "PROCESS_GROUP_TAGS"
|
|
||||||
}
|
|
||||||
tag {
|
|
||||||
# negate = false
|
|
||||||
operator = "EQUALS"
|
|
||||||
value {
|
|
||||||
context = "CONTEXTLESS"
|
|
||||||
key = "Component"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "SERVICE"
|
|
||||||
enabled = true
|
|
||||||
propagation_types = [ "SERVICE_TO_HOST_LIKE", "SERVICE_TO_PROCESS_GROUP_LIKE" ]
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "SERVICE_TAGS"
|
|
||||||
}
|
|
||||||
tag {
|
|
||||||
# negate = false
|
|
||||||
operator = "EQUALS"
|
|
||||||
value {
|
|
||||||
context = "CONTEXTLESS"
|
|
||||||
key = "Component"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
||||||
# DEFINE dynatrace_alerting.CD_ASBS_INT.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACQ0NjhkMjUwZS1kMWE2LTM4MWItOTdmMy1mYzJiYzlmMTIwYzO-71TeFdrerQ
|
|
||||||
data "dynatrace_management_zone" "CD_ASBS_INT"{ name="CD_ASBS" }
|
|
||||||
resource "dynatrace_alerting" "CD_ASBS_INT" {
|
|
||||||
name = "CD_ASBS INT"
|
|
||||||
management_zone = data.dynatrace_management_zone.CD_ASBS_INT.id
|
|
||||||
rules {
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 0
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "AVAILABILITY"
|
|
||||||
tags = [ "Component:ASBS", "Environment:INT" ]
|
|
||||||
}
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 10
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "CUSTOM_ALERT"
|
|
||||||
tags = [ "Component:ASBS", "Environment:INT" ]
|
|
||||||
}
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 10
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "ERRORS"
|
|
||||||
tags = [ "Component:ASBS", "Environment:INT" ]
|
|
||||||
}
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 30
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "PERFORMANCE"
|
|
||||||
tags = [ "Component:ASBS", "Environment:INT" ]
|
|
||||||
}
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 30
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "RESOURCE_CONTENTION"
|
|
||||||
tags = [ "Component:ASBS", "Environment:INT" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,321 +0,0 @@
|
||||||
# DEFINE dynatrace_dashboard.CD_ASBS_INT.id = 430cf172-5f65-42b3-bdb3-937429062d36
|
|
||||||
data "dynatrace_management_zone" "CD_ASBS_INT"{ name="CD_ASBS" }
|
|
||||||
resource "dynatrace_dashboard" "CD_ASBS_INT" {
|
|
||||||
dashboard_metadata {
|
|
||||||
name = "CD_ASBS INT"
|
|
||||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
|
||||||
preset = true
|
|
||||||
shared = true
|
|
||||||
tags = [ "ASBS" ]
|
|
||||||
filter {
|
|
||||||
timeframe = "-24h to now"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 228
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
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 = "#ff0000"
|
|
||||||
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956393463
|
|
||||||
}
|
|
||||||
config {
|
|
||||||
custom_color = "#fff29a"
|
|
||||||
key = "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956441725
|
|
||||||
}
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fourxx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fivexx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:INT" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Problems"
|
|
||||||
configured = true
|
|
||||||
tile_type = "OPEN_PROBLEMS"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 950
|
|
||||||
top = 38
|
|
||||||
width = 152
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_INT.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Overall Health"
|
|
||||||
configured = true
|
|
||||||
tile_type = "HEADER"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 0
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 532
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 570
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "MIXED"
|
|
||||||
custom_name = "Response time, Request Count 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
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.requestCount.total"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.total.count"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:INT" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 190
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "DATABASES_OVERVIEW"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 646
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
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 = [ "Component:ASBS", "Environment:INT" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "SERVICES"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 342
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "SERVICE"
|
|
||||||
custom_name = "Services"
|
|
||||||
default_name = "Services"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:INT" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "HOSTS"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 38
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "HOST"
|
|
||||||
custom_name = "Hosts"
|
|
||||||
default_name = "Hosts"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "HOST"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:INT" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,321 +0,0 @@
|
||||||
# DEFINE dynatrace_dashboard.CD_ASBS_TEST.id = 0bbb1cef-b645-49cb-bbb2-e9e1de862631
|
|
||||||
data "dynatrace_management_zone" "CD_ASBS_TEST"{ name="CD_ASBS" }
|
|
||||||
resource "dynatrace_dashboard" "CD_ASBS_TEST" {
|
|
||||||
dashboard_metadata {
|
|
||||||
name = "CD_ASBS TEST"
|
|
||||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
|
||||||
preset = true
|
|
||||||
shared = true
|
|
||||||
tags = [ "ASBS" ]
|
|
||||||
filter {
|
|
||||||
timeframe = "-24h to now"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 228
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
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 = "#ff0000"
|
|
||||||
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956393463
|
|
||||||
}
|
|
||||||
config {
|
|
||||||
custom_color = "#fff29a"
|
|
||||||
key = "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956441725
|
|
||||||
}
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fourxx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fivexx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:TEST" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Problems"
|
|
||||||
configured = true
|
|
||||||
tile_type = "OPEN_PROBLEMS"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 950
|
|
||||||
top = 38
|
|
||||||
width = 152
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_TEST.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Overall Health"
|
|
||||||
configured = true
|
|
||||||
tile_type = "HEADER"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 0
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 532
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 570
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "MIXED"
|
|
||||||
custom_name = "Response time, Request Count 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
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.requestCount.total"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.total.count"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:TEST" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 190
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "DATABASES_OVERVIEW"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 646
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
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 = [ "Component:ASBS", "Environment:TEST" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "SERVICES"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 342
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "SERVICE"
|
|
||||||
custom_name = "Services"
|
|
||||||
default_name = "Services"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:TEST" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "HOSTS"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 38
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "HOST"
|
|
||||||
custom_name = "Hosts"
|
|
||||||
default_name = "Hosts"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "HOST"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:TEST" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,95 +0,0 @@
|
||||||
# DEFINE dynatrace_management_zone.CD_ASBS.id = 3072182950165517465
|
|
||||||
resource "dynatrace_management_zone" "CD_ASBS" {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
rules {
|
|
||||||
type = "CLOUD_APPLICATION"
|
|
||||||
enabled = true
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "CLOUD_APPLICATION_NAME"
|
|
||||||
}
|
|
||||||
string {
|
|
||||||
case_sensitive = true
|
|
||||||
# negate = false
|
|
||||||
operator = "CONTAINS"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "CLOUD_APPLICATION_NAMESPACE"
|
|
||||||
enabled = true
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "CLOUD_APPLICATION_NAMESPACE_NAME"
|
|
||||||
}
|
|
||||||
string {
|
|
||||||
case_sensitive = true
|
|
||||||
# negate = false
|
|
||||||
operator = "CONTAINS"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "HOST"
|
|
||||||
enabled = true
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "HOST_TAGS"
|
|
||||||
}
|
|
||||||
tag {
|
|
||||||
# negate = false
|
|
||||||
operator = "EQUALS"
|
|
||||||
value {
|
|
||||||
context = "CONTEXTLESS"
|
|
||||||
key = "Component"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "PROCESS_GROUP"
|
|
||||||
enabled = true
|
|
||||||
propagation_types = [ "PROCESS_GROUP_TO_HOST" ]
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "PROCESS_GROUP_TAGS"
|
|
||||||
}
|
|
||||||
tag {
|
|
||||||
# negate = false
|
|
||||||
operator = "EQUALS"
|
|
||||||
value {
|
|
||||||
context = "CONTEXTLESS"
|
|
||||||
key = "Component"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "SERVICE"
|
|
||||||
enabled = true
|
|
||||||
propagation_types = [ "SERVICE_TO_HOST_LIKE", "SERVICE_TO_PROCESS_GROUP_LIKE" ]
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "SERVICE_TAGS"
|
|
||||||
}
|
|
||||||
tag {
|
|
||||||
# negate = false
|
|
||||||
operator = "EQUALS"
|
|
||||||
value {
|
|
||||||
context = "CONTEXTLESS"
|
|
||||||
key = "Component"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
||||||
# DEFINE dynatrace_alerting.CD_ASBS_PROD.id = vu9U3hXa3q0AAAABABhidWlsdGluOmFsZXJ0aW5nLnByb2ZpbGUABnRlbmFudAAGdGVuYW50ACQyY2E4NGZhOC03Yzk4LTMxNzctYjdmZC0zYWExYzY5MjVmNjG-71TeFdrerQ
|
|
||||||
data "dynatrace_management_zone" "CD_ASBS_PROD"{ name="CD_ASBS" }
|
|
||||||
resource "dynatrace_alerting" "CD_ASBS_PROD" {
|
|
||||||
name = "CD_ASBS PROD"
|
|
||||||
management_zone = data.dynatrace_management_zone.CD_ASBS_PROD.id
|
|
||||||
rules {
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 0
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "AVAILABILITY"
|
|
||||||
tags = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 10
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "CUSTOM_ALERT"
|
|
||||||
tags = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 10
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "ERRORS"
|
|
||||||
tags = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 30
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "PERFORMANCE"
|
|
||||||
tags = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
rule {
|
|
||||||
delay_in_minutes = 30
|
|
||||||
include_mode = "INCLUDE_ALL"
|
|
||||||
severity_level = "RESOURCE_CONTENTION"
|
|
||||||
tags = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,324 +0,0 @@
|
||||||
# DEFINE dynatrace_dashboard.CD_ASBS_E2E.id = b9d4d049-7bf3-4181-b2e3-018bc955cad2
|
|
||||||
data "dynatrace_management_zone" "CD_ASBS_E2E"{ name="CD_ASBS" }
|
|
||||||
resource "dynatrace_dashboard" "CD_ASBS_E2E" {
|
|
||||||
dashboard_metadata {
|
|
||||||
name = "CD_ASBS E2E"
|
|
||||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
|
||||||
preset = true
|
|
||||||
shared = true
|
|
||||||
tags = [ "ASBS" ]
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"popularity": 1
|
|
||||||
})
|
|
||||||
filter {
|
|
||||||
timeframe = "-24h to now"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 228
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
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 = "#ff0000"
|
|
||||||
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956393463
|
|
||||||
}
|
|
||||||
config {
|
|
||||||
custom_color = "#fff29a"
|
|
||||||
key = "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956441725
|
|
||||||
}
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fourxx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fivexx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:E2E" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Problems"
|
|
||||||
configured = true
|
|
||||||
tile_type = "OPEN_PROBLEMS"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 950
|
|
||||||
top = 38
|
|
||||||
width = 152
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_E2E.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Overall Health"
|
|
||||||
configured = true
|
|
||||||
tile_type = "HEADER"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 0
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 532
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 570
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "MIXED"
|
|
||||||
custom_name = "Response time, Request Count 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
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.requestCount.total"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.total.count"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:E2E" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 190
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "DATABASES_OVERVIEW"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 646
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
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 = [ "Component:ASBS", "Environment:E2E" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "SERVICES"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 342
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "SERVICE"
|
|
||||||
custom_name = "Services"
|
|
||||||
default_name = "Services"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:E2E" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "HOSTS"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 38
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "HOST"
|
|
||||||
custom_name = "Hosts"
|
|
||||||
default_name = "Hosts"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "HOST"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:E2E" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,324 +0,0 @@
|
||||||
# DEFINE dynatrace_dashboard.CD_ASBS_PROD.id = d30d52c6-06cd-4cf5-9a47-6240cd5fc7d8
|
|
||||||
data "dynatrace_management_zone" "CD_ASBS_PROD"{ name="CD_ASBS" }
|
|
||||||
resource "dynatrace_dashboard" "CD_ASBS_PROD" {
|
|
||||||
dashboard_metadata {
|
|
||||||
name = "CD_ASBS PROD"
|
|
||||||
owner = "Ignacio.Goldman@partner.bmwgroup.com"
|
|
||||||
preset = true
|
|
||||||
shared = true
|
|
||||||
tags = [ "ASBS" ]
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"popularity": 1
|
|
||||||
})
|
|
||||||
filter {
|
|
||||||
timeframe = "-24h to now"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 228
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
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 = "#ff0000"
|
|
||||||
key = "nullbuiltin:service.errors.fivexx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956393463
|
|
||||||
}
|
|
||||||
config {
|
|
||||||
custom_color = "#fff29a"
|
|
||||||
key = "nullbuiltin:service.errors.fourxx.rate|AVG|TOTAL|BAR|SERVICE"
|
|
||||||
last_modified = 1617956441725
|
|
||||||
}
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fourxx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "AVG"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.fivexx.rate"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Problems"
|
|
||||||
configured = true
|
|
||||||
tile_type = "OPEN_PROBLEMS"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 950
|
|
||||||
top = 38
|
|
||||||
width = 152
|
|
||||||
}
|
|
||||||
filter {
|
|
||||||
management_zone {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
id = data.dynatrace_management_zone.CD_ASBS_PROD.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Overall Health"
|
|
||||||
configured = true
|
|
||||||
tile_type = "HEADER"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 0
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 532
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Custom chart"
|
|
||||||
configured = true
|
|
||||||
tile_type = "CUSTOM_CHARTING"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 304
|
|
||||||
left = 38
|
|
||||||
top = 570
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "MIXED"
|
|
||||||
custom_name = "Response time, Request Count 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
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.requestCount.total"
|
|
||||||
# sort_ascending = false
|
|
||||||
# sort_column = false
|
|
||||||
}
|
|
||||||
series {
|
|
||||||
type = "BAR"
|
|
||||||
aggregation = "NONE"
|
|
||||||
aggregation_rate = "TOTAL"
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
metric = "builtin:service.errors.total.count"
|
|
||||||
# sort_ascending = false
|
|
||||||
sort_column = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = "Markdown"
|
|
||||||
configured = true
|
|
||||||
markdown =<<-EOT
|
|
||||||
---
|
|
||||||
|
|
||||||
EOT
|
|
||||||
tile_type = "MARKDOWN"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 38
|
|
||||||
left = 38
|
|
||||||
top = 190
|
|
||||||
width = 1064
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "DATABASES_OVERVIEW"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 646
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
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 = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "SERVICES"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 342
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "SERVICE"
|
|
||||||
custom_name = "Services"
|
|
||||||
default_name = "Services"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "SERVICE"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tile {
|
|
||||||
name = ""
|
|
||||||
chart_visible = true
|
|
||||||
configured = true
|
|
||||||
tile_type = "HOSTS"
|
|
||||||
unknowns = jsonencode({
|
|
||||||
"isAutoRefreshDisabled": false
|
|
||||||
})
|
|
||||||
bounds {
|
|
||||||
height = 152
|
|
||||||
left = 38
|
|
||||||
top = 38
|
|
||||||
width = 190
|
|
||||||
}
|
|
||||||
filter_config {
|
|
||||||
type = "HOST"
|
|
||||||
custom_name = "Hosts"
|
|
||||||
default_name = "Hosts"
|
|
||||||
chart_config {
|
|
||||||
type = "TIMESERIES"
|
|
||||||
legend = true
|
|
||||||
}
|
|
||||||
filters {
|
|
||||||
filter {
|
|
||||||
entity_type = "HOST"
|
|
||||||
match {
|
|
||||||
key = "AUTO_TAGS"
|
|
||||||
values = [ "Component:ASBS", "Environment:PROD" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,95 +0,0 @@
|
||||||
# DEFINE dynatrace_management_zone.CD_ASBS.id = -1574165382103031063
|
|
||||||
resource "dynatrace_management_zone" "CD_ASBS" {
|
|
||||||
name = "CD_ASBS"
|
|
||||||
rules {
|
|
||||||
type = "CLOUD_APPLICATION"
|
|
||||||
enabled = true
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "CLOUD_APPLICATION_NAME"
|
|
||||||
}
|
|
||||||
string {
|
|
||||||
case_sensitive = true
|
|
||||||
# negate = false
|
|
||||||
operator = "CONTAINS"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "CLOUD_APPLICATION_NAMESPACE"
|
|
||||||
enabled = true
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "CLOUD_APPLICATION_NAMESPACE_NAME"
|
|
||||||
}
|
|
||||||
string {
|
|
||||||
case_sensitive = true
|
|
||||||
# negate = false
|
|
||||||
operator = "CONTAINS"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "HOST"
|
|
||||||
enabled = true
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "HOST_TAGS"
|
|
||||||
}
|
|
||||||
tag {
|
|
||||||
# negate = false
|
|
||||||
operator = "EQUALS"
|
|
||||||
value {
|
|
||||||
context = "CONTEXTLESS"
|
|
||||||
key = "Component"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "PROCESS_GROUP"
|
|
||||||
enabled = true
|
|
||||||
propagation_types = [ "PROCESS_GROUP_TO_HOST" ]
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "PROCESS_GROUP_TAGS"
|
|
||||||
}
|
|
||||||
tag {
|
|
||||||
# negate = false
|
|
||||||
operator = "EQUALS"
|
|
||||||
value {
|
|
||||||
context = "CONTEXTLESS"
|
|
||||||
key = "Component"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
rules {
|
|
||||||
type = "SERVICE"
|
|
||||||
enabled = true
|
|
||||||
propagation_types = [ "SERVICE_TO_HOST_LIKE", "SERVICE_TO_PROCESS_GROUP_LIKE" ]
|
|
||||||
conditions {
|
|
||||||
key {
|
|
||||||
type = "STATIC"
|
|
||||||
attribute = "SERVICE_TAGS"
|
|
||||||
}
|
|
||||||
tag {
|
|
||||||
# negate = false
|
|
||||||
operator = "EQUALS"
|
|
||||||
value {
|
|
||||||
context = "CONTEXTLESS"
|
|
||||||
key = "Component"
|
|
||||||
value = "ASBS"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue