diff --git a/NA_PROD/custom_anomalies/TP_Mobile_DigitalKey.tf b/NA_PROD/custom_anomalies/TP_Mobile_DigitalKey.tf new file mode 100644 index 0000000..f43c9e4 --- /dev/null +++ b/NA_PROD/custom_anomalies/TP_Mobile_DigitalKey.tf @@ -0,0 +1,9 @@ +module TP_Mobile_DigitalKey { + + source = "../../_dynatrace-base-modules/dynatrace-custom-anomalies" + + + name = "TP_Mobile_DigitalKey" + + metric_selector = "func:slo.tp_mobile_digitalkey" +} diff --git a/NA_PROD/custom_anomalies/TP_Mobile_Login.tf b/NA_PROD/custom_anomalies/TP_Mobile_Login.tf new file mode 100644 index 0000000..4feacd9 --- /dev/null +++ b/NA_PROD/custom_anomalies/TP_Mobile_Login.tf @@ -0,0 +1,9 @@ +module TP_Mobile_Login { + + source = "../../_dynatrace-base-modules/dynatrace-custom-anomalies" + + + name = "TP_Mobile_Login" + + metric_selector = "func:slo.tp_mobile_login" +} diff --git a/NA_PROD/custom_anomalies/TP_Mobile_Mapping.tf b/NA_PROD/custom_anomalies/TP_Mobile_Mapping.tf new file mode 100644 index 0000000..ddcc461 --- /dev/null +++ b/NA_PROD/custom_anomalies/TP_Mobile_Mapping.tf @@ -0,0 +1,9 @@ +module TP_Mobile_Mapping { + + source = "../../_dynatrace-base-modules/dynatrace-custom-anomalies" + + + name = "TP_Mobile_Mapping" + + metric_selector = "func:slo.tp_mobile_mapping" +} diff --git a/NA_PROD/custom_anomalies/TP_Mobile_PersonalFavorites.tf b/NA_PROD/custom_anomalies/TP_Mobile_PersonalFavorites.tf new file mode 100644 index 0000000..6f1233c --- /dev/null +++ b/NA_PROD/custom_anomalies/TP_Mobile_PersonalFavorites.tf @@ -0,0 +1,9 @@ +module TP_Mobile_PersonalFavorites { + + source = "../../_dynatrace-base-modules/dynatrace-custom-anomalies" + + + name = "TP_Mobile_PersonalFavorites" + + metric_selector = "func:slo.tp_mobile_personalfavorites" +} diff --git a/NA_PROD/custom_anomalies/TP_Mobile_Remote360.tf b/NA_PROD/custom_anomalies/TP_Mobile_Remote360.tf new file mode 100644 index 0000000..d0d77a4 --- /dev/null +++ b/NA_PROD/custom_anomalies/TP_Mobile_Remote360.tf @@ -0,0 +1,9 @@ +module TP_Mobile_Remote360 { + + source = "../../_dynatrace-base-modules/dynatrace-custom-anomalies" + + + name = "TP_Mobile_Remote360" + + metric_selector = "func:slo.tp_mobile_remote360" +} diff --git a/NA_PROD/custom_anomalies/TP_Mobile_RemoteServices.tf b/NA_PROD/custom_anomalies/TP_Mobile_RemoteServices.tf new file mode 100644 index 0000000..454b93a --- /dev/null +++ b/NA_PROD/custom_anomalies/TP_Mobile_RemoteServices.tf @@ -0,0 +1,9 @@ +module TP_Mobile_RemoteServices { + + source = "../../_dynatrace-base-modules/dynatrace-custom-anomalies" + + + name = "TP_Mobile_RemoteServices" + + metric_selector = "func:slo.tp_mobile_remoteservices" +} diff --git a/NA_PROD/custom_anomalies/TP_Mobile_Send2VehicleLegacy.tf b/NA_PROD/custom_anomalies/TP_Mobile_Send2VehicleLegacy.tf new file mode 100644 index 0000000..bb5501b --- /dev/null +++ b/NA_PROD/custom_anomalies/TP_Mobile_Send2VehicleLegacy.tf @@ -0,0 +1,9 @@ +module TP_Mobile_Send2VehicleLegacy { + + source = "../../_dynatrace-base-modules/dynatrace-custom-anomalies" + + + name = "TP_Mobile_Send2VehicleLegacy" + + metric_selector = "func:slo.tp_mobile_send2vehiclelegacy" +} diff --git a/NA_PROD/custom_anomalies/TP_Mobile_Send2VehicleMGU.tf b/NA_PROD/custom_anomalies/TP_Mobile_Send2VehicleMGU.tf new file mode 100644 index 0000000..0e332c6 --- /dev/null +++ b/NA_PROD/custom_anomalies/TP_Mobile_Send2VehicleMGU.tf @@ -0,0 +1,9 @@ +module TP_Mobile_Send2VehicleMGU { + + source = "../../_dynatrace-base-modules/dynatrace-custom-anomalies" + + + name = "TP_Mobile_Send2VehicleMGU" + + metric_selector = "func:slo.tp_mobile_send2vehiclemgu" +} diff --git a/NA_PROD/custom_anomalies/TP_Mobile_VehicleData.tf b/NA_PROD/custom_anomalies/TP_Mobile_VehicleData.tf new file mode 100644 index 0000000..de85d6a --- /dev/null +++ b/NA_PROD/custom_anomalies/TP_Mobile_VehicleData.tf @@ -0,0 +1,9 @@ +module TP_Mobile_VehicleData { + + source = "../../_dynatrace-base-modules/dynatrace-custom-anomalies" + + + name = "TP_Mobile_VehicleData" + + metric_selector = "func:slo.tp_mobile_vehicledata" +} diff --git a/NA_PROD/custom_anomalies/TP_Mobile_VehicleList.tf b/NA_PROD/custom_anomalies/TP_Mobile_VehicleList.tf new file mode 100644 index 0000000..4365959 --- /dev/null +++ b/NA_PROD/custom_anomalies/TP_Mobile_VehicleList.tf @@ -0,0 +1,9 @@ +module TP_Mobile_VehicleList { + + source = "../../_dynatrace-base-modules/dynatrace-custom-anomalies" + + + name = "TP_Mobile_VehicleList" + + metric_selector = "func:slo.tp_mobile_vehiclelist" +} diff --git a/NA_PROD/custom_anomalies/__main.tf b/NA_PROD/custom_anomalies/__main.tf new file mode 100644 index 0000000..d3ead62 --- /dev/null +++ b/NA_PROD/custom_anomalies/__main.tf @@ -0,0 +1,38 @@ +terraform { + required_providers { + dynatrace = { + version = "1.11.0" + source = "dynatrace-oss/dynatrace" + } + } + + backend "s3" { + bucket = "coco-dynatrace-tfstate" + key = "naprod/custom_anomalies/terraform.tfstate" + region = "eu-central-1" + dynamodb_table = "coco-dynatrace-tfstate" + encrypt = true + } + +} + +variable NA_PROD_ENV_URL {} +variable NA_PROD_API_TOKEN {} + + +provider "dynatrace" { + dt_env_url = "${var.NA_PROD_ENV_URL}" + dt_api_token = "${var.NA_PROD_API_TOKEN}" + +} + +data "terraform_remote_state" "slo" { + backend = "s3" + config = { + bucket = "coco-dynatrace-tfstate" + key = "naprod/slo/terraform.tfstate" + region = "eu-central-1" + encrypt = true + dynamodb_table = "coco-dynatrace-tfstate" + } +} \ No newline at end of file