added linux support

master
ermisw 2022-01-26 16:10:10 +01:00
parent 79c99fe18c
commit 12cdd40625
160 changed files with 24393 additions and 1 deletions

Binary file not shown.

View File

@ -12,6 +12,11 @@ from glob import glob
# [AA 2022.01.17] Set available resources
if os.name == 'nt':
export_tool = ".\\bin\\terraform-provider-dynatrace_v1.9.1.exe"
else:
export_tool = "./bin/terraform-provider-dynatrace_v1.9.1"
Resources = os.getenv("TERRAFORM_RESOURCES").split(",") if os.getenv("TERRAFORM_RESOURCES") else [
"dynatrace_custom_service",
"dynatrace_dashboard",
@ -231,7 +236,7 @@ if(len(sys.argv) == 2):
setEnv(sys.argv[1], timestamp, outputFolder)
# [AA, EW 2022.01.17] Download resource files
runProcess("Export", [".\\bin\\terraform-provider-dynatrace_v1.9.1.exe", "export"] + Resources)
runProcess("Export", [export_tool, "export"] + Resources)
# [AA, EW 2022.01.17] Create a dictionary to store information of resources
createResourceDict()

View File

@ -0,0 +1,45 @@
resource "dynatrace_alerting_profile" "Default" {
display_name = "Default"
rules {
delay_in_minutes = 0
severity_level = "AVAILABILITY"
tag_filter {
include_mode = "NONE"
}
}
rules {
delay_in_minutes = 0
severity_level = "CUSTOM_ALERT"
tag_filter {
include_mode = "NONE"
}
}
rules {
delay_in_minutes = 0
severity_level = "ERROR"
tag_filter {
include_mode = "NONE"
}
}
rules {
delay_in_minutes = 0
severity_level = "MONITORING_UNAVAILABLE"
tag_filter {
include_mode = "NONE"
}
}
rules {
delay_in_minutes = 30
severity_level = "PERFORMANCE"
tag_filter {
include_mode = "NONE"
}
}
rules {
delay_in_minutes = 30
severity_level = "RESOURCE_CONTENTION"
tag_filter {
include_mode = "NONE"
}
}
}

View File

@ -0,0 +1,15 @@
resource "dynatrace_alerting_profile" "TestMySQL" {
display_name = "TestMySQL"
rules {
delay_in_minutes = 0
severity_level = "AVAILABILITY"
tag_filter {
include_mode = "INCLUDE_ALL"
tag_filters {
context = "CONTEXTLESS"
key = "Test-MySQL"
value = "catalogue"
}
}
}
}

View File

@ -0,0 +1,23 @@
resource "dynatrace_application_anomalies" "dynatrace_application_anomalies" {
failure_rate {
auto {
absolute = 5
relative = 50
}
}
response_time {
auto {
load = "TEN_REQUESTS_PER_MINUTE"
milliseconds = 100
percent = 50
slowest_milliseconds = 1000
slowest_percent = 100
}
}
traffic {
drops {
enabled = true
percent = 50
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "Cluster_controller_mismatch" {
name = "Cluster controller mismatch"
description = "There are {severity} active cluster controllers"
enabled = false
aggregation_type = "AVG"
metric_id = "builtin:tech.kafka.pg.kafka.controller.KafkaController.ActiveControllerCount.Value"
severity = "ERROR"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 1
unit = "COUNT"
violating_samples = 5
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "High_GC_time" {
name = "High GC time"
description = "The .NET GC time of {severity} is {alert_condition} the threshold of {threshold}"
enabled = false
aggregation_type = "AVG"
metric_id = "builtin:tech.dotnet.perfmon.%TimeInGC"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 0
unit = "PERCENT"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "High_HAProxy_backend_session_usage" {
name = "High HAProxy backend session usage"
description = "The backend session usage is {alert_condition} the threshold of {threshold}"
enabled = true
aggregation_type = "AVG"
metric_id = "builtin:tech.haproxy.be_susage"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 80
unit = "PERCENT"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "High_HAProxy_frontend_session_usage" {
name = "High HAProxy frontend session usage"
description = "The frontend session usage is {alert_condition} the threshold of {threshold}"
enabled = true
aggregation_type = "AVG"
metric_id = "builtin:tech.haproxy.fe_susage"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 80
unit = "PERCENT"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "High_HAProxy_requests_queue" {
name = "High HAProxy requests queue"
description = "The ammount of queued requests is {alert_condition} the threshold of {threshold}"
enabled = false
aggregation_type = "AVG"
metric_id = "builtin:tech.haproxy.be_qcur"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 0
unit = "PER_MINUTE"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "High_HAProxy_response_time" {
name = "High HAProxy response time"
description = "The average response time is {alert_condition} the threshold of {threshold}"
enabled = false
aggregation_type = "AVG"
metric_id = "builtin:tech.haproxy.be_rtime"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 0
unit = "MILLI_SECOND"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "High_OS_CPU_usage" {
name = "High OS CPU usage"
description = "The OS CPU usage is {alert_condition} the threshold of {threshold}"
enabled = true
aggregation_type = "AVG"
metric_id = "builtin:tech.elasticsearch.remote.node.os.cpu_percent"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 70
unit = "PERCENT"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "High_RabbitMQ_file_descriptors_usage" {
name = "High RabbitMQ file descriptors usage"
description = "The RabbitMQ file descriptors usage of {severity} is {alert_condition} the threshold of {threshold}"
enabled = true
aggregation_type = "AVG"
metric_id = "builtin:tech.rabbitmq.fd_usage"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 90
unit = "PERCENT"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "High_RabbitMQ_memory_usage" {
name = "High RabbitMQ memory usage"
description = "The RabbitMQ memory usage of {severity} is {alert_condition} the threshold of {threshold}"
enabled = true
aggregation_type = "AVG"
metric_id = "builtin:tech.rabbitmq.mem_usage"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 90
unit = "PERCENT"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "High_RabbitMQ_number_of_auto_delete_queues_without_consumers" {
name = "High RabbitMQ number of auto delete queues without consumers"
description = "The number of auto delete queues without consumers is {alert_condition} the threshold of {threshold}"
enabled = false
aggregation_type = "AVG"
metric_id = "builtin:tech.rabbitmq.ad_queues_no_consumers"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 0
unit = "COUNT"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "High_RabbitMQ_number_of_blocked_connections" {
name = "High RabbitMQ number of blocked connections"
description = "The number of blocked connections is {alert_condition} the threshold of {threshold}"
enabled = false
aggregation_type = "AVG"
metric_id = "builtin:tech.rabbitmq.connections_blocked"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 0
unit = "COUNT"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "High_RabbitMQ_number_of_unacknowledged_messages" {
name = "High RabbitMQ number of unacknowledged messages"
description = "The number of unacknowledged messages is {alert_condition} the threshold of {threshold}"
enabled = false
aggregation_type = "AVG"
metric_id = "builtin:tech.rabbitmq.messages_unacknowledged"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 0
unit = "COUNT"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "High_RabbitMQ_processes_usage" {
name = "High RabbitMQ processes usage"
description = "The RabbitMQ processes usage of {severity} is {alert_condition} the threshold of {threshold}"
enabled = true
aggregation_type = "AVG"
metric_id = "builtin:tech.rabbitmq.proc_usage"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 90
unit = "PERCENT"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "High_RabbitMQ_sockets_usage" {
name = "High RabbitMQ sockets usage"
description = "The RabbitMQ sockets usage of {severity} is {alert_condition} the threshold of {threshold}"
enabled = true
aggregation_type = "AVG"
metric_id = "builtin:tech.rabbitmq.sockets_usage"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 90
unit = "PERCENT"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "High_panic_count" {
name = "High panic count"
description = "The {metricname} of {severity} is {alert_condition} the threshold of {threshold}"
enabled = true
aggregation_type = "AVG"
metric_id = "builtin:tech.coredns.panic_count_total"
severity = "ERROR"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 0
unit = "COUNT"
violating_samples = 1
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "Low_HAProxy_idle_time" {
name = "Low HAProxy idle time"
description = "The percentage standby time is {alert_condition} the threshold of {threshold}"
enabled = true
aggregation_type = "AVG"
metric_id = "builtin:tech.haproxy.idle"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "BELOW"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 10
unit = "PERCENT"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "Low_RabbitMQ_free_disk_space" {
name = "Low RabbitMQ free disk space"
description = "The RabbitMQ free disk space of {severity} is {alert_condition} the threshold of {threshold}"
enabled = true
aggregation_type = "AVG"
metric_id = "builtin:tech.rabbitmq.disk_free_left_to_limit"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "BELOW"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 50000000
unit = "BYTE"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "Offline_partitions" {
name = "Offline partitions"
description = "There are {severity} offline partitions"
enabled = false
aggregation_type = "AVG"
metric_id = "builtin:tech.kafka.pg.kafka.controller.KafkaController.OfflinePartitionsCount.Value"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 0
unit = "COUNT"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,27 @@
resource "dynatrace_custom_anomalies" "RabbitMQ_Node_failed" {
name = "RabbitMQ Node failed"
description = "Node {severity} for {violating_samples}."
enabled = true
aggregation_type = "VALUE"
metric_id = "builtin:tech.rabbitmq.node_status"
severity = "AVAILABILITY"
dimensions {
string {
filter {
operator = "EQUALS"
value = "failed"
}
}
}
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 0
unit = "COUNT"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,27 @@
resource "dynatrace_custom_anomalies" "Redis_Replica_synchronization_in_progress" {
name = "Redis Replica synchronization in progress"
description = "Replica is {severity} for {violating_samples}."
enabled = false
aggregation_type = "VALUE"
metric_id = "builtin:tech.redis.slave_state"
severity = "AVAILABILITY"
dimensions {
string {
filter {
operator = "EQUALS"
value = "Sync in progress"
}
}
}
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 0
unit = "COUNT"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,27 @@
resource "dynatrace_custom_anomalies" "Redis_Replica_unsynchronized" {
name = "Redis Replica unsynchronized"
description = "Replica is {severity} for {violating_samples}."
enabled = true
aggregation_type = "VALUE"
metric_id = "builtin:tech.redis.slave_state"
severity = "AVAILABILITY"
dimensions {
string {
filter {
operator = "EQUALS"
value = "Unsynchronized"
}
}
}
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 0
unit = "COUNT"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "Under_replicated" {
name = "Under replicated"
description = "There are {severity} under replicated partitions"
enabled = false
aggregation_type = "AVG"
metric_id = "builtin:tech.kafka.kafka.server.ReplicaManager.UnderReplicatedPartitions.Value"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 0
unit = "COUNT"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "WSO2_API_Manager_-_Carbon_has_exteremly_high_system_response_time" {
name = "WSO2 API Manager - Carbon has exteremly high system response time"
description = "The {metricname} of {severity} is {alert_condition} the threshold of {threshold}"
enabled = true
aggregation_type = "MAX"
metric_id = "builtin:tech.wso2-api-manager.metric_carbon_system_response_time_avg"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 10
threshold = 60000
unit = "MILLI_SECOND"
violating_samples = 5
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "WSO2_API_Manager_-_Carbon_has_faulty_services" {
name = "WSO2 API Manager - Carbon has faulty services"
description = "The {metricname} of {severity} is {alert_condition} the threshold of {threshold}"
enabled = true
aggregation_type = "MAX"
metric_id = "builtin:tech.wso2-api-manager.metric_carbon_number_faulty_services"
severity = "AVAILABILITY"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 10
threshold = 0
unit = "COUNT"
violating_samples = 5
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "WSO2_API_Manager_-_High_http_backend_latency" {
name = "WSO2 API Manager - High http backend latency"
description = "The {metricname} of {severity} is {alert_condition} the threshold of {threshold}"
enabled = true
aggregation_type = "MAX"
metric_id = "builtin:tech.wso2-api-manager.metric_wso2am_http_latency_backend_avg"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 10
threshold = 30000
unit = "MILLI_SECOND"
violating_samples = 5
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "WSO2_API_Manager_-_High_http_latency" {
name = "WSO2 API Manager - High http latency"
description = "The {metricname} of {severity} is {alert_condition} the threshold of {threshold}"
enabled = true
aggregation_type = "MAX"
metric_id = "builtin:tech.wso2-api-manager.metric_wso2am_http_latency_avg"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 10
threshold = 30000
unit = "MILLI_SECOND"
violating_samples = 5
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "WSO2_API_Manager_-_High_https_backend_latency" {
name = "WSO2 API Manager - High https backend latency"
description = "The {metricname} of {severity} is {alert_condition} the threshold of {threshold}"
enabled = true
aggregation_type = "MAX"
metric_id = "builtin:tech.wso2-api-manager.metric_wso2am_https_latency_backend_avg"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 10
threshold = 30000
unit = "MILLI_SECOND"
violating_samples = 5
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "WSO2_API_Manager_-_High_https_latency" {
name = "WSO2 API Manager - High https latency"
description = "The {metricname} of {severity} is {alert_condition} the threshold of {threshold}"
enabled = true
aggregation_type = "MAX"
metric_id = "builtin:tech.wso2-api-manager.metric_wso2am_https_latency_avg"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 10
threshold = 30000
unit = "MILLI_SECOND"
violating_samples = 5
}
}
}

View File

@ -0,0 +1,21 @@
resource "dynatrace_database_anomalies" "dynatrace_database_anomalies" {
db_connect_failures {
connection_fails_count = 5
eval_period = 5
}
failure_rate {
auto {
absolute = 0
relative = 50
}
}
response_time {
auto {
load = "TEN_REQUESTS_PER_MINUTE"
milliseconds = 5
percent = 50
slowest_milliseconds = 20
slowest_percent = 100
}
}
}

View File

@ -0,0 +1,51 @@
resource "dynatrace_host_anomalies" "dynatrace_host_anomalies" {
connections {
enabled = true
enabled_on_graceful_shutdowns = false
}
cpu {
enabled = true
}
disks {
inodes {
enabled = true
}
space {
enabled = true
}
speed {
enabled = true
}
}
gc {
enabled = true
}
java {
out_of_memory {
enabled = true
}
out_of_threads {
enabled = true
}
}
memory {
enabled = true
}
network {
connectivity {
enabled = true
}
dropped_packets {
enabled = true
}
errors {
enabled = true
}
retransmission {
enabled = true
}
utilization {
enabled = true
}
}
}

View File

@ -0,0 +1,17 @@
resource "dynatrace_service_anomalies" "dynatrace_service_anomalies" {
failure_rates {
auto {
absolute = 0
relative = 50
}
}
response_times {
auto {
load = "TEN_REQUESTS_PER_MINUTE"
milliseconds = 100
percent = 50
slowest_milliseconds = 1000
slowest_percent = 100
}
}
}

View File

@ -0,0 +1,127 @@
resource "dynatrace_autotag" "Cloud" {
name = "Cloud"
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "Azure"
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "BEGINS_WITH"
value = "Azure-"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "Azure"
conditions {
cloud_type {
# negate = false
operator = "EQUALS"
value = "AZURE"
}
key {
type = "STATIC"
attribute = "HOST_CLOUD_TYPE"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "AWS"
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "BEGINS_WITH"
value = "AWS-"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "AWS"
conditions {
cloud_type {
# negate = false
operator = "EQUALS"
value = "EC2"
}
key {
type = "STATIC"
attribute = "HOST_CLOUD_TYPE"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "On Premise"
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "BEGINS_WITH"
value = "OpenShift_"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "On Premise"
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "BEGINS_WITH"
value = "Multiproject_"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "On Premise"
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "BEGINS_WITH"
value = "SingleApplicationServer_"
}
}
}
}

View File

@ -0,0 +1,890 @@
resource "dynatrace_autotag" "Environment" {
name = "Environment"
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "{ProcessGroup:DetectedName/-(.*?)\\)}"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "BASE"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "PROD"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "EQUALS"
value = "svds - prod"
}
}
}
rules {
type = "SERVICE"
enabled = true
propagation_types = ["SERVICE_TO_PROCESS_GROUP_LIKE","SERVICE_TO_HOST_LIKE"]
value_format = "TEST"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TYPE"
}
service_type {
# negate = false
operator = "EQUALS"
value = "DATABASE_SERVICE"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DATABASE_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "CONTAINS"
value = "dev"
}
}
}
rules {
type = "SERVICE"
enabled = true
propagation_types = ["SERVICE_TO_PROCESS_GROUP_LIKE","SERVICE_TO_HOST_LIKE"]
value_format = "TEST"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TYPE"
}
service_type {
# negate = false
operator = "EQUALS"
value = "DATABASE_SERVICE"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DATABASE_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "CONTAINS"
value = "test"
}
}
}
rules {
type = "SERVICE"
enabled = true
propagation_types = ["SERVICE_TO_PROCESS_GROUP_LIKE","SERVICE_TO_HOST_LIKE"]
value_format = "INT"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TYPE"
}
service_type {
# negate = false
operator = "EQUALS"
value = "DATABASE_SERVICE"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DATABASE_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "CONTAINS"
value = "int"
}
}
}
rules {
type = "SERVICE"
enabled = true
propagation_types = ["SERVICE_TO_PROCESS_GROUP_LIKE","SERVICE_TO_HOST_LIKE"]
value_format = "I2E"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TYPE"
}
service_type {
# negate = false
operator = "EQUALS"
value = "DATABASE_SERVICE"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DATABASE_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "CONTAINS"
value = "i2e"
}
}
}
rules {
type = "SERVICE"
enabled = true
propagation_types = ["SERVICE_TO_PROCESS_GROUP_LIKE","SERVICE_TO_HOST_LIKE"]
value_format = "E2E"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TYPE"
}
service_type {
# negate = false
operator = "EQUALS"
value = "DATABASE_SERVICE"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DATABASE_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "CONTAINS"
value = "e2e"
}
}
}
rules {
type = "SERVICE"
enabled = true
propagation_types = ["SERVICE_TO_PROCESS_GROUP_LIKE","SERVICE_TO_HOST_LIKE"]
value_format = "PROD"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TYPE"
}
service_type {
# negate = false
operator = "EQUALS"
value = "DATABASE_SERVICE"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DATABASE_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "CONTAINS"
value = "prod"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "TEST"
conditions {
custom_process_metadata {
attribute = "PROCESS_GROUP_CUSTOM_METADATA"
dynamic_key {
key = "environment"
source = "KUBERNETES"
}
}
string {
# case_sensitive = false
# negate = false
operator = "EQUALS"
value = "dev"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "TEST"
conditions {
custom_process_metadata {
attribute = "PROCESS_GROUP_CUSTOM_METADATA"
dynamic_key {
key = "environment"
source = "KUBERNETES"
}
}
string {
# case_sensitive = false
# negate = false
operator = "EQUALS"
value = "test"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "INT"
conditions {
custom_process_metadata {
attribute = "PROCESS_GROUP_CUSTOM_METADATA"
dynamic_key {
key = "environment"
source = "KUBERNETES"
}
}
string {
# case_sensitive = false
# negate = false
operator = "EQUALS"
value = "int"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "I2E"
conditions {
custom_process_metadata {
attribute = "PROCESS_GROUP_CUSTOM_METADATA"
dynamic_key {
key = "environment"
source = "KUBERNETES"
}
}
string {
# case_sensitive = false
# negate = false
operator = "EQUALS"
value = "i2e"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "E2E"
conditions {
custom_process_metadata {
attribute = "PROCESS_GROUP_CUSTOM_METADATA"
dynamic_key {
key = "environment"
source = "KUBERNETES"
}
}
string {
# case_sensitive = false
# negate = false
operator = "EQUALS"
value = "e2e"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "PROD"
conditions {
custom_process_metadata {
attribute = "PROCESS_GROUP_CUSTOM_METADATA"
dynamic_key {
key = "environment"
source = "KUBERNETES"
}
}
string {
# case_sensitive = false
# negate = false
operator = "EQUALS"
value = "prod"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "TEST"
conditions {
process_metadata {
attribute = "PROCESS_GROUP_PREDEFINED_METADATA"
dynamic_key = "KUBERNETES_NAMESPACE"
}
string {
# case_sensitive = false
# negate = false
operator = "ENDS_WITH"
value = "-dev"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "TEST"
conditions {
process_metadata {
attribute = "PROCESS_GROUP_PREDEFINED_METADATA"
dynamic_key = "KUBERNETES_NAMESPACE"
}
string {
# case_sensitive = false
# negate = false
operator = "ENDS_WITH"
value = "-test"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "INT"
conditions {
process_metadata {
attribute = "PROCESS_GROUP_PREDEFINED_METADATA"
dynamic_key = "KUBERNETES_NAMESPACE"
}
string {
# case_sensitive = false
# negate = false
operator = "ENDS_WITH"
value = "-int"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "I2E"
conditions {
process_metadata {
attribute = "PROCESS_GROUP_PREDEFINED_METADATA"
dynamic_key = "KUBERNETES_NAMESPACE"
}
string {
# case_sensitive = false
# negate = false
operator = "ENDS_WITH"
value = "-i2e"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "E2E"
conditions {
process_metadata {
attribute = "PROCESS_GROUP_PREDEFINED_METADATA"
dynamic_key = "KUBERNETES_NAMESPACE"
}
string {
# case_sensitive = false
# negate = false
operator = "ENDS_WITH"
value = "-e2e"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "PROD"
conditions {
process_metadata {
attribute = "PROCESS_GROUP_PREDEFINED_METADATA"
dynamic_key = "KUBERNETES_NAMESPACE"
}
string {
# case_sensitive = false
# negate = false
operator = "ENDS_WITH"
value = "-prod"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "TEST"
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "BEGINS_WITH"
value = "Azure-NonFG"
}
}
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "ENDS_WITH"
value = "DEV"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "DLY"
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "BEGINS_WITH"
value = "Azure-NonFG"
}
}
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "ENDS_WITH"
value = "DLY"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "INT"
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "BEGINS_WITH"
value = "Azure-NonFG"
}
}
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "ENDS_WITH"
value = "INT"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "PROD"
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "BEGINS_WITH"
value = "Azure-NonFG"
}
}
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "ENDS_WITH"
value = "PRD"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "TEST"
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "CONTAINS"
value = "_DEV"
}
}
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
# case_sensitive = false
negate = true
operator = "CONTAINS"
value = "_INT"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "INT"
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "CONTAINS"
value = "_INT"
}
}
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
# case_sensitive = false
negate = true
operator = "CONTAINS"
value = "_DEV"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "E2E"
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "CONTAINS"
value = "_E2E"
}
}
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
# case_sensitive = false
negate = true
operator = "CONTAINS"
value = "_PROD"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "PROD"
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "CONTAINS"
value = "_PROD"
}
}
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
# case_sensitive = false
negate = true
operator = "CONTAINS"
value = "_E2E"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "TEST"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Platform"
value = "Classic IT"
}
}
}
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
negate = true
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Environment"
value = "INT"
}
}
}
conditions {
key {
type = "STATIC"
attribute = "HOST_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "BEGINS_WITH"
value = "lt"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "INT"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Platform"
value = "Classic IT"
}
}
}
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
negate = true
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Environment"
value = "TEST"
}
}
}
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
negate = true
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Environment"
value = "E2E"
}
}
}
conditions {
key {
type = "STATIC"
attribute = "HOST_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "BEGINS_WITH"
value = "li"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "PROD"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Platform"
value = "Classic IT"
}
}
}
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
negate = true
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Environment"
value = "E2E"
}
}
}
conditions {
key {
type = "STATIC"
attribute = "HOST_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "BEGINS_WITH"
value = "lp"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "PROD"
conditions {
custom_process_metadata {
attribute = "PROCESS_GROUP_CUSTOM_METADATA"
dynamic_key {
key = "Environment"
source = "ENVIRONMENT"
}
}
string {
case_sensitive = true
# negate = false
operator = "EQUALS"
value = "prod"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "E2E"
conditions {
custom_process_metadata {
attribute = "PROCESS_GROUP_CUSTOM_METADATA"
dynamic_key {
key = "Environment"
source = "ENVIRONMENT"
}
}
string {
case_sensitive = true
# negate = false
operator = "EQUALS"
value = "e2e"
}
}
}
}

View File

@ -0,0 +1,47 @@
resource "dynatrace_autotag" "Hub" {
name = "Hub"
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "EMEA"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "EXISTS"
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "EMEA"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TYPE"
}
service_type {
# negate = false
operator = "EQUALS"
value = "DATABASE_SERVICE"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "EXISTS"
}
}
}
}

View File

@ -0,0 +1,77 @@
resource "dynatrace_autotag" "Microservice" {
name = "Microservice"
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "nws"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "nws-"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "bev"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "bev-"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "wea"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "wea-"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "{ProcessGroup:Kubernetes:microservice}"
conditions {
custom_process_metadata {
attribute = "PROCESS_GROUP_CUSTOM_METADATA"
dynamic_key {
key = "microservice"
source = "KUBERNETES"
}
}
string {
# case_sensitive = false
# negate = false
operator = "EXISTS"
}
}
}
}

View File

@ -0,0 +1,20 @@
resource "dynatrace_autotag" "Namespace" {
name = "Namespace"
rules {
type = "PROCESS_GROUP"
# enabled = false
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "{ProcessGroup:KubernetesNamespace}"
conditions {
process_metadata {
attribute = "PROCESS_GROUP_PREDEFINED_METADATA"
dynamic_key = "KUBERNETES_NAMESPACE"
}
string {
# case_sensitive = false
# negate = false
operator = "EXISTS"
}
}
}
}

View File

@ -0,0 +1,59 @@
resource "dynatrace_autotag" "PaaS" {
name = "PaaS"
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "Orbit"
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "BEGINS_WITH"
value = "AWS-Orbit_"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "Runtime"
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "BEGINS_WITH"
value = "Azure-NonFG_"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "{ProcessGroup:Environment:PaaS}"
conditions {
custom_process_metadata {
attribute = "PROCESS_GROUP_CUSTOM_METADATA"
dynamic_key {
key = "PaaS"
source = "ENVIRONMENT"
}
}
string {
# case_sensitive = false
# negate = false
operator = "EXISTS"
}
}
}
}

View File

@ -0,0 +1,159 @@
resource "dynatrace_autotag" "Platform" {
name = "Platform"
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "EKS"
conditions {
process_metadata {
attribute = "PROCESS_GROUP_PREDEFINED_METADATA"
dynamic_key = "KUBERNETES_NAMESPACE"
}
string {
# case_sensitive = false
# negate = false
operator = "EXISTS"
}
}
conditions {
cloud_type {
# negate = false
operator = "EQUALS"
value = "EC2"
}
key {
type = "STATIC"
attribute = "HOST_CLOUD_TYPE"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "AKS"
conditions {
cloud_type {
# negate = false
operator = "EQUALS"
value = "AZURE"
}
key {
type = "STATIC"
attribute = "HOST_CLOUD_TYPE"
}
}
conditions {
process_metadata {
attribute = "PROCESS_GROUP_PREDEFINED_METADATA"
dynamic_key = "KUBERNETES_NAMESPACE"
}
string {
# case_sensitive = false
# negate = false
operator = "EXISTS"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "OpenShift"
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "BEGINS_WITH"
value = "OpenShift_"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "Classic IT"
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "BEGINS_WITH"
value = "Multiproject_"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "Classic IT"
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "BEGINS_WITH"
value = "SingleApplicationServer_"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "ECS"
conditions {
cloud_type {
# negate = false
operator = "EQUALS"
value = "EC2"
}
key {
type = "STATIC"
attribute = "HOST_CLOUD_TYPE"
}
}
conditions {
process_metadata {
attribute = "PROCESS_GROUP_PREDEFINED_METADATA"
dynamic_key = "KUBERNETES_NAMESPACE"
}
string {
# case_sensitive = false
negate = true
operator = "EXISTS"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE","PROCESS_GROUP_TO_HOST"]
value_format = "Classic IT"
conditions {
key {
type = "STATIC"
attribute = "HOST_GROUP_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "BEGINS_WITH"
value = "LINUX_"
}
}
}
}

View File

@ -0,0 +1,815 @@
resource "dynatrace_autotag" "WK" {
name = "WK"
rules {
type = "SERVICE"
enabled = true
propagation_types = ["SERVICE_TO_PROCESS_GROUP_LIKE","SERVICE_TO_HOST_LIKE"]
value_format = "SMACC-BE"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "SMACC-BE"
}
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "HealthResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "MetricsResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "PrometheusResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "PingResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "CONTAINS"
value = "internal service"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "CONTAINS"
value = "ProtocolDataApi"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Environment"
value = "prod"
}
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "CONTAINS"
value = "executed"
}
}
}
rules {
type = "SERVICE"
enabled = true
propagation_types = ["SERVICE_TO_PROCESS_GROUP_LIKE","SERVICE_TO_HOST_LIKE"]
value_format = "SMACC-KTS"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "SMACC-KTS"
}
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "PrometheusResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "MetricsResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "HealthResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "PingResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "CONTAINS"
value = "executed"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Environment"
value = "prod"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
propagation_types = ["SERVICE_TO_PROCESS_GROUP_LIKE","SERVICE_TO_HOST_LIKE"]
value_format = "ASBC-SMACC"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "ASBC-SMACC"
}
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "HealthResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "CONTAINS"
value = "executed"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Environment"
value = "PROD"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
propagation_types = ["SERVICE_TO_PROCESS_GROUP_LIKE","SERVICE_TO_HOST_LIKE"]
value_format = "SMACC"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "SMACC-BE"
}
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "HealthResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "MetricsResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "PrometheusResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "PingResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "CONTAINS"
value = "internal service"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "CONTAINS"
value = "ProtocolDataApi"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Environment"
value = "prod"
}
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "CONTAINS"
value = "executed"
}
}
}
rules {
type = "SERVICE"
enabled = true
propagation_types = ["SERVICE_TO_PROCESS_GROUP_LIKE","SERVICE_TO_HOST_LIKE"]
value_format = "SMACC"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "SMACC-KTS"
}
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "PrometheusResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "MetricsResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "HealthResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "PingResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "CONTAINS"
value = "executed"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Environment"
value = "prod"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
propagation_types = ["SERVICE_TO_PROCESS_GROUP_LIKE","SERVICE_TO_HOST_LIKE"]
value_format = "SMACC"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "ASBC-SMACC"
}
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "EQUALS"
value = "HealthResource"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_DETECTED_NAME"
}
string {
case_sensitive = true
negate = true
operator = "CONTAINS"
value = "executed"
}
}
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Environment"
value = "PROD"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Login"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "connected-oauth-service-apim"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Login"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "legal-document-composite-service"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Vehicle Mapping"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "user-composite-service"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Vehicle Mapping"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "vehicle-mapping-composite-service"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Vehicle List"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "vehicle-composite-service"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Remote Services"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "vehicle-remote-commands-composite-service"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Vehicle Data"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "vehicle-service"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Vehicle Data"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "vehicle-features-service"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Send destination to vehicle (Legacy)"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "destination-composite-service"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Send destination to vehicle (Legacy)"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "send-to-car-service"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Send destination to vehicle (MGU)"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "destination-composite-service"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Send destination to vehicle (MGU)"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "send-to-car-service"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Personal Favorites"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "destination-composite-service"
}
}
}
}
}

View File

@ -0,0 +1,789 @@
resource "dynatrace_autotag" "Wirkkette" {
name = "Wirkkette"
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "User Registration"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "Connected OAuth Service"
}
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "User Registration"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "ID Lookup Service "
}
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "User Registration"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "Legal Document Composite Service"
}
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "User Registration"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "User Profile Service"
}
}
}
}
rules {
type = "APPLICATION"
enabled = true
value_format = "User Registration"
conditions {
key {
type = "STATIC"
attribute = "WEB_APPLICATION_NAME"
}
string {
case_sensitive = true
negate = true
operator = "CONTAINS"
value = "Toyota"
}
}
}
rules {
type = "MOBILE_APPLICATION"
enabled = true
value_format = "User Registration"
conditions {
key {
type = "STATIC"
attribute = "MOBILE_APPLICATION_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "EXISTS"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "User Registration"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "CDIP"
}
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "Remote 360"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "Remote 360 Composite Service"
}
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "Remote Services"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "RemoteServices"
}
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "Remote Services"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "Vehicle Remote Commands Composite Service (VRCCS)"
}
}
}
}
rules {
type = "APPLICATION"
enabled = true
value_format = "Remote Services"
conditions {
key {
type = "STATIC"
attribute = "WEB_APPLICATION_NAME"
}
string {
case_sensitive = true
negate = true
operator = "CONTAINS"
value = "Toyota"
}
}
}
rules {
type = "MOBILE_APPLICATION"
enabled = true
value_format = "Remote Services"
conditions {
key {
type = "STATIC"
attribute = "MOBILE_APPLICATION_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "EXISTS"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "Remote Services"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "CDIP"
}
}
}
}
rules {
type = "MOBILE_APPLICATION"
enabled = true
value_format = "Remote 360"
conditions {
key {
type = "STATIC"
attribute = "MOBILE_APPLICATION_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "EXISTS"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "Vehicle Mapping"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "User Composite Service"
}
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "Vehicle Mapping"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "User Profile Service"
}
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "Vehicle Mapping"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "Vehicle User Relationship Service (VURS)"
}
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "Vehicle Mapping"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "Vehicle Service"
}
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "Vehicle Mapping"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "Vehicle Mapping Composite Service"
}
}
}
}
rules {
type = "APPLICATION"
enabled = true
value_format = "Vehicle Mapping"
conditions {
key {
type = "STATIC"
attribute = "WEB_APPLICATION_NAME"
}
string {
case_sensitive = true
negate = true
operator = "CONTAINS"
value = "Toyota"
}
}
}
rules {
type = "MOBILE_APPLICATION"
enabled = true
value_format = "Vehicle Mapping"
conditions {
key {
type = "STATIC"
attribute = "MOBILE_APPLICATION_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "EXISTS"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "Vehicle Mapping"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "CDIP"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Vehicle Data"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "WK"
value = "vehicle-service"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Vehicle Data"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "WK"
value = "client-vehicle-telemetry-processor"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Vehicle Data"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "WK"
value = "csi"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Vehicle Data"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "WK"
value = "ccg"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Vehicle Data"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "WK"
value = "lsc-wo"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Vehicle Data"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "WK"
value = "lsc-jr"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Vehicle Data"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "WK"
value = "lsc-hr"
}
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "Vehicle List"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "Vehicle User Relationship Service (VURS)"
}
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "Vehicle List"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "Vehicle Composite Service (VCS)"
}
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "Remote 360"
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "Remote 360"
}
}
}
}
rules {
type = "MOBILE_APPLICATION"
enabled = true
value_format = "Login"
conditions {
key {
type = "STATIC"
attribute = "MOBILE_APPLICATION_NAME"
}
string {
# case_sensitive = false
# negate = false
operator = "EXISTS"
}
}
}
rules {
type = "APPLICATION"
enabled = true
value_format = "Login"
conditions {
key {
type = "STATIC"
attribute = "WEB_APPLICATION_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "ConnectedDrive Internet Portal"
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Login"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "connected-oauth-service-apim"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Login"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "legal-document-composite-service"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Login"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "user-profile-service"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Login"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "user-composite-service"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Login"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "token-exchanger-service"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
value_format = "Login"
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "CDIP"
}
}
}
}
}

View File

@ -0,0 +1,61 @@
resource "dynatrace_autotag" "app-id" {
name = "app-id"
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "{ProcessGroup:Kubernetes:app-id}"
conditions {
custom_process_metadata {
attribute = "PROCESS_GROUP_CUSTOM_METADATA"
dynamic_key {
key = "app-id"
source = "KUBERNETES"
}
}
string {
# case_sensitive = false
# negate = false
operator = "EXISTS"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "{ProcessGroup:CommandLineArgs/-Ddtapp-id=(.*?)#}"
conditions {
process_metadata {
attribute = "PROCESS_GROUP_PREDEFINED_METADATA"
dynamic_key = "COMMAND_LINE_ARGS"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "-Ddtapp-id="
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "{ProcessGroup:Environment:app-id}"
conditions {
custom_process_metadata {
attribute = "PROCESS_GROUP_CUSTOM_METADATA"
dynamic_key {
key = "app-id"
source = "ENVIRONMENT"
}
}
string {
# case_sensitive = false
# negate = false
operator = "EXISTS"
}
}
}
}

View File

@ -0,0 +1,61 @@
resource "dynatrace_autotag" "app-name" {
name = "app-name"
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "{ProcessGroup:Kubernetes:app-name}"
conditions {
custom_process_metadata {
attribute = "PROCESS_GROUP_CUSTOM_METADATA"
dynamic_key {
key = "app-name"
source = "KUBERNETES"
}
}
string {
# case_sensitive = false
# negate = false
operator = "EXISTS"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "{ProcessGroup:CommandLineArgs/-Ddtapp-name=(.*?)#}"
conditions {
process_metadata {
attribute = "PROCESS_GROUP_PREDEFINED_METADATA"
dynamic_key = "COMMAND_LINE_ARGS"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "-Ddapp-name="
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "{ProcessGroup:Environment:app-name}"
conditions {
custom_process_metadata {
attribute = "PROCESS_GROUP_CUSTOM_METADATA"
dynamic_key {
key = "app-name"
source = "ENVIRONMENT"
}
}
string {
# case_sensitive = false
# negate = false
operator = "EXISTS"
}
}
}
}

View File

@ -0,0 +1,61 @@
resource "dynatrace_autotag" "compass-id" {
name = "compass-id"
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "{ProcessGroup:Kubernetes:compass-id}"
conditions {
custom_process_metadata {
attribute = "PROCESS_GROUP_CUSTOM_METADATA"
dynamic_key {
key = "compass-id"
source = "KUBERNETES"
}
}
string {
# case_sensitive = false
# negate = false
operator = "EXISTS"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "{ProcessGroup:CommandLineArgs/-Ddtcompass-id=(.*?)#}"
conditions {
process_metadata {
attribute = "PROCESS_GROUP_PREDEFINED_METADATA"
dynamic_key = "COMMAND_LINE_ARGS"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "-Ddtcompass-id="
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "{ProcessGroup:Environment:compass-id}"
conditions {
custom_process_metadata {
attribute = "PROCESS_GROUP_CUSTOM_METADATA"
dynamic_key {
key = "compass-id"
source = "ENVIRONMENT"
}
}
string {
# case_sensitive = false
# negate = false
operator = "EXISTS"
}
}
}
}

View File

@ -0,0 +1,61 @@
resource "dynatrace_autotag" "ms-id" {
name = "ms-id"
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "{ProcessGroup:CommandLineArgs/-Ddtms-id=(.*?)#}"
conditions {
process_metadata {
attribute = "PROCESS_GROUP_PREDEFINED_METADATA"
dynamic_key = "COMMAND_LINE_ARGS"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "-Ddtms-id="
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "{ProcessGroup:Kubernetes:ms-id}"
conditions {
custom_process_metadata {
attribute = "PROCESS_GROUP_CUSTOM_METADATA"
dynamic_key {
key = "ms-id"
source = "KUBERNETES"
}
}
string {
# case_sensitive = false
# negate = false
operator = "EXISTS"
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = ["PROCESS_GROUP_TO_SERVICE"]
value_format = "{ProcessGroup:Environment:ms-id}"
conditions {
custom_process_metadata {
attribute = "PROCESS_GROUP_CUSTOM_METADATA"
dynamic_key {
key = "ms-id"
source = "ENVIRONMENT"
}
}
string {
# case_sensitive = false
# negate = false
operator = "EXISTS"
}
}
}
}

View File

@ -0,0 +1,80 @@
resource "dynatrace_custom_service" "DPP_-_JOYNR" {
name = "DPP - JOYNR"
enabled = true
# queue_entry_point = false
rule {
enabled = true
id = "e55ba82b-05e8-414a-8cb1-c2e6c6e79049"
class {
name = "com.bmw.cc.dpp.api.joynrprovider.v1.PrivacySettingsBackendProviderImpl"
match = "EQUALS"
}
file {
name = ""
}
method {
name = "updateSettings"
arguments = ["joynr.de.bmw.infotainment.telematic.common.CommonTypes.RequestId","java.lang.Long","java.lang.Long","java.lang.String","java.lang.Boolean","joynr.de.bmw.infotainment.dataprivacy.PrivacySettingsTypes.PrivacySetting[]"]
id = "766c5a01-e4df-4077-84b4-1b691fbd82df"
returns = "void"
}
}
rule {
enabled = true
id = "dce408ef-5460-4825-b16c-62c13659a734"
class {
name = "com.bmw.cc.dpp.api.joynrprovider.v2.PrivacySettingsBackendV2ProviderImpl"
match = "EQUALS"
}
file {
name = ""
}
method {
name = "confirmSettings"
arguments = ["java.lang.String","joynr.de.bmw.infotainment.dataprivacy.v2.PrivacySettingsTypes.ResultCode"]
id = "40980cdb-4ab7-4c49-8391-5d4c636f1fad"
returns = "void"
}
method {
name = "getPrivacyUsersWithGroupsForVin"
arguments = ["joynr.de.bmw.infotainment.dataprivacy.v2.PrivacySettingsTypes.RequestId"]
id = "d805b9c6-fc5a-4c8a-b8ec-f3cb18e15d26"
returns = "joynr.de.bmw.infotainment.dataprivacy.v2.PrivacySettingsBackendSync$GetPrivacyUsersWithGroupsForVinReturned"
}
method {
name = "requestRequestSetting"
arguments = ["joynr.de.bmw.infotainment.dataprivacy.v2.PrivacySettingsTypes.RequestId","java.lang.String"]
id = "d4c923b2-819d-4f68-a8bf-9db9ed686d4e"
returns = "void"
}
method {
name = "updateSettings"
arguments = ["joynr.de.bmw.infotainment.dataprivacy.v2.PrivacySettingsTypes.RequestId","java.lang.Long","java.lang.Long","java.lang.String","java.lang.Boolean","java.lang.String","joynr.de.bmw.infotainment.dataprivacy.v2.PrivacySettingsTypes.PrivacySetting[]"]
id = "295ae9ca-80a4-46a0-af45-d3ede8261a6e"
returns = "joynr.de.bmw.infotainment.dataprivacy.v2.PrivacySettingsTypes.ResultCode"
}
}
rule {
enabled = true
id = "23599713-d521-404a-8a70-1ac1f2503156"
class {
name = "com.bmw.cc.dpp.api.joynrprovider.v3.PrivacySettingsBackendV3ProviderImpl"
match = "EQUALS"
}
file {
name = ""
}
method {
name = "requestTargetSetting"
arguments = ["joynr.de.bmw.infotainment.dataprivacy.v3.PrivacySettingsTypes.RequestId","java.lang.String"]
id = "e2badd5d-6509-4ee4-8850-6913ad63880d"
returns = "void"
}
method {
name = "updateSettings"
arguments = ["joynr.de.bmw.infotainment.dataprivacy.v3.PrivacySettingsTypes.RequestId","java.lang.Long","java.lang.Long","java.lang.String","java.lang.Boolean","joynr.de.bmw.infotainment.dataprivacy.v3.PrivacySettingsTypes.PrivacySetting[]","joynr.de.bmw.infotainment.dataprivacy.v3.PrivacySettingsTypes.OptionalParameter[]"]
id = "397a1838-66f5-4cc8-9d3f-28d50621e0ca"
returns = "joynr.de.bmw.infotainment.dataprivacy.v3.PrivacySettingsTypes.ResultCode"
}
}
}

View File

@ -0,0 +1,23 @@
resource "dynatrace_custom_service" "LSC_Worker_Kafka_IN" {
name = "LSC Worker Kafka IN"
enabled = true
queue_entry_point = true
queue_entry_point_type = "KAFKA"
rule {
enabled = true
id = "5802f3f3-8af4-42a1-981c-6b4667e58cc4"
class {
name = "com.bmw.tssb.lsc.worker.facade.LscMessageProcessingBean"
match = "EQUALS"
}
file {
name = ""
}
method {
name = "onMessage"
arguments = ["org.apache.kafka.clients.consumer.ConsumerRecord"]
id = "311fd216-ff2b-4781-8e92-e9b84290bf43"
returns = "void"
}
}
}

View File

@ -0,0 +1,18 @@
resource "dynatrace_dashboard" "EW_TEST2_f4f5c14e-7f0c-49c1-bfd4-9c740d0870a9" {
dashboard_metadata {
name = "EW_TEST2"
owner = "Ermis.Wieger@partner.bmw.de"
# shared = false
}
}
resource "dynatrace_dashboard_sharing" "EW_TEST2_f4f5c14e-7f0c-49c1-bfd4-9c740d0870a9" {
# enabled = false
dashboard_id = "f4f5c14e-7f0c-49c1-bfd4-9c740d0870a9"
# preset = false
permissions {
permission {
type = "ALL"
level = "VIEW"
}
}
}

View File

@ -0,0 +1,29 @@
resource "dynatrace_dashboard" "EW_TEST_HUHU_3fed8bb6-688f-4fcb-9ea7-a5b4a28fac90" {
dashboard_metadata {
name = "EW_TEST_HUHU"
owner = "Ermis.Wieger@partner.bmw.de"
# shared = false
}
tile {
name = "Problems"
configured = true
tile_type = "OPEN_PROBLEMS"
bounds {
height = 152
left = 76
top = 0
width = 152
}
}
}
resource "dynatrace_dashboard_sharing" "EW_TEST_HUHU_3fed8bb6-688f-4fcb-9ea7-a5b4a28fac90" {
# enabled = false
dashboard_id = "3fed8bb6-688f-4fcb-9ea7-a5b4a28fac90"
# preset = false
permissions {
permission {
type = "ALL"
level = "VIEW"
}
}
}

View File

@ -0,0 +1,784 @@
resource "dynatrace_dashboard" "Kubernetes_cluster_overview_6b38732e-8c5c-4b32-80a1-7053ec8f37e1" {
dashboard_metadata {
name = "Kubernetes cluster overview"
owner = "Dynatrace"
# shared = false
tags = ["Kubernetes"]
dynamic_filters {
filters = ["KUBERNETES_CLUSTER"]
}
}
tile {
name = "Markdown"
configured = true
markdown = "## Cluster resource overview"
tile_type = "MARKDOWN"
bounds {
height = 38
left = 0
top = 0
width = 684
}
}
tile {
name = ""
chart_visible = true
configured = true
tile_type = "HOSTS"
bounds {
height = 304
left = 342
top = 38
width = 342
}
filter {
timeframe = "-5m"
}
filter_config {
type = "HOST"
custom_name = "Full-Stack Kubernetes nodes"
default_name = "Full-Stack Kubernetes nodes"
chart_config {
type = "TIMESERIES"
legend = true
}
filters {
filter {
entity_type = "HOST"
match {
key = "HOST_SOFTWARE_TECH"
values = ["KUBERNETES"]
}
}
}
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 152
left = 190
top = 418
width = 190
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "CPU available"
default_name = "Custom chart"
chart_config {
type = "SINGLE_VALUE"
legend = true
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "KUBERNETES_CLUSTER"
metric = "builtin:cloud.kubernetes.cluster.cpuAvailable"
# sort_ascending = false
sort_column = true
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 684
top = 38
width = 304
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Pods"
default_name = "Custom chart"
chart_config {
type = "PIE"
legend = true
result_metadata {
config {
custom_color = "#008cdb"
key = "null¦Pod phase»Succeeded»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597237249882
}
config {
custom_color = "#64bd64"
key = "null¦Pod phase»Running»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234642722
}
config {
custom_color = "#f5d30f"
key = "null¦Pod phase»Pending»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234457744
}
config {
custom_color = "#ff0000"
key = "null¦Pod phase»Failed»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234118116
}
}
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION"
metric = "builtin:cloud.kubernetes.workload.pods"
# sort_ascending = false
sort_column = true
dimension {
name = "Pod phase"
# entity_dimension = false
id = "1"
}
}
}
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 152
left = 608
top = 418
width = 190
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Memory available"
default_name = "Custom chart"
chart_config {
type = "SINGLE_VALUE"
legend = true
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "KUBERNETES_CLUSTER"
metric = "builtin:cloud.kubernetes.cluster.memoryAvailable"
# sort_ascending = false
sort_column = true
}
}
}
}
tile {
name = "Markdown"
configured = true
markdown = "## Node resource usage"
tile_type = "MARKDOWN"
bounds {
height = 38
left = 0
top = 380
width = 1634
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 0
top = 38
width = 342
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Cluster nodes"
default_name = "Custom chart"
chart_config {
type = "PIE"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "KUBERNETES_CLUSTER"
metric = "builtin:cloud.kubernetes.cluster.nodes"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.kubernetes_cluster"
entity_dimension = true
id = "0"
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 152
left = 1026
top = 418
width = 190
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Disk available"
default_name = "Custom chart"
chart_config {
type = "SINGLE_VALUE"
legend = true
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "HOST"
metric = "builtin:host.disk.avail"
# sort_ascending = false
sort_column = true
}
}
filters {
filter {
entity_type = "HOST"
match {
key = "HOST_SOFTWARE_TECH"
values = ["KUBERNETES"]
}
}
}
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 0
top = 570
width = 418
}
filter_config {
type = "MIXED"
custom_name = "CPU usage % "
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "HOST"
metric = "builtin:host.cpu.usage"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.host"
entity_dimension = true
id = "0"
}
}
}
filters {
filter {
entity_type = "HOST"
match {
key = "HOST_SOFTWARE_TECH"
values = ["KUBERNETES"]
}
}
}
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 418
top = 570
width = 418
}
filter_config {
type = "MIXED"
custom_name = "Memory usage % "
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "HOST"
metric = "builtin:host.mem.usage"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.host"
entity_dimension = true
id = "0"
}
}
}
filters {
filter {
entity_type = "HOST"
match {
key = "HOST_SOFTWARE_TECH"
values = ["KUBERNETES"]
}
}
}
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 836
top = 570
width = 418
}
filter_config {
type = "MIXED"
custom_name = "Disk usage % "
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "HOST"
metric = "builtin:host.disk.usedPct"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.host"
entity_dimension = true
id = "0"
}
dimension {
name = "dt.entity.disk"
entity_dimension = true
id = "1"
}
}
}
filters {
filter {
entity_type = "HOST"
match {
key = "HOST_SOFTWARE_TECH"
values = ["KUBERNETES"]
}
}
}
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 152
left = 0
top = 418
width = 190
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Total CPU requests"
default_name = "Custom chart"
chart_config {
type = "SINGLE_VALUE"
legend = true
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "KUBERNETES_CLUSTER"
metric = "builtin:cloud.kubernetes.cluster.cpuRequested"
# sort_ascending = false
sort_column = true
}
}
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 152
left = 418
top = 418
width = 190
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Total memory requests"
default_name = "Custom chart"
chart_config {
type = "SINGLE_VALUE"
legend = true
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "KUBERNETES_CLUSTER"
metric = "builtin:cloud.kubernetes.cluster.memoryRequested"
# sort_ascending = false
sort_column = true
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 152
left = 836
top = 418
width = 190
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Total disk used"
default_name = "Custom chart"
chart_config {
type = "SINGLE_VALUE"
legend = true
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "HOST"
metric = "builtin:host.disk.used"
# sort_ascending = false
sort_column = true
}
}
filters {
filter {
entity_type = "HOST"
match {
key = "HOST_SOFTWARE_TECH"
values = ["KUBERNETES"]
}
}
}
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 1254
top = 570
width = 380
}
filter_config {
type = "MIXED"
custom_name = "Traffic in/out"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "HOST"
metric = "builtin:host.net.nic.trafficIn"
# sort_ascending = false
# sort_column = false
dimension {
name = "dt.entity.host"
entity_dimension = true
id = "0"
}
}
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "HOST"
metric = "builtin:host.net.nic.trafficOut"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.host"
entity_dimension = true
id = "0"
}
}
}
filters {
filter {
entity_type = "HOST"
match {
key = "HOST_SOFTWARE_TECH"
values = ["KUBERNETES"]
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 152
left = 1444
top = 418
width = 190
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Traffic out"
default_name = "Custom chart"
chart_config {
type = "SINGLE_VALUE"
legend = true
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "HOST"
metric = "builtin:host.net.nic.trafficOut"
# sort_ascending = false
sort_column = true
}
}
filters {
filter {
entity_type = "HOST"
match {
key = "HOST_SOFTWARE_TECH"
values = ["KUBERNETES"]
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 152
left = 1254
top = 418
width = 190
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Traffic in"
default_name = "Custom chart"
chart_config {
type = "SINGLE_VALUE"
legend = true
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "HOST"
metric = "builtin:host.net.nic.trafficIn"
# sort_ascending = false
sort_column = true
}
}
filters {
filter {
entity_type = "HOST"
match {
key = "HOST_SOFTWARE_TECH"
values = ["KUBERNETES"]
}
}
}
}
}
tile {
name = "Markdown"
configured = true
markdown = "## [Workloads overview](#dashboard;id=6b38732e-d26b-45c7-b107-ed85e87ff288)"
tile_type = "MARKDOWN"
bounds {
height = 38
left = 684
top = 0
width = 950
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 1330
top = 38
width = 304
}
filter_config {
type = "MIXED"
custom_name = "Workloads"
default_name = "Custom chart"
chart_config {
type = "PIE"
legend = true
result_metadata {
config {
custom_color = "#008cdb"
key = "null¦Pod phase»Succeeded»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597237249882
}
config {
custom_color = "#64bd64"
key = "null¦Pod phase»Running»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234642722
}
config {
custom_color = "#f5d30f"
key = "null¦Pod phase»Pending»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234457744
}
config {
custom_color = "#ff0000"
key = "null¦Pod phase»Failed»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234118116
}
config {
custom_color = "#ffa86c"
key = "null¦Deployment type»DaemonSet»falsebuiltin:cloud.kubernetes.namespace.workloads|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION_NAMESPACE"
last_modified = 1597858600132
}
}
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION_NAMESPACE"
metric = "builtin:cloud.kubernetes.namespace.workloads"
# sort_ascending = false
sort_column = true
dimension {
name = "Deployment type"
# entity_dimension = false
id = "1"
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 988
top = 38
width = 342
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Running pods"
default_name = "Custom chart"
chart_config {
type = "TOP_LIST"
legend = true
result_metadata {
config {
custom_color = "#008cdb"
key = "null¦Pod phase»Succeeded»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597237249882
}
config {
custom_color = "#64bd64"
key = "null¦Pod phase»Running»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234642722
}
config {
custom_color = "#f5d30f"
key = "null¦Pod phase»Pending»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234457744
}
config {
custom_color = "#ff0000"
key = "null¦Pod phase»Failed»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234118116
}
config {
custom_color = "#ffa86c"
key = "null¦Deployment type»DaemonSet»falsebuiltin:cloud.kubernetes.namespace.workloads|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION_NAMESPACE"
last_modified = 1597858600132
}
}
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION_NAMESPACE"
metric = "builtin:cloud.kubernetes.namespace.runningPods"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.cloud_application_namespace"
entity_dimension = true
id = "0"
}
}
}
}
}
}

View File

@ -0,0 +1,677 @@
resource "dynatrace_dashboard" "Kubernetes_namespace_resource_quotas_6b38732e-609c-44e2-b34d-0286717ecdab" {
dashboard_metadata {
name = "Kubernetes namespace resource quotas"
owner = "Dynatrace"
# shared = false
tags = ["Kubernetes"]
dynamic_filters {
filters = ["KUBERNETES_CLUSTER","RELATED_NAMESPACE"]
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 1102
top = 228
width = 570
}
filter_config {
type = "MIXED"
custom_name = "CPU limits quota used"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
left_axis_custom_unit = "MilliCores"
legend = true
result_metadata {
config {
custom_color = "#f5d30f"
key = "nullbuiltin:cloud.kubernetes.namespace.quota.cpuLimits|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION_NAMESPACE"
last_modified = 1597931668482
}
}
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION_NAMESPACE"
metric = "builtin:cloud.kubernetes.namespace.quota.usedCpuLimits"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.cloud_application_namespace"
entity_dimension = true
id = "0"
}
dimension {
name = "Resource quota name"
# entity_dimension = false
id = "1"
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 1102
top = 722
width = 570
}
filter_config {
type = "MIXED"
custom_name = "Memory limits quota used"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION_NAMESPACE"
metric = "builtin:cloud.kubernetes.namespace.quota.usedMemoryLimits"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.cloud_application_namespace"
entity_dimension = true
id = "0"
}
dimension {
name = "Resource quota name"
# entity_dimension = false
id = "1"
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 152
left = 0
top = 76
width = 418
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "CPU requests quota used"
default_name = "Custom chart"
chart_config {
type = "SINGLE_VALUE"
left_axis_custom_unit = "MilliCores"
legend = true
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION_NAMESPACE"
metric = "builtin:cloud.kubernetes.namespace.quota.usedCpuRequests"
# sort_ascending = false
sort_column = true
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 0
top = 722
width = 266
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Memory requests quota used"
default_name = "Custom chart"
chart_config {
type = "TOP_LIST"
legend = true
series {
type = "AREA"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION_NAMESPACE"
metric = "builtin:cloud.kubernetes.namespace.quota.usedMemoryRequests"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.cloud_application_namespace"
entity_dimension = true
id = "0"
}
dimension {
name = "Resource quota name"
# entity_dimension = false
id = "1"
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 0
top = 228
width = 266
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "CPU requests quota used"
default_name = "Custom chart"
chart_config {
type = "TOP_LIST"
left_axis_custom_unit = "MilliCores"
legend = true
series {
type = "AREA"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION_NAMESPACE"
metric = "builtin:cloud.kubernetes.namespace.quota.usedCpuRequests"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.cloud_application_namespace"
entity_dimension = true
id = "0"
}
dimension {
name = "Resource quota name"
# entity_dimension = false
id = "1"
}
}
}
}
}
tile {
name = "Markdown"
configured = true
markdown = "## Memory request quota"
tile_type = "MARKDOWN"
bounds {
height = 38
left = 0
top = 532
width = 836
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 266
top = 228
width = 570
}
filter_config {
type = "MIXED"
custom_name = "CPU requests quota used"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
left_axis_custom_unit = "MilliCores"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION_NAMESPACE"
metric = "builtin:cloud.kubernetes.namespace.quota.usedCpuRequests"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.cloud_application_namespace"
entity_dimension = true
id = "0"
}
dimension {
name = "Resource quota name"
# entity_dimension = false
id = "1"
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 836
top = 228
width = 266
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "CPU limits quota used"
default_name = "Custom chart"
chart_config {
type = "TOP_LIST"
left_axis_custom_unit = "MilliCores"
legend = true
result_metadata {
config {
custom_color = "#f5d30f"
key = "nullbuiltin:cloud.kubernetes.namespace.quota.cpuLimits|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION_NAMESPACE"
last_modified = 1597931668482
}
}
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION_NAMESPACE"
metric = "builtin:cloud.kubernetes.namespace.quota.usedCpuLimits"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.cloud_application_namespace"
entity_dimension = true
id = "0"
}
dimension {
name = "Resource quota name"
# entity_dimension = false
id = "1"
}
}
}
}
}
tile {
name = "Markdown"
configured = true
markdown = "## CPU requests quota "
tile_type = "MARKDOWN"
bounds {
height = 38
left = 0
top = 38
width = 836
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 266
top = 722
width = 570
}
filter_config {
type = "MIXED"
custom_name = "Memory requests quota used"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION_NAMESPACE"
metric = "builtin:cloud.kubernetes.namespace.quota.usedMemoryRequests"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.cloud_application_namespace"
entity_dimension = true
id = "0"
}
dimension {
name = "Resource quota name"
# entity_dimension = false
id = "1"
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 836
top = 722
width = 266
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Memory limits quota used"
default_name = "Custom chart"
chart_config {
type = "TOP_LIST"
legend = true
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION_NAMESPACE"
metric = "builtin:cloud.kubernetes.namespace.quota.usedMemoryLimits"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.cloud_application_namespace"
entity_dimension = true
id = "0"
}
dimension {
name = "Resource quota name"
# entity_dimension = false
id = "1"
}
}
}
}
}
tile {
name = "Markdown"
configured = true
markdown = "## Memory limits quota"
tile_type = "MARKDOWN"
bounds {
height = 38
left = 836
top = 532
width = 836
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 152
left = 418
top = 76
width = 418
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Total CPU requests quota"
default_name = "Custom chart"
chart_config {
type = "SINGLE_VALUE"
left_axis_custom_unit = "MilliCores"
legend = true
series {
type = "AREA"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION_NAMESPACE"
metric = "builtin:cloud.kubernetes.namespace.quota.cpuRequests"
# sort_ascending = false
sort_column = true
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 152
left = 836
top = 76
width = 418
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "CPU limits quota used"
default_name = "Custom chart"
chart_config {
type = "SINGLE_VALUE"
left_axis_custom_unit = "MilliCores"
legend = true
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION_NAMESPACE"
metric = "builtin:cloud.kubernetes.namespace.quota.usedCpuLimits"
# sort_ascending = false
sort_column = true
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 152
left = 1254
top = 76
width = 418
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Total CPU limits quota"
default_name = "Custom chart"
chart_config {
type = "SINGLE_VALUE"
left_axis_custom_unit = "MilliCores"
legend = true
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION_NAMESPACE"
metric = "builtin:cloud.kubernetes.namespace.quota.cpuLimits"
# sort_ascending = false
sort_column = true
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 152
left = 418
top = 570
width = 418
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Total memory requests quota"
default_name = "Custom chart"
chart_config {
type = "SINGLE_VALUE"
left_axis_custom_unit = "MilliCores"
legend = true
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION_NAMESPACE"
metric = "builtin:cloud.kubernetes.namespace.quota.memoryRequests"
# sort_ascending = false
sort_column = true
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 152
left = 0
top = 570
width = 418
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Total memory requests quota used"
default_name = "Custom chart"
chart_config {
type = "SINGLE_VALUE"
left_axis_custom_unit = "MilliCores"
legend = true
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION_NAMESPACE"
metric = "builtin:cloud.kubernetes.namespace.quota.usedMemoryRequests"
# sort_ascending = false
sort_column = true
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 152
left = 836
top = 570
width = 418
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Total memory limits quota used"
default_name = "Custom chart"
chart_config {
type = "SINGLE_VALUE"
left_axis_custom_unit = "MilliCores"
legend = true
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION_NAMESPACE"
metric = "builtin:cloud.kubernetes.namespace.quota.usedMemoryLimits"
# sort_ascending = false
sort_column = true
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 152
left = 1254
top = 570
width = 418
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Total memory limits quota"
default_name = "Custom chart"
chart_config {
type = "SINGLE_VALUE"
left_axis_custom_unit = "MilliCores"
legend = true
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION_NAMESPACE"
metric = "builtin:cloud.kubernetes.namespace.quota.memoryLimits"
# sort_ascending = false
sort_column = true
}
}
}
}
tile {
name = "Markdown"
configured = true
markdown = "## CPU limits quota"
tile_type = "MARKDOWN"
bounds {
height = 38
left = 836
top = 38
width = 836
}
}
tile {
name = "Markdown"
configured = true
markdown = "This dashboard provides an overview of your [resource quotas](https://kubernetes.io/docs/concepts/policy/resource-quotas/) by namespace. If the dashboard is empty you might need to setup quotas at the namespace level."
tile_type = "MARKDOWN"
bounds {
height = 38
left = 0
top = 0
width = 1672
}
}
}

View File

@ -0,0 +1,697 @@
resource "dynatrace_dashboard" "Kubernetes_workload_overview_6b38732e-d26b-45c7-b107-ed85e87ff288" {
dashboard_metadata {
name = "Kubernetes workload overview"
owner = "Dynatrace"
# shared = false
tags = ["Kubernetes"]
dynamic_filters {
filters = ["KUBERNETES_CLUSTER","RELATED_CLOUD_APPLICATION","RELATED_NAMESPACE"]
}
}
tile {
name = "Markdown"
configured = true
markdown = "## Pods overview"
tile_type = "MARKDOWN"
bounds {
height = 38
left = 684
top = 0
width = 950
}
}
tile {
name = "Markdown"
configured = true
markdown = "## Container resource utilization"
tile_type = "MARKDOWN"
bounds {
height = 38
left = 342
top = 380
width = 1292
}
filter {
timeframe = "Last 2 hours"
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 266
left = 342
top = 684
width = 304
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Top memory hungry containers"
default_name = "Custom chart"
chart_config {
type = "TOP_LIST"
legend = true
result_metadata {
config {
custom_color = "#7c38a1"
key = "CLOUD_APPLICATION_NAMESPACE-C61324AA70F57BCB¦CLOUD_APPLICATION_NAMESPACE»CLOUD_APPLICATION_NAMESPACE-C61324AA70F57BCB»truebuiltin:cloud.kubernetes.namespace.memoryRequests|AVG|TOTAL|LINE|CLOUD_APPLICATION_NAMESPACE"
last_modified = 1587982372047
}
config {
custom_color = "#c9a000"
key = "CLOUD_APPLICATION_NAMESPACE-375040337FEFD0D6¦CLOUD_APPLICATION_NAMESPACE»CLOUD_APPLICATION_NAMESPACE-375040337FEFD0D6»truebuiltin:cloud.kubernetes.namespace.memoryRequests|AVG|TOTAL|LINE|CLOUD_APPLICATION_NAMESPACE"
last_modified = 1587982380102
}
}
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "CONTAINER_GROUP_INSTANCE"
metric = "builtin:containers.memory.residentSetBytes"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.container_group_instance"
entity_dimension = true
id = "0"
}
}
}
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 266
left = 342
top = 418
width = 304
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Top CPU intensive containers"
default_name = "Custom chart"
chart_config {
type = "TOP_LIST"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "CONTAINER_GROUP_INSTANCE"
metric = "builtin:containers.cpu.usageMilliCores"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.container_group_instance"
entity_dimension = true
id = "0"
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 532
left = 0
top = 418
width = 304
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Running pods"
default_name = "Custom chart"
chart_config {
type = "TOP_LIST"
legend = true
result_metadata {
config {
custom_color = "#008cdb"
key = "null¦Pod phase»Succeeded»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597237249882
}
config {
custom_color = "#64bd64"
key = "null¦Pod phase»Running»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234642722
}
config {
custom_color = "#f5d30f"
key = "null¦Pod phase»Pending»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234457744
}
config {
custom_color = "#ff0000"
key = "null¦Pod phase»Failed»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234118116
}
config {
custom_color = "#ffa86c"
key = "null¦Deployment type»DaemonSet»falsebuiltin:cloud.kubernetes.namespace.workloads|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION_NAMESPACE"
last_modified = 1597858600132
}
}
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION_NAMESPACE"
metric = "builtin:cloud.kubernetes.namespace.runningPods"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.cloud_application_namespace"
entity_dimension = true
id = "0"
}
}
}
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 266
left = 1140
top = 418
width = 494
}
filter_config {
type = "MIXED"
custom_name = "Container CPU throttling"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "CONTAINER_GROUP_INSTANCE"
metric = "builtin:containers.cpu.throttledMilliCores"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.container_group_instance"
entity_dimension = true
id = "0"
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 152
left = 912
top = 190
width = 266
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Pending pods"
default_name = "Custom chart"
chart_config {
type = "TOP_LIST"
legend = true
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION"
metric = "builtin:cloud.kubernetes.workload.pods"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.cloud_application"
entity_dimension = true
id = "0"
}
dimension {
name = "Pod phase"
# entity_dimension = false
id = "1"
values = ["Pending"]
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 684
top = 38
width = 228
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Pods"
default_name = "Custom chart"
chart_config {
type = "TOP_LIST"
legend = true
result_metadata {
config {
custom_color = "#008cdb"
key = "null¦Pod phase»Succeeded»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597237249882
}
config {
custom_color = "#64bd64"
key = "null¦Pod phase»Running»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234642722
}
config {
custom_color = "#f5d30f"
key = "null¦Pod phase»Pending»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234457744
}
config {
custom_color = "#ff0000"
key = "null¦Pod phase»Failed»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234118116
}
}
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION"
metric = "builtin:cloud.kubernetes.workload.pods"
# sort_ascending = false
sort_column = true
dimension {
name = "Pod phase"
# entity_dimension = false
id = "1"
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 152
left = 912
top = 38
width = 266
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Failed pods"
default_name = "Custom chart"
chart_config {
type = "TOP_LIST"
legend = true
series {
type = "AREA"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION"
metric = "builtin:cloud.kubernetes.workload.pods"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.cloud_application"
entity_dimension = true
id = "0"
}
dimension {
name = "Pod phase"
# entity_dimension = false
id = "1"
values = ["Failed"]
}
dimension {
name = "Reason"
# entity_dimension = false
id = "2"
}
}
}
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 266
left = 1330
top = 684
width = 304
}
filter_config {
type = "MIXED"
custom_name = "Out of memory containers"
default_name = "Custom chart"
chart_config {
type = "TOP_LIST"
legend = true
series {
type = "BAR"
aggregation = "NONE"
aggregation_rate = "TOTAL"
entity_type = "CONTAINER_GROUP_INSTANCE"
metric = "builtin:containers.memory.outOfMemoryKills"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.container_group_instance"
entity_dimension = true
id = "0"
}
}
}
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 266
left = 646
top = 418
width = 494
}
filter_config {
type = "MIXED"
custom_name = "Total CPU usage vs throttling"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CONTAINER_GROUP_INSTANCE"
metric = "builtin:containers.cpu.throttledMilliCores"
# sort_ascending = false
# sort_column = false
}
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CONTAINER_GROUP_INSTANCE"
metric = "builtin:containers.cpu.usageMilliCores"
# sort_ascending = false
sort_column = true
}
}
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 266
left = 646
top = 684
width = 684
}
filter_config {
type = "MIXED"
custom_name = "Memory usage and OOM containers"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CONTAINER_GROUP_INSTANCE"
metric = "builtin:containers.memory.residentSetBytes"
# sort_ascending = false
# sort_column = false
dimension {
name = "dt.entity.container_group_instance"
entity_dimension = true
id = "0"
}
}
series {
type = "BAR"
aggregation = "NONE"
aggregation_rate = "TOTAL"
entity_type = "CONTAINER_GROUP_INSTANCE"
metric = "builtin:containers.memory.outOfMemoryKills"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.container_group_instance"
entity_dimension = true
id = "0"
}
}
}
}
}
tile {
name = "Markdown"
configured = true
markdown = "## Workloads by type"
tile_type = "MARKDOWN"
bounds {
height = 38
left = 0
top = 0
width = 684
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 0
top = 38
width = 228
}
filter {
timeframe = "-5m"
}
filter_config {
type = "MIXED"
custom_name = "Workloads"
default_name = "Custom chart"
chart_config {
type = "TOP_LIST"
legend = true
result_metadata {
config {
custom_color = "#008cdb"
key = "null¦Pod phase»Succeeded»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597237249882
}
config {
custom_color = "#64bd64"
key = "null¦Pod phase»Running»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234642722
}
config {
custom_color = "#f5d30f"
key = "null¦Pod phase»Pending»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234457744
}
config {
custom_color = "#ff0000"
key = "null¦Pod phase»Failed»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234118116
}
config {
custom_color = "#ffa86c"
key = "null¦Deployment type»DaemonSet»falsebuiltin:cloud.kubernetes.namespace.workloads|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION_NAMESPACE"
last_modified = 1597858600132
}
}
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION_NAMESPACE"
metric = "builtin:cloud.kubernetes.namespace.workloads"
# sort_ascending = false
sort_column = true
dimension {
name = "Deployment type"
# entity_dimension = false
id = "1"
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 228
top = 38
width = 456
}
filter_config {
type = "MIXED"
custom_name = "Workloads"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
result_metadata {
config {
custom_color = "#008cdb"
key = "null¦Pod phase»Succeeded»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597237249882
}
config {
custom_color = "#64bd64"
key = "null¦Pod phase»Running»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234642722
}
config {
custom_color = "#f5d30f"
key = "null¦Pod phase»Pending»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234457744
}
config {
custom_color = "#ff0000"
key = "null¦Pod phase»Failed»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234118116
}
config {
custom_color = "#ffa86c"
key = "null¦Deployment type»DaemonSet»falsebuiltin:cloud.kubernetes.namespace.workloads|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION_NAMESPACE"
last_modified = 1597858600132
}
}
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION_NAMESPACE"
metric = "builtin:cloud.kubernetes.namespace.workloads"
# sort_ascending = false
sort_column = true
dimension {
name = "Deployment type"
# entity_dimension = false
id = "1"
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 1178
top = 38
width = 456
}
filter_config {
type = "MIXED"
custom_name = "Pods"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
result_metadata {
config {
custom_color = "#008cdb"
key = "null¦Pod phase»Succeeded»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597237249882
}
config {
custom_color = "#64bd64"
key = "null¦Pod phase»Running»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234642722
}
config {
custom_color = "#f5d30f"
key = "null¦Pod phase»Pending»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234457744
}
config {
custom_color = "#ff0000"
key = "null¦Pod phase»Failed»falsebuiltin:cloud.kubernetes.workload.pods|SUM_DIMENSIONS|TOTAL|LINE|CLOUD_APPLICATION"
last_modified = 1597234118116
}
}
series {
type = "LINE"
aggregation = "SUM_DIMENSIONS"
aggregation_rate = "TOTAL"
entity_type = "CLOUD_APPLICATION"
metric = "builtin:cloud.kubernetes.workload.pods"
# sort_ascending = false
sort_column = true
dimension {
name = "Pod phase"
# entity_dimension = false
id = "1"
}
}
}
}
}
tile {
name = "Markdown"
configured = true
markdown = "## Pods per namespace"
tile_type = "MARKDOWN"
bounds {
height = 38
left = 0
top = 380
width = 304
}
}
}

View File

@ -0,0 +1,18 @@
resource "dynatrace_dashboard" "New_dashboard__Nov_26__2021_08_54_43__7a34f10c-fb29-41ec-9f4f-be858e86f2bb" {
dashboard_metadata {
name = "New dashboard (Nov 26, 2021 08:54:43)"
owner = "Dennis.Schmid@partner.bmw.de"
# shared = false
}
}
resource "dynatrace_dashboard_sharing" "New_dashboard__Nov_26__2021_08_54_43__7a34f10c-fb29-41ec-9f4f-be858e86f2bb" {
# enabled = false
dashboard_id = "7a34f10c-fb29-41ec-9f4f-be858e86f2bb"
# preset = false
permissions {
permission {
type = "ALL"
level = "VIEW"
}
}
}

View File

@ -0,0 +1,834 @@
resource "dynatrace_dashboard" "Synthetic_Monitoring_b6fc0160-9332-454f-a7bc-7217b2ae540c" {
dashboard_metadata {
name = "Synthetic Monitoring"
owner = "Dynatrace"
# shared = false
tags = ["Synthetic","Reporting"]
filter {
timeframe = "-7d to now"
}
}
tile {
name = "Browser monitor"
# configured = false
# exclude_maintenance_windows = false
tile_type = "SYNTHETIC_SINGLE_WEBCHECK"
bounds {
height = 304
left = 0
top = 570
width = 304
}
}
tile {
name = "HTTP monitor"
# configured = false
tile_type = "SYNTHETIC_HTTP_MONITOR"
bounds {
height = 304
left = 304
top = 570
width = 304
}
}
tile {
name = "Third-party monitor"
# configured = false
tile_type = "SYNTHETIC_SINGLE_EXT_TEST"
bounds {
height = 304
left = 608
top = 570
width = 304
}
}
tile {
name = "Markdown"
configured = true
markdown = "Here are some examples of useful, synthetic out-of-the-box [tiles](https://www.dynatrace.com/support/help/shortlink/pin-to-dashboard) and [custom charts](https://www.dynatrace.com/support/help/shortlink/charts-create) for **your** inspiration."
tile_type = "MARKDOWN"
bounds {
height = 38
left = 0
top = 0
width = 950
}
filter {
timeframe = "Last 2 hours"
}
}
tile {
name = "Monitor types"
configured = true
tile_type = "HEADER"
bounds {
height = 38
left = 0
top = 456
width = 304
}
}
tile {
name = "Synthetic monitor health"
chart_visible = true
configured = true
tile_type = "SYNTHETIC_TESTS"
bounds {
height = 304
left = 0
top = 76
width = 152
}
filter {
timeframe = "Last 2 hours"
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 608
top = 76
width = 722
}
filter {
timeframe = "-30d to now"
}
filter_config {
type = "MIXED"
custom_name = "Visually complete (load action)"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SYNTHETIC_BROWSER_MONITOR"
metric = "builtin:synthetic.browser.visuallyComplete.load"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.synthetic_test"
entity_dimension = true
id = "0"
}
}
}
}
}
tile {
name = "Availability"
configured = true
tile_type = "HEADER"
bounds {
height = 38
left = 0
top = 38
width = 608
}
}
tile {
name = "Performance baseline"
configured = true
tile_type = "HEADER"
bounds {
height = 38
left = 608
top = 38
width = 722
}
}
tile {
name = "Markdown"
configured = true
markdown = <<-EOT
Dynatrace Synthetic Monitoring allows you to proactively monitor the **availability** and **performance baselines** of your web applications and API endpoints. You can monitor both your public and internal web and mobile resources from around the globe or important internal locations such as branch offices. Synthetic monitors help you to find issues before they affect your customers. Dynatrace also lets you connect synthetic monitors to your [web](#deploy;gf=all), [mobile](#mobile;gf=all) and [custom](#customapplication;gf=all) applications for insights into availability.
EOT
tile_type = "MARKDOWN"
bounds {
height = 76
left = 0
top = 380
width = 1330
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 152
top = 76
width = 456
}
filter {
timeframe = "-30d to now"
}
filter_config {
type = "MIXED"
custom_name = "Availability"
default_name = "Custom chart"
chart_config {
type = "TOP_LIST"
left_axis_custom_unit = "Percent"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SYNTHETIC_BROWSER_MONITOR"
metric = "builtin:synthetic.browser.availability.location.total"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.synthetic_test"
entity_dimension = true
id = "0"
}
}
}
}
}
tile {
name = "Markdown"
configured = true
markdown = "**[Browser monitors](#newcheckwizard;gf=all;webcheckPage=1;webcheckMode=browserMonitor;reset=true)** use a full Chrome instance to simulate complete page loads as well as complex clickpaths."
tile_type = "MARKDOWN"
bounds {
height = 76
left = 0
top = 494
width = 304
}
}
tile {
name = "Markdown"
configured = true
markdown = "**[HTTP monitors](#newmonitor2;gf=all;webcheckPage=0;webcheckMode=httpCheck;reset=true)** execute single HTTP requests. They are perfect to monitor your APIs and health check endpoints."
tile_type = "MARKDOWN"
bounds {
height = 76
left = 304
top = 494
width = 304
}
}
tile {
name = "Markdown"
configured = true
markdown = "You can even ingest [third-party synthetic](#newcheckwizard;gf=all;webcheckPage=1;webcheckMode=externalMonitor;reset=true) data into dynatrace from external sources to enrich Dynatrace data."
tile_type = "MARKDOWN"
bounds {
height = 76
left = 608
top = 494
width = 304
}
}
tile {
name = "Worldwide locations"
configured = true
tile_type = "HEADER"
bounds {
height = 38
left = 912
top = 456
width = 418
}
}
tile {
name = "Performance metrics"
configured = true
tile_type = "HEADER"
bounds {
height = 38
left = 0
top = 912
width = 1330
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 190
left = 646
top = 988
width = 342
}
filter {
timeframe = "-30d to now"
}
filter_config {
type = "MIXED"
custom_name = "Visually complete (load action)"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SYNTHETIC_BROWSER_MONITOR"
metric = "builtin:synthetic.browser.visuallyComplete.load"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.synthetic_test"
entity_dimension = true
id = "0"
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 190
left = 0
top = 988
width = 304
}
filter {
timeframe = "-30d to now"
}
filter_config {
type = "MIXED"
custom_name = "Time to first byte (load action)"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SYNTHETIC_BROWSER_MONITOR"
metric = "builtin:synthetic.browser.firstByte.load"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.synthetic_test"
entity_dimension = true
id = "0"
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 190
left = 304
top = 988
width = 342
}
filter {
timeframe = "-30d to now"
}
filter_config {
type = "MIXED"
custom_name = "DOM interactive (load action)"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SYNTHETIC_BROWSER_MONITOR"
metric = "builtin:synthetic.browser.domInteractive.load"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.synthetic_test"
entity_dimension = true
id = "0"
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 190
left = 988
top = 988
width = 342
}
filter {
timeframe = "-30d to now"
}
filter_config {
type = "MIXED"
custom_name = "Total duration"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SYNTHETIC_BROWSER_MONITOR"
metric = "builtin:synthetic.browser.totalDuration"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.synthetic_test"
entity_dimension = true
id = "0"
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 190
left = 0
top = 1178
width = 304
}
filter {
timeframe = "-30d to now"
}
filter_config {
type = "MIXED"
custom_name = "HTTP monitor - DNS lookup time (by location)"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SYNTHETIC_HTTPCHECK"
metric = "builtin:synthetic.http.dns.geo"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.http_check"
entity_dimension = true
id = "0"
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 190
left = 304
top = 1178
width = 342
}
filter {
timeframe = "-30d to now"
}
filter_config {
type = "MIXED"
custom_name = "HTTP monitor - TCP connect time (by location)"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SYNTHETIC_HTTPCHECK"
metric = "builtin:synthetic.http.tcpConnectTime.geo"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.http_check"
entity_dimension = true
id = "0"
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 190
left = 646
top = 1178
width = 342
}
filter {
timeframe = "-30d to now"
}
filter_config {
type = "MIXED"
custom_name = "HTTP monitor - DNS lookup time (by location)"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SYNTHETIC_HTTPCHECK"
metric = "builtin:synthetic.http.dns.geo"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.http_check"
entity_dimension = true
id = "0"
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 190
left = 988
top = 1178
width = 342
}
filter {
timeframe = "-30d to now"
}
filter_config {
type = "MIXED"
custom_name = "HTTP monitor - Duration (by location)"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SYNTHETIC_HTTPCHECK"
metric = "builtin:synthetic.http.duration.geo"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.http_check"
entity_dimension = true
id = "0"
}
}
}
}
}
tile {
name = "Real User Monitoring (RUM) for web and mobile applications"
configured = true
tile_type = "HEADER"
bounds {
height = 38
left = 0
top = 1862
width = 1330
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 342
left = 304
top = 1482
width = 570
}
filter {
timeframe = "-30d to now"
}
filter_config {
type = "MIXED"
custom_name = "Failed executions"
default_name = "Custom chart"
chart_config {
type = "TIMESERIES"
legend = true
series {
type = "BAR"
aggregation = "NONE"
aggregation_rate = "TOTAL"
entity_type = "SYNTHETIC_BROWSER_MONITOR"
metric = "builtin:synthetic.browser.failure"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.synthetic_test"
entity_dimension = true
id = "0"
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 342
left = 874
top = 1482
width = 456
}
filter {
timeframe = "-30d to now"
}
filter_config {
type = "MIXED"
custom_name = "Error details"
default_name = "Custom chart"
chart_config {
type = "TOP_LIST"
legend = true
series {
type = "LINE"
aggregation = "NONE"
aggregation_rate = "TOTAL"
entity_type = "SYNTHETIC_BROWSER_MONITOR"
metric = "builtin:synthetic.browser.errorCodes"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.synthetic_test"
entity_dimension = true
id = "0"
}
dimension {
name = "By error code"
# entity_dimension = false
id = "1"
}
}
}
}
}
tile {
name = ""
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 342
left = 0
top = 1482
width = 304
}
filter {
timeframe = "-30d to now"
}
filter_config {
type = "MIXED"
custom_name = "HTTP monitor - Status code (by location)"
default_name = "Custom chart"
chart_config {
type = "PIE"
legend = true
result_metadata {
config {
custom_color = "#02ca02"
key = "null¦Status code»SC_2xx»falsebuiltin:synthetic.http.statusCode|NONE|TOTAL|LINE|SYNTHETIC_HTTPCHECK"
last_modified = 1600259367018
}
config {
custom_color = "#ca0202"
key = "null¦Status code»SC_5xx»falsebuiltin:synthetic.http.statusCode|NONE|TOTAL|LINE|SYNTHETIC_HTTPCHECK"
last_modified = 1600259377529
}
}
series {
type = "LINE"
aggregation = "NONE"
aggregation_rate = "TOTAL"
entity_type = "SYNTHETIC_HTTPCHECK"
metric = "builtin:synthetic.http.statusCode"
# sort_ascending = false
sort_column = true
dimension {
name = "Status code"
# entity_dimension = false
id = "2"
}
}
}
}
}
tile {
name = "Custom chart"
configured = true
tile_type = "CUSTOM_CHARTING"
bounds {
height = 304
left = 912
top = 570
width = 418
}
filter_config {
type = "MIXED"
custom_name = "Availability"
default_name = "Custom chart"
chart_config {
type = "TOP_LIST"
legend = true
series {
type = "LINE"
aggregation = "AVG"
aggregation_rate = "TOTAL"
entity_type = "SYNTHETIC_BROWSER_MONITOR"
metric = "builtin:synthetic.browser.availability.location.total"
# sort_ascending = false
sort_column = true
dimension {
name = "dt.entity.geolocation"
entity_dimension = true
id = "1"
}
}
}
}
}
tile {
name = "Markdown"
configured = true
markdown = "Dynatrace synthetic monitoring offers a wide array of metrics out of the box, from network level details to user experience focused metrics like Visually complete."
tile_type = "MARKDOWN"
bounds {
height = 38
left = 0
top = 950
width = 1330
}
}
tile {
name = "Markdown"
configured = true
markdown = "Monitor from over 90 worldwide high availability and multi-cloud locations. Easily extend your coverage with [private synthetic locations](#settings/syntheticprivatelocations;gf=all)."
tile_type = "MARKDOWN"
bounds {
height = 76
left = 912
top = 494
width = 418
}
}
tile {
name = "World map"
assigned_entities = ["GEOLOCATION-0000000000000000","WORLD"]
configured = true
metric = "APDEX"
tile_type = "APPLICATION_WORLDMAP"
bounds {
height = 304
left = 0
top = 1938
width = 304
}
}
tile {
name = "Markdown"
configured = true
markdown = "Synthetic offers consistent insights from a controlled, lab-like environment. Don't forget to also look at **[real user monitoring dat](#uemapplications;gf=all;gtf=-2h)a** to get the complete picture."
tile_type = "MARKDOWN"
bounds {
height = 38
left = 0
top = 1900
width = 1330
}
filter {
timeframe = "Last 2 hours"
}
}
tile {
name = "Markdown"
configured = true
markdown = "Quickly find the root cause of errors reported by synthetic monitors. Gain full visibility by [deploying the OneAgent](#deploy;gf=all) to drill down from synthetic executions directly into code-level purepaths."
tile_type = "MARKDOWN"
bounds {
height = 38
left = 0
top = 1444
width = 1330
}
}
tile {
name = "Error details"
configured = true
tile_type = "HEADER"
bounds {
height = 38
left = 0
top = 1406
width = 1330
}
}
tile {
name = "Top web applications"
configured = true
tile_type = "APPLICATIONS_MOST_ACTIVE"
bounds {
height = 304
left = 304
top = 1938
width = 304
}
}
tile {
name = "Application health"
chart_visible = true
configured = true
tile_type = "APPLICATIONS"
bounds {
height = 304
left = 608
top = 1938
width = 266
}
}
tile {
name = "Mobile app"
# configured = false
tile_type = "MOBILE_APPLICATION"
bounds {
height = 152
left = 874
top = 1938
width = 304
}
}
}

View File

@ -0,0 +1,11 @@
resource "dynatrace_management_zone" "PD_AccountManagementConnectedCar" {
name = "PD_AccountManagementConnectedCar"
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:AM-CESIM\"),tag(\"compass-id:AM-Device\"),tag(\"compass-id:AM-EGIM\"),tag(\"compass-id:AM-MNO-Manager\"),tag(\"compass-id:CESIM Proxy\"),tag(\"compass-id:MNOMGR-CU-Jasper\"),tag(\"compass-id:MNOMGR-CU-SHA\"),tag(\"compass-id:MNOMGR-GD\"),tag(\"compass-id:MNOMGR-TMSP\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:AM-BPM\"),tag(\"compass-id:AM-CASA\"),tag(\"compass-id:am-cloud\"),tag(\"compass-id:AM-CNR\"),tag(\"compass-id:AM-CNS\"),tag(\"compass-id:AM-ECS\"),tag(\"compass-id:AM-LMCS\"),tag(\"compass-id:AM-Proxy\"),tag(\"compass-id:AM-Store\"),tag(\"compass-id:AM-SVMS\"),tag(\"compass-id:AM-SVMS-EventService\"),tag(\"compass-id:AM-USAGE\"),tag(\"compass-id:AM-VAS\"),tag(\"compass-id:AM-Vehicle\"),tag(\"compass-id:AM-VMS\"),tag(\"compass-id:Countly\"),tag(\"compass-id:TAMSArchive\"),tag(\"compass-id:TestdataTool\")"
}
}

View File

@ -0,0 +1,27 @@
resource "dynatrace_management_zone" "PD_AutomotiveSecurity" {
name = "PD_AutomotiveSecurity"
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:ASBC-MFSCS\"),tag(\"compass-id:STM\"),tag(\"compass-id:ts-wlupdater\"),tag(\"compass-id:TVP\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:DFP\"),tag(\"compass-id:DFPH\"),tag(\"compass-id:OCLISc2v\"),tag(\"compass-id:OCLISocsp\"),tag(\"compass-id:P2X\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:ASBC-HAL\"),tag(\"compass-id:ASBC-NGTP\"),tag(\"compass-id:ASBS\"),tag(\"compass-id:HPAuth\"),tag(\"compass-id:STS\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:ASBC-SMACC\"),tag(\"compass-id:CAC\"),tag(\"compass-id:CAC-AGENT\"),tag(\"compass-id:SMC2-BL\"),tag(\"compass-id:SMC2-KEY-TRK\"),tag(\"compass-id:SMC2-RT\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:ASBC-RSU\"),tag(\"compass-id:ASBC-SBB\"),tag(\"compass-id:ASBCSWLSEC2\"),tag(\"compass-id:PSdZ-Checker\"),tag(\"compass-id:SCB\"),tag(\"compass-id:SCC\"),tag(\"compass-id:SWAG\"),tag(\"compass-id:SWLSEC2-Checker\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:ASBC-AFW-POC\"),tag(\"compass-id:ASBC-AFWSFA-POC\"),tag(\"compass-id:ASBC-AFWSTM-POC\")"
}
}

View File

@ -0,0 +1,23 @@
resource "dynatrace_management_zone" "PD_CallServices" {
name = "PD_CallServices"
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:ACDS\"),tag(\"compass-id:APPCALL\"),tag(\"compass-id:B2V-NGTP\"),tag(\"compass-id:ECALLGW\"),tag(\"compass-id:ECS\"),tag(\"compass-id:EVNS2\"),tag(\"compass-id:EVNS2T\"),tag(\"compass-id:NGTP-CS\"),tag(\"compass-id:XCS\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:BASE\"),tag(\"compass-id:CCC\"),tag(\"compass-id:RSA\"),tag(\"compass-id:RSA-ASD-Search\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:PiSA-CORE\"),tag(\"compass-id:PISA-EVENT-HANDLER\"),tag(\"compass-id:PISA-RUNTIME\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:HTTS\"),tag(\"compass-id:HVD\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:B2V-Voice\"),tag(\"compass-id:CRS\"),tag(\"compass-id:CRSA\"),tag(\"compass-id:EPL\"),tag(\"compass-id:EPM\"),tag(\"compass-id:VOICEGW\"),tag(\"compass-id:VOICEGW-ADMIN\")"
}
}

View File

@ -0,0 +1,11 @@
resource "dynatrace_management_zone" "PD_ConnectedDriveStoreBackend" {
name = "PD_ConnectedDriveStoreBackend"
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:Buffet-Birt\"),tag(\"compass-id:Buffet-CIC-Backend\"),tag(\"compass-id:Buffet-Core\"),tag(\"compass-id:Buffet-External-CDM\"),tag(\"compass-id:Buffet-External-Offer\"),tag(\"compass-id:Buffet-External-Payment\"),tag(\"compass-id:Buffet-External-Tax\"),tag(\"compass-id:Buffet-GAM\"),tag(\"compass-id:Buffet-IF33\"),tag(\"compass-id:Buffet-IF38\"),tag(\"compass-id:Buffet-IF41\"),tag(\"compass-id:Buffet-IF50\"),tag(\"compass-id:Buffet-IF51\"),tag(\"compass-id:Buffet-IF52\"),tag(\"compass-id:Buffet-IF53\"),tag(\"compass-id:Buffet-IF54\"),tag(\"compass-id:Buffet-IF58\"),tag(\"compass-id:Buffet-IF60\"),tag(\"compass-id:Buffet-IF90\"),tag(\"compass-id:Buffet-Promo-API\"),tag(\"compass-id:IME-CDS\"),tag(\"compass-id:IME-CS\"),tag(\"compass-id:IME-RDC\"),tag(\"compass-id:IME-SS\"),tag(\"compass-id:IME-WS\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:Concat\"),tag(\"compass-id:Connected-Catalog\")"
}
}

View File

@ -0,0 +1,11 @@
resource "dynatrace_management_zone" "PD_ConnectedUserProfileServices" {
name = "PD_ConnectedUserProfileServices"
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:OMC Table Storage Expiration Service\"),tag(\"compass-id:omc-client-analytics-hub-consumer-ms\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:DPM\"),tag(\"compass-id:DPP\"),tag(\"compass-id:PERSEUS\"),tag(\"compass-id:PIABO\"),tag(\"compass-id:PIAEP\"),tag(\"compass-id:PIAOP\"),tag(\"compass-id:PIAPE\")"
}
}

View File

@ -0,0 +1,23 @@
resource "dynatrace_management_zone" "PD_InfotainmentInteractivityServices" {
name = "PD_InfotainmentInteractivityServices"
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:cm-config\"),tag(\"compass-id:cm-gracenote\"),tag(\"compass-id:cm-spotify\"),tag(\"compass-id:cm-ximalaya\"),tag(\"compass-id:OED\"),tag(\"compass-id:OED-CN\"),tag(\"compass-id:OEG\"),tag(\"compass-id:OEG-CN\"),tag(\"compass-id:OEO\"),tag(\"compass-id:OEO-CN\"),tag(\"compass-id:OEP\"),tag(\"compass-id:OEP-CN\"),tag(\"compass-id:OES\"),tag(\"compass-id:OES-CN\"),tag(\"compass-id:OET\"),tag(\"compass-id:OET-CN\"),tag(\"compass-id:shortvideo\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:CCIS-Download\"),tag(\"compass-id:Geolocator\"),tag(\"compass-id:intelligent-reminder\"),tag(\"compass-id:news-next\"),tag(\"compass-id:restaurant-reservation\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:ambient-music\"),tag(\"compass-id:festive-mode\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:GEN3\"),tag(\"compass-id:ID5\"),tag(\"compass-id:ID5-APP\"),tag(\"compass-id:ID5-EXT\"),tag(\"compass-id:ISE-BEV\"),tag(\"compass-id:ISE-CDR\"),tag(\"compass-id:ISE-EML\"),tag(\"compass-id:ISE-GEN2\"),tag(\"compass-id:ISE-ID7\"),tag(\"compass-id:ISE-INP\"),tag(\"compass-id:ISE-IPA\"),tag(\"compass-id:ISE-LIS\"),tag(\"compass-id:ISE-LOC\"),tag(\"compass-id:ISE-MCL\"),tag(\"compass-id:ISE-NEWS\"),tag(\"compass-id:ISE-PAR\"),tag(\"compass-id:ISE-RSL\"),tag(\"compass-id:ISE-VPS\"),tag(\"compass-id:ISE-VSD\"),tag(\"compass-id:tmpp-admin-ui\"),tag(\"compass-id:tmpp-manifest\"),tag(\"compass-id:tmpp-web-proxy\"),tag(\"compass-id:UPS\"),tag(\"compass-id:WEA\"),tag(\"compass-id:WEA-ID5\"),tag(\"compass-id:WEA-IN-MAP\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:CDIP\")"
}
}

View File

@ -0,0 +1,15 @@
resource "dynatrace_management_zone" "PD_LocationServices" {
name = "PD_LocationServices"
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:C2B-BS\"),tag(\"compass-id:GCS\"),tag(\"compass-id:LOS-CHA\"),tag(\"compass-id:LOS-CHA-CNV\"),tag(\"compass-id:LOS-JOY\"),tag(\"compass-id:LOS-MOD\"),tag(\"compass-id:LOS-MSC\"),tag(\"compass-id:LOS-OPS\"),tag(\"compass-id:LOS-PAR\"),tag(\"compass-id:LOS-PER\"),tag(\"compass-id:LOS-REF\"),tag(\"compass-id:RES-PAR\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:LOS-FTS\"),tag(\"compass-id:potholes-reader\"),tag(\"compass-id:potholes-service\"),tag(\"compass-id:sc-reader\"),tag(\"compass-id:sc-service\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:ercaf\"),tag(\"compass-id:ERCR\"),tag(\"compass-id:ERTP\")"
}
}

View File

@ -0,0 +1,11 @@
resource "dynatrace_management_zone" "PD_MapServicesAutomatedDriving" {
name = "PD_MapServicesAutomatedDriving"
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:ms-hdmap-lcv\"),tag(\"compass-id:ms-hdmap-map-viewer\"),tag(\"compass-id:ms-hdmap-mci-adapter\"),tag(\"compass-id:ms-hdmap-mci-downloader\"),tag(\"compass-id:ms-hdmap-nds-downloader\"),tag(\"compass-id:ms-hdmap-qc-bl\"),tag(\"compass-id:ms-hdmap-qc-checks\"),tag(\"compass-id:ms-hdmap-tile-delivery\"),tag(\"compass-id:ms-hdmap-tile-generator\"),tag(\"compass-id:ms-hdmap-vehicle-mock\"),tag(\"compass-id:mupi-backend\"),tag(\"compass-id:MUPI-BE\"),tag(\"compass-id:mupi-cloud-discovery-service\"),tag(\"compass-id:mupi-cloud-dumm-adapter-service\"),tag(\"compass-id:mupi-cloud-hd-adapter-service\"),tag(\"compass-id:mupi-cloud-import-service\"),tag(\"compass-id:mupi-cloud-integration-service\"),tag(\"compass-id:mupi-cloud-joynr-adapter-class-service\"),tag(\"compass-id:mupi-cloud-joynr-adapter-service\"),tag(\"compass-id:mupi-cloud-stats-service\"),tag(\"compass-id:mupi-cockpit\"),tag(\"compass-id:mupi-gateway\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:GNSS API Gateway\"),tag(\"compass-id:gnss-reader\"),tag(\"compass-id:gnss-service\"),tag(\"compass-id:ms-3dp-rc\"),tag(\"compass-id:tc-app\"),tag(\"compass-id:tc-service\")"
}
}

View File

@ -0,0 +1,15 @@
resource "dynatrace_management_zone" "PD_NavigationServices" {
name = "PD_NavigationServices"
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:OSPI\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:DM\"),tag(\"compass-id:eRoute\"),tag(\"compass-id:NaaS\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:CNGW\"),tag(\"compass-id:RTTI\")"
}
}

View File

@ -0,0 +1,11 @@
resource "dynatrace_management_zone" "PD_RemoteMessagingServices" {
name = "PD_RemoteMessagingServices"
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:EADB\"),tag(\"compass-id:ICNB\"),tag(\"compass-id:MSGSVC\"),tag(\"compass-id:OMGW\"),tag(\"compass-id:TCN\"),tag(\"compass-id:XCC-CAMPAIGNS\"),tag(\"compass-id:XCC-CMGR\"),tag(\"compass-id:XCC-SETTINGS\"),tag(\"compass-id:XCC-STATISTICS\"),tag(\"compass-id:XCC-USERS\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:APIGW\"),tag(\"compass-id:FMC\"),tag(\"compass-id:RS\"),tag(\"compass-id:RS360\"),tag(\"compass-id:RSCockpit\")"
}
}

View File

@ -0,0 +1,23 @@
resource "dynatrace_management_zone" "PD_RemoteVehicleConfigurationManagement" {
name = "PD_RemoteVehicleConfigurationManagement"
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:APR\"),tag(\"compass-id:APR-NPM\"),tag(\"compass-id:APR-Portal\"),tag(\"compass-id:APR-Registry\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:comfy-agent-registry\"),tag(\"compass-id:comfy-cockpit\"),tag(\"compass-id:comfy-management\"),tag(\"compass-id:comfy-orchestration\"),tag(\"compass-id:NOP-Admin\"),tag(\"compass-id:NOP-Archive\"),tag(\"compass-id:NOP-Provisioning\"),tag(\"compass-id:NOP-Trigger\"),tag(\"compass-id:SCM\"),tag(\"compass-id:SCMA\"),tag(\"compass-id:VPS-Admin\"),tag(\"compass-id:VPS-Archive\"),tag(\"compass-id:VPS-Monitor\"),tag(\"compass-id:VPS-Prov\"),tag(\"compass-id:VPS-Trigger\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:FRE\"),tag(\"compass-id:FRS\"),tag(\"compass-id:MPG\"),tag(\"compass-id:QMC\"),tag(\"compass-id:RCM\"),tag(\"compass-id:RCP\"),tag(\"compass-id:RCS\"),tag(\"compass-id:RDC\"),tag(\"compass-id:RDH\"),tag(\"compass-id:RES\"),tag(\"compass-id:RLM\"),tag(\"compass-id:RMO\"),tag(\"compass-id:RNB App\"),tag(\"compass-id:RNP\"),tag(\"compass-id:RPP\"),tag(\"compass-id:RSA Admin GUI\"),tag(\"compass-id:RSA Testbench GUI\"),tag(\"compass-id:RTE\"),tag(\"compass-id:RTS\"),tag(\"compass-id:RVC\"),tag(\"compass-id:RVE\"),tag(\"compass-id:RVI\"),tag(\"compass-id:RVS\"),tag(\"compass-id:RVT\"),tag(\"compass-id:rwd\"),tag(\"compass-id:tdp\"),tag(\"compass-id:uvm\"),tag(\"compass-id:vjm\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:ZAS\"),tag(\"compass-id:ZDI\"),tag(\"compass-id:ZFUS-MP-GENERATOR\"),tag(\"compass-id:ZIP\"),tag(\"compass-id:zis\"),tag(\"compass-id:ZMP\"),tag(\"compass-id:ZOS\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:SFA-FRE\"),tag(\"compass-id:SFA-OH\"),tag(\"compass-id:SFA-OTA\"),tag(\"compass-id:SFA-S\"),tag(\"compass-id:SFA-TS\")"
}
}

View File

@ -0,0 +1,15 @@
resource "dynatrace_management_zone" "PD_Teleservices" {
name = "PD_Teleservices"
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:RSURService\"),tag(\"compass-id:SCallService\"),tag(\"compass-id:SEAM\"),tag(\"compass-id:ts-asc\"),tag(\"compass-id:TSBGService\"),tag(\"compass-id:TSBM\"),tag(\"compass-id:TS-CCM-DI\"),tag(\"compass-id:TSCS\"),tag(\"compass-id:TSDD\"),tag(\"compass-id:TSMR\"),tag(\"compass-id:TS-PFFS\"),tag(\"compass-id:TSSB-BT\"),tag(\"compass-id:TSSB-BTI\"),tag(\"compass-id:TSSB-TSP\"),tag(\"compass-id:TS-SDI\"),tag(\"compass-id:ts-tyredi\"),tag(\"compass-id:ts-tyrewf\"),tag(\"compass-id:TTBS\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:BCallService\"),tag(\"compass-id:CAS-SPM\"),tag(\"compass-id:CAS-STM\"),tag(\"compass-id:DiagService\"),tag(\"compass-id:ESHAD\"),tag(\"compass-id:patchcampaign\"),tag(\"compass-id:RTCAD\"),tag(\"compass-id:RTCHandler\"),tag(\"compass-id:RTCService\"),tag(\"compass-id:ts-bcallhandler\"),tag(\"compass-id:ts-cts-ui\"),tag(\"compass-id:ts-pat-ui\"),tag(\"compass-id:TSRD\"),tag(\"compass-id:ts-rtc-ui\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:PDMManager\"),tag(\"compass-id:PDMUpdater\"),tag(\"compass-id:ts-ena-ui\"),tag(\"compass-id:WLManager\"),tag(\"compass-id:WLUpdater\")"
}
}

View File

@ -0,0 +1,23 @@
resource "dynatrace_management_zone" "PD_VehicleDataCollection" {
name = "PD_VehicleDataCollection"
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:CMCS\"),tag(\"compass-id:ERDCDC2FCD\"),tag(\"compass-id:ERDDISP\"),tag(\"compass-id:ERDFCDUDS\"),tag(\"compass-id:ERDMGR\"),tag(\"compass-id:ERDPROC\"),tag(\"compass-id:ERDXFCDFCD\"),tag(\"compass-id:XFCD Cockpit\"),tag(\"compass-id:XFCD Configuration\"),tag(\"compass-id:XFCDAnonymizer\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:TOL\"),tag(\"compass-id:TOL MGU\"),tag(\"compass-id:TOL-TSSB\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:IDS-SVDS\"),tag(\"compass-id:IDS-Sync\"),tag(\"compass-id:IDS-WS\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:SRManager\"),tag(\"compass-id:TSMB\"),tag(\"compass-id:TSR-CH\"),tag(\"compass-id:TSR-CMA\"),tag(\"compass-id:TSR-DD\"),tag(\"compass-id:TSR-ICC\"),tag(\"compass-id:TSR-VU\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:CCG\"),tag(\"compass-id:CSI\"),tag(\"compass-id:CSU\"),tag(\"compass-id:LSCFSU\"),tag(\"compass-id:LSCHR\"),tag(\"compass-id:LSCJHWO\"),tag(\"compass-id:LSCJR\"),tag(\"compass-id:LSCKC\"),tag(\"compass-id:LSCMM\"),tag(\"compass-id:LSCOC\"),tag(\"compass-id:LSCOG\"),tag(\"compass-id:LSCWO\"),tag(\"compass-id:tripCollection\"),tag(\"compass-id:vdc-vcs\"),tag(\"compass-id:VHCJR\"),tag(\"compass-id:VHS\"),tag(\"compass-id:VJDS\"),tag(\"compass-id:VNS\"),tag(\"compass-id:VS-API\"),tag(\"compass-id:VSFO\"),tag(\"compass-id:VSST\")"
}
}

View File

@ -0,0 +1,15 @@
resource "dynatrace_management_zone" "PD_VehicleDataConnectivity" {
name = "PD_VehicleDataConnectivity"
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:B2V-ADC\"),tag(\"compass-id:B2V-ADC-CLOUD\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:B2V-COM-BE\"),tag(\"compass-id:B2V-COM-ECHO\"),tag(\"compass-id:B2V-COM-FE\"),tag(\"compass-id:B2VCOMGCDMCLIENT\"),tag(\"compass-id:B2V-NOTS\")"
}
entity_selector_based_rule {
enabled = true
selector = "type(Service),tag(\"compass-id:JoynrDS\"),tag(\"compass-id:UDS\"),tag(\"compass-id:UDS Storage Service\")"
}
}

View File

@ -0,0 +1,34 @@
resource "dynatrace_management_zone" "Sockshop_dev" {
name = "Sockshop dev"
rules {
type = "SERVICE"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "ENVIRONMENT"
key = "product"
value = "sockshop"
}
}
}
conditions {
process_metadata {
attribute = "PROCESS_GROUP_PREDEFINED_METADATA"
dynamic_key = "KUBERNETES_NAMESPACE"
}
string {
# case_sensitive = false
# negate = false
operator = "EQUALS"
value = "dev"
}
}
}
}

View File

@ -0,0 +1,43 @@
resource "dynatrace_service_naming" "Go_-_WebRequestServices" {
name = "Go - WebRequestServices"
enabled = true
format = "{ProcessGroup:DetectedName}"
conditions {
condition {
key {
type = "STATIC"
attribute = "SERVICE_TYPE"
}
service_type {
# negate = false
operator = "EQUALS"
value = "WEB_REQUEST_SERVICE"
}
}
condition {
key {
type = "STATIC"
attribute = "SERVICE_TECHNOLOGY"
}
tech {
# negate = false
operator = "EQUALS"
value {
type = "GO"
}
}
}
condition {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_DETECTED_NAME"
}
string {
# case_sensitive = false
negate = true
operator = "CONTAINS"
value = "dynatrace"
}
}
}
}

View File

@ -0,0 +1,107 @@
resource "dynatrace_request_attribute" "GCID" {
name = "GCID"
enabled = true
aggregation = "FIRST"
confidential = true
data_type = "STRING"
normalization = "ORIGINAL"
# skip_personal_data_masking = false
data_sources {
enabled = true
capturing_and_storage_location = "CAPTURE_AND_STORE_ON_SERVER"
source = "URI_PATH"
value_processing {
# split_at = ""
# trim = false
value_extractor_regex = "(\\w{8}-\\w{4}-\\w{4}-\\w{4}-\\w{12})"
extract_substring {
delimiter = "/gcid/"
position = "AFTER"
}
}
}
data_sources {
enabled = true
capturing_and_storage_location = "CAPTURE_AND_STORE_ON_SERVER"
source = "URI_PATH"
value_processing {
# split_at = ""
# trim = false
value_extractor_regex = "(\\w{8}-\\w{4}-\\w{4}-\\w{4}-\\w{12})"
extract_substring {
delimiter = "/customer/"
position = "AFTER"
}
}
}
data_sources {
enabled = true
capturing_and_storage_location = "CAPTURE_AND_STORE_ON_SERVER"
source = "URI_PATH"
value_processing {
# split_at = ""
# trim = false
value_extractor_regex = "(\\w{8}-\\w{4}-\\w{4}-\\w{4}-\\w{12})"
extract_substring {
delimiter = "/motorist/"
position = "BEFORE"
}
}
}
data_sources {
enabled = true
capturing_and_storage_location = "CAPTURE_AND_STORE_ON_SERVER"
source = "URI_PATH"
value_processing {
# split_at = ""
# trim = false
value_extractor_regex = "(\\w{8}-\\w{4}-\\w{4}-\\w{4}-\\w{12})"
extract_substring {
delimiter = "/motorists/"
position = "BEFORE"
}
}
}
data_sources {
enabled = true
capturing_and_storage_location = "CAPTURE_AND_STORE_ON_SERVER"
source = "URI_PATH"
value_processing {
# split_at = ""
# trim = false
value_extractor_regex = "(\\w{8}-\\w{4}-\\w{4}-\\w{4}-\\w{12})"
extract_substring {
delimiter = "/user/"
position = "AFTER"
}
}
}
data_sources {
enabled = true
capturing_and_storage_location = "CAPTURE_AND_STORE_ON_SERVER"
source = "URI_PATH"
value_processing {
# split_at = ""
# trim = false
value_extractor_regex = "(\\w{8}-\\w{4}-\\w{4}-\\w{4}-\\w{12})"
extract_substring {
delimiter = "/users/"
position = "AFTER"
}
}
}
data_sources {
enabled = true
capturing_and_storage_location = "CAPTURE_AND_STORE_ON_SERVER"
source = "URI_PATH"
value_processing {
# split_at = ""
# trim = false
value_extractor_regex = "(\\w{8}-\\w{4}-\\w{4}-\\w{4}-\\w{12})"
extract_substring {
delimiter = "/driver/"
position = "AFTER"
}
}
}
}

View File

@ -0,0 +1,26 @@
resource "dynatrace_request_attribute" "KeyID" {
name = "KeyID"
enabled = true
aggregation = "FIRST"
# confidential = false
data_type = "STRING"
normalization = "ORIGINAL"
# skip_personal_data_masking = false
data_sources {
enabled = true
source = "METHOD_PARAM"
technology = "JAVA"
methods {
argument_index = 1
capture = "ARGUMENT"
deep_object_access = ".getKeyID()"
method {
argument_types = ["com.bmw.cc.smc2.dkey.api.track.v2.entity.TrackKeyRequest"]
class_name = "com.bmw.cc.smc2.dkey.api.track.v2.boundary.TrackApiResource"
method_name = "trackKey"
return_type = "javax.ws.rs.core.Response"
visibility = "PUBLIC"
}
}
}
}

View File

@ -0,0 +1,49 @@
resource "dynatrace_request_attribute" "RsCountryCodeIso" {
name = "RsCountryCodeIso"
enabled = true
aggregation = "LAST"
confidential = true
data_type = "STRING"
normalization = "ORIGINAL"
# skip_personal_data_masking = false
data_sources {
enabled = true
source = "METHOD_PARAM"
technology = "JAVA"
methods {
argument_index = 1
capture = "ARGUMENT"
deep_object_access = ".getVehicleInformation().getCountryCodeISO()"
method {
argument_types = ["com.bmw.cc.rs360.entity.Event","com.bmw.cc.rs360.entity.EventStateEnum"]
class_name = "com.bmw.cc.rs360.controller.EventController"
method_name = "updateEventState"
return_type = "void"
visibility = "PUBLIC"
}
}
scope {
tag_of_process_group = "Component:Remote 360"
}
}
data_sources {
enabled = true
source = "METHOD_PARAM"
technology = "JAVA"
methods {
argument_index = 1
capture = "ARGUMENT"
deep_object_access = ".getVehicleInformation().getCountryCodeISO()"
method {
argument_types = ["com.bmw.cc.rs.entity.Event","com.bmw.cc.rs.entity.EventStateEnum"]
class_name = "com.bmw.cc.rs.entity.EventController"
method_name = "updateEventState"
return_type = "void"
visibility = "PUBLIC"
}
}
scope {
tag_of_process_group = "Component:RemoteServices"
}
}
}

View File

@ -0,0 +1,49 @@
resource "dynatrace_request_attribute" "RsEventId" {
name = "RsEventId"
enabled = true
aggregation = "FIRST"
# confidential = false
data_type = "STRING"
normalization = "ORIGINAL"
# skip_personal_data_masking = false
data_sources {
enabled = true
source = "METHOD_PARAM"
technology = "JAVA"
methods {
argument_index = 1
capture = "ARGUMENT"
deep_object_access = ".getEventId()"
method {
argument_types = ["com.bmw.cc.rs360.entity.Event","com.bmw.cc.rs360.entity.EventStateEnum"]
class_name = "com.bmw.cc.rs360.controller.EventController"
method_name = "updateEventState"
return_type = "void"
visibility = "PUBLIC"
}
}
scope {
tag_of_process_group = "Component:Remote 360"
}
}
data_sources {
enabled = true
source = "METHOD_PARAM"
technology = "JAVA"
methods {
argument_index = 1
capture = "ARGUMENT"
deep_object_access = ".getEventId()"
method {
argument_types = ["com.bmw.cc.rs.entity.Event","com.bmw.cc.rs.entity.EventStateEnum"]
class_name = "com.bmw.cc.rs.entity.EventController"
method_name = "updateEventState"
return_type = "void"
visibility = "PUBLIC"
}
}
scope {
tag_of_process_group = "Component:RemoteServices"
}
}
}

View File

@ -0,0 +1,49 @@
resource "dynatrace_request_attribute" "RsEventStatus" {
name = "RsEventStatus"
enabled = true
aggregation = "LAST"
# confidential = false
data_type = "STRING"
normalization = "ORIGINAL"
# skip_personal_data_masking = false
data_sources {
enabled = true
source = "METHOD_PARAM"
technology = "JAVA"
methods {
argument_index = 2
capture = "ARGUMENT"
deep_object_access = ".toString()"
method {
argument_types = ["com.bmw.cc.rs360.entity.Event","com.bmw.cc.rs360.entity.EventStateEnum"]
class_name = "com.bmw.cc.rs360.controller.EventController"
method_name = "updateEventState"
return_type = "void"
visibility = "PUBLIC"
}
}
scope {
tag_of_process_group = "Component:Remote 360"
}
}
data_sources {
enabled = true
source = "METHOD_PARAM"
technology = "JAVA"
methods {
argument_index = 2
capture = "ARGUMENT"
deep_object_access = ".toString()"
method {
argument_types = ["com.bmw.cc.rs.entity.Event","com.bmw.cc.rs.entity.EventStateEnum"]
class_name = "com.bmw.cc.rs.entity.EventController"
method_name = "updateEventState"
return_type = "void"
visibility = "PUBLIC"
}
}
scope {
tag_of_process_group = "Component:RemoteServices"
}
}
}

View File

@ -0,0 +1,69 @@
resource "dynatrace_request_attribute" "RsType" {
name = "RsType"
enabled = true
aggregation = "FIRST"
# confidential = false
data_type = "STRING"
normalization = "ORIGINAL"
# skip_personal_data_masking = false
data_sources {
enabled = true
source = "METHOD_PARAM"
technology = "JAVA"
methods {
argument_index = 1
capture = "ARGUMENT"
deep_object_access = ".getRsType().name()"
method {
argument_types = ["com.bmw.cc.rs360.entity.Event","com.bmw.cc.rs360.entity.EventStateEnum"]
class_name = "com.bmw.cc.rs360.controller.EventController"
method_name = "updateEventState"
return_type = "void"
visibility = "PUBLIC"
}
}
scope {
tag_of_process_group = "Component:Remote 360"
}
}
data_sources {
enabled = true
source = "METHOD_PARAM"
technology = "JAVA"
methods {
argument_index = 1
capture = "ARGUMENT"
deep_object_access = ".getRsType().name()"
method {
argument_types = ["com.bmw.cc.rs.entity.Event","com.bmw.cc.rs.entity.EventStateEnum"]
class_name = "com.bmw.cc.rs.entity.EventController"
method_name = "updateEventState"
return_type = "void"
visibility = "PUBLIC"
}
}
scope {
tag_of_process_group = "Component:RemoteServices"
}
}
data_sources {
enabled = true
source = "METHOD_PARAM"
technology = "JAVA"
methods {
argument_index = 2
capture = "ARGUMENT"
deep_object_access = ".name()"
method {
argument_types = ["java.lang.String","com.bmw.cc.rscockpit.bm.admin.entity.RemoteServiceType"]
class_name = "com.bmw.cc.rscockpit.bm.admin.AdminTokenBA"
method_name = "generateAdminToken"
return_type = "java.lang.String"
visibility = "PUBLIC"
}
}
scope {
tag_of_process_group = "Component:RS Cockpit"
}
}
}

View File

@ -0,0 +1,49 @@
resource "dynatrace_request_attribute" "RsVehicleType" {
name = "RsVehicleType"
enabled = true
aggregation = "LAST"
# confidential = false
data_type = "STRING"
normalization = "ORIGINAL"
# skip_personal_data_masking = false
data_sources {
enabled = true
source = "METHOD_PARAM"
technology = "JAVA"
methods {
argument_index = 1
capture = "ARGUMENT"
deep_object_access = "determineVehicleTypeIfAvailable().name()"
method {
argument_types = ["com.bmw.cc.rs.entity.Event","com.bmw.cc.rs.entity.EventStateEnum"]
class_name = "com.bmw.cc.rs.entity.EventController"
method_name = "updateEventState"
return_type = "void"
visibility = "PUBLIC"
}
}
scope {
tag_of_process_group = "Component:RemoteServices"
}
}
data_sources {
enabled = true
source = "METHOD_PARAM"
technology = "JAVA"
methods {
argument_index = 1
capture = "ARGUMENT"
deep_object_access = "determineVehicleTypeIfAvailable().name()"
method {
argument_types = ["com.bmw.cc.rs360.entity.Event","com.bmw.cc.rs360.entity.EventStateEnum"]
class_name = "com.bmw.cc.rs360.controller.EventController"
method_name = "updateEventState"
return_type = "void"
visibility = "PUBLIC"
}
}
scope {
tag_of_process_group = "Component:Remote 360"
}
}
}

View File

@ -0,0 +1,15 @@
resource "dynatrace_request_attribute" "Traceparent_HTTP_header_field" {
name = "Traceparent HTTP header field"
enabled = true
aggregation = "FIRST"
# confidential = false
data_type = "STRING"
normalization = "ORIGINAL"
# skip_personal_data_masking = false
data_sources {
enabled = true
capturing_and_storage_location = "CAPTURE_AND_STORE_ON_SERVER"
parameter_name = "traceparent"
source = "REQUEST_HEADER"
}
}

View File

@ -0,0 +1,238 @@
resource "dynatrace_request_attribute" "VIN" {
name = "VIN"
enabled = true
aggregation = "FIRST"
confidential = true
data_type = "STRING"
normalization = "ORIGINAL"
# skip_personal_data_masking = false
data_sources {
enabled = true
source = "METHOD_PARAM"
technology = "JAVA"
methods {
argument_index = 1
capture = "ARGUMENT"
deep_object_access = ".getVin()"
method {
argument_types = ["com.bmw.cc.rs360.entity.Event","com.bmw.cc.rs360.entity.EventStateEnum"]
class_name = "com.bmw.cc.rs360.controller.EventController"
method_name = "updateEventState"
return_type = "void"
visibility = "PUBLIC"
}
}
scope {
tag_of_process_group = "Component:Remote 360"
}
}
data_sources {
enabled = true
source = "METHOD_PARAM"
technology = "JAVA"
methods {
argument_index = 1
capture = "ARGUMENT"
deep_object_access = ".getVin()"
method {
argument_types = ["com.bmw.cc.rs.entity.Event","com.bmw.cc.rs.entity.EventStateEnum"]
class_name = "com.bmw.cc.rs.entity.EventController"
method_name = "updateEventState"
return_type = "void"
visibility = "PUBLIC"
}
}
scope {
tag_of_process_group = "Component:RemoteServices"
}
}
data_sources {
enabled = true
capturing_and_storage_location = "CAPTURE_AND_STORE_ON_SERVER"
source = "URI_PATH"
scope {
tag_of_process_group = "Component:agent-service"
}
value_processing {
# split_at = ""
# trim = false
value_extractor_regex = "([a-zA-Z0-9]{17})"
extract_substring {
delimiter = "/agents/"
end_delimiter = "-"
position = "BETWEEN"
}
}
}
data_sources {
enabled = true
capturing_and_storage_location = "CAPTURE_AND_STORE_ON_SERVER"
source = "URI_PATH"
scope {
tag_of_process_group = "Component:App Repository"
}
value_processing {
# split_at = ""
# trim = false
value_extractor_regex = "([a-zA-Z0-9]{17})"
extract_substring {
delimiter = "/npm/registry/provisionedAppNames/"
position = "AFTER"
}
}
}
data_sources {
enabled = true
capturing_and_storage_location = "CAPTURE_AND_STORE_ON_SERVER"
source = "URI_PATH"
value_processing {
# split_at = ""
# trim = false
value_extractor_regex = "([a-zA-Z0-9]{17})"
extract_substring {
delimiter = "/vin/"
position = "AFTER"
}
}
}
data_sources {
enabled = true
capturing_and_storage_location = "CAPTURE_AND_STORE_ON_SERVER"
source = "URI_PATH"
value_processing {
# split_at = ""
# trim = false
value_extractor_regex = "([a-zA-Z0-9]{17})"
extract_substring {
delimiter = "/car/"
position = "AFTER"
}
}
}
data_sources {
enabled = true
capturing_and_storage_location = "CAPTURE_AND_STORE_ON_SERVER"
source = "URI_PATH"
value_processing {
# split_at = ""
# trim = false
value_extractor_regex = "([a-zA-Z0-9]{17})"
extract_substring {
delimiter = "/cars/"
position = "AFTER"
}
}
}
data_sources {
enabled = true
capturing_and_storage_location = "CAPTURE_AND_STORE_ON_SERVER"
source = "URI_PATH"
value_processing {
# split_at = ""
# trim = false
value_extractor_regex = "([a-zA-Z0-9]{17})"
extract_substring {
delimiter = "/vehicle/"
position = "AFTER"
}
}
}
data_sources {
enabled = true
capturing_and_storage_location = "CAPTURE_AND_STORE_ON_SERVER"
source = "URI_PATH"
value_processing {
# split_at = ""
# trim = false
value_extractor_regex = "([a-zA-Z0-9]{17})"
extract_substring {
delimiter = "/vehicles/"
position = "AFTER"
}
}
}
data_sources {
enabled = true
capturing_and_storage_location = "CAPTURE_AND_STORE_ON_SERVER"
source = "URI_PATH"
value_processing {
# split_at = ""
# trim = false
value_extractor_regex = "([a-zA-Z0-9]{17})"
extract_substring {
delimiter = "/v1/"
position = "AFTER"
}
}
}
data_sources {
enabled = true
capturing_and_storage_location = "CAPTURE_AND_STORE_ON_SERVER"
source = "URI_PATH"
value_processing {
# split_at = ""
# trim = false
value_extractor_regex = "([a-zA-Z0-9]{17})"
extract_substring {
delimiter = "/v2/"
position = "AFTER"
}
}
}
data_sources {
enabled = true
capturing_and_storage_location = "CAPTURE_AND_STORE_ON_SERVER"
source = "URI_PATH"
value_processing {
# split_at = ""
# trim = false
value_extractor_regex = "([a-zA-Z0-9]{17})"
extract_substring {
delimiter = "/v3/"
position = "AFTER"
}
}
}
data_sources {
enabled = true
capturing_and_storage_location = "CAPTURE_AND_STORE_ON_SERVER"
source = "URI_PATH"
value_processing {
# split_at = ""
# trim = false
value_extractor_regex = "([a-zA-Z0-9]{17})"
extract_substring {
delimiter = "/v4/"
position = "AFTER"
}
}
}
data_sources {
enabled = true
capturing_and_storage_location = "CAPTURE_AND_STORE_ON_SERVER"
source = "URI_PATH"
value_processing {
# split_at = ""
# trim = false
value_extractor_regex = "([a-zA-Z0-9]{17})"
extract_substring {
delimiter = "/v5/"
position = "AFTER"
}
}
}
data_sources {
enabled = true
capturing_and_storage_location = "CAPTURE_AND_STORE_ON_SERVER"
source = "URI_PATH"
value_processing {
# split_at = ""
# trim = false
value_extractor_regex = "([a-zA-Z0-9]{17})"
extract_substring {
delimiter = "/v6/"
position = "AFTER"
}
}
}
}

View File

@ -0,0 +1,24 @@
resource "dynatrace_request_attribute" "getKeyID" {
name = "getKeyID"
enabled = true
aggregation = "FIRST"
# confidential = false
data_type = "STRING"
normalization = "ORIGINAL"
# skip_personal_data_masking = false
data_sources {
enabled = true
source = "METHOD_PARAM"
technology = "JAVA"
methods {
argument_index = 0
capture = "ARGUMENT"
method {
class_name = "com.bmw.cc.smc2.dkey.api.track.v2.entity.TrackKeyRequest"
method_name = "getKeyID"
return_type = "java.lang.String"
visibility = "PUBLIC"
}
}
}
}

View File

@ -0,0 +1,26 @@
resource "dynatrace_request_attribute" "keyType" {
name = "keyType"
enabled = true
aggregation = "FIRST"
# confidential = false
data_type = "STRING"
normalization = "ORIGINAL"
# skip_personal_data_masking = false
data_sources {
enabled = true
capturing_and_storage_location = "CAPTURE_AND_STORE_ON_BOTH"
source = "URI"
scope {
tag_of_process_group = "Component:ASBC-SMACC"
}
value_processing {
# split_at = ""
# trim = false
extract_substring {
delimiter = "track/"
end_delimiter = "/decryptVerifyAndGenerate"
position = "BETWEEN"
}
}
}
}

View File

@ -0,0 +1,11 @@
resource "dynatrace_span_entry_point" "Suppress_client_spans" {
name = "Suppress client spans"
action = "DONT_CREATE_ENTRYPOINT"
matches {
match {
comparison = "EQUALS"
source = "SPAN_KIND"
value = "CLIENT"
}
}
}

View File

@ -0,0 +1,11 @@
resource "dynatrace_span_entry_point" "Suppress_internal_spans" {
name = "Suppress internal spans"
action = "DONT_CREATE_ENTRYPOINT"
matches {
match {
comparison = "EQUALS"
source = "SPAN_KIND"
value = "INTERNAL"
}
}
}

View File

@ -0,0 +1,11 @@
resource "dynatrace_span_entry_point" "Suppress_producer_spans" {
name = "Suppress producer spans"
action = "DONT_CREATE_ENTRYPOINT"
matches {
match {
comparison = "EQUALS"
source = "SPAN_KIND"
value = "PRODUCER"
}
}
}

View File

@ -0,0 +1,3 @@
resource "dynatrace_resource_attributes" "resource_attributes" {
enabled = ["service.name","dt.entity.process_group_instance","dt.entity.host"]
}

View File

@ -0,0 +1,45 @@
resource "dynatrace_alerting_profile" "Default" {
display_name = "Default"
rules {
delay_in_minutes = 0
severity_level = "AVAILABILITY"
tag_filter {
include_mode = "NONE"
}
}
rules {
delay_in_minutes = 0
severity_level = "CUSTOM_ALERT"
tag_filter {
include_mode = "NONE"
}
}
rules {
delay_in_minutes = 0
severity_level = "ERROR"
tag_filter {
include_mode = "NONE"
}
}
rules {
delay_in_minutes = 0
severity_level = "MONITORING_UNAVAILABLE"
tag_filter {
include_mode = "NONE"
}
}
rules {
delay_in_minutes = 30
severity_level = "PERFORMANCE"
tag_filter {
include_mode = "NONE"
}
}
rules {
delay_in_minutes = 30
severity_level = "RESOURCE_CONTENTION"
tag_filter {
include_mode = "NONE"
}
}
}

View File

@ -0,0 +1,15 @@
resource "dynatrace_alerting_profile" "TestMySQL" {
display_name = "TestMySQL"
rules {
delay_in_minutes = 0
severity_level = "AVAILABILITY"
tag_filter {
include_mode = "INCLUDE_ALL"
tag_filters {
context = "CONTEXTLESS"
key = "Test-MySQL"
value = "catalogue"
}
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "High_GC_time" {
name = "High GC time"
description = "The .NET GC time of {severity} is {alert_condition} the threshold of {threshold}"
enabled = false
aggregation_type = "AVG"
metric_id = "builtin:tech.dotnet.perfmon.%TimeInGC"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 0
unit = "PERCENT"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "High_HAProxy_frontend_session_usage" {
name = "High HAProxy frontend session usage"
description = "The frontend session usage is {alert_condition} the threshold of {threshold}"
enabled = true
aggregation_type = "AVG"
metric_id = "builtin:tech.haproxy.fe_susage"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 80
unit = "PERCENT"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "High_HAProxy_requests_queue" {
name = "High HAProxy requests queue"
description = "The ammount of queued requests is {alert_condition} the threshold of {threshold}"
enabled = false
aggregation_type = "AVG"
metric_id = "builtin:tech.haproxy.be_qcur"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 0
unit = "PER_MINUTE"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "High_RabbitMQ_file_descriptors_usage" {
name = "High RabbitMQ file descriptors usage"
description = "The RabbitMQ file descriptors usage of {severity} is {alert_condition} the threshold of {threshold}"
enabled = true
aggregation_type = "AVG"
metric_id = "builtin:tech.rabbitmq.fd_usage"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 90
unit = "PERCENT"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "High_RabbitMQ_memory_usage" {
name = "High RabbitMQ memory usage"
description = "The RabbitMQ memory usage of {severity} is {alert_condition} the threshold of {threshold}"
enabled = true
aggregation_type = "AVG"
metric_id = "builtin:tech.rabbitmq.mem_usage"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 90
unit = "PERCENT"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "High_RabbitMQ_number_of_auto_delete_queues_without_consumers" {
name = "High RabbitMQ number of auto delete queues without consumers"
description = "The number of auto delete queues without consumers is {alert_condition} the threshold of {threshold}"
enabled = false
aggregation_type = "AVG"
metric_id = "builtin:tech.rabbitmq.ad_queues_no_consumers"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 0
unit = "COUNT"
violating_samples = 3
}
}
}

View File

@ -0,0 +1,19 @@
resource "dynatrace_custom_anomalies" "High_RabbitMQ_number_of_unacknowledged_messages" {
name = "High RabbitMQ number of unacknowledged messages"
description = "The number of unacknowledged messages is {alert_condition} the threshold of {threshold}"
enabled = false
aggregation_type = "AVG"
metric_id = "builtin:tech.rabbitmq.messages_unacknowledged"
severity = "PERFORMANCE"
strategy {
static {
alert_condition = "ABOVE"
alerting_on_missing_data = false
dealerting_samples = 5
samples = 5
threshold = 0
unit = "COUNT"
violating_samples = 3
}
}
}

Some files were not shown because too many files have changed in this diff Show More