From 061ba4831621e50feb5a1585e53d2ca375635cd0 Mon Sep 17 00:00:00 2001 From: rforstner Date: Wed, 6 Apr 2022 13:38:38 +0200 Subject: [PATCH] updated SLOs --- .../calculated_service_metrics/main.tf | 26 ------------------- .../custom_anomalies/TP_Mobile_VehicleData.tf | 2 +- EMEA_PROD/slo/TP_Mobile_DigitalKey.tf | 5 +++- EMEA_PROD/slo/TP_Mobile_Login.tf | 5 +++- EMEA_PROD/slo/TP_Mobile_Mapping.tf | 6 ++++- EMEA_PROD/slo/TP_Mobile_PersonalFavorites.tf | 7 ++++- EMEA_PROD/slo/TP_Mobile_Remote360.tf | 6 ++++- EMEA_PROD/slo/TP_Mobile_RemoteServices.tf | 6 ++++- EMEA_PROD/slo/TP_Mobile_Send2VehicleLegacy.tf | 6 ++++- EMEA_PROD/slo/TP_Mobile_Send2VehicleMGU.tf | 6 ++++- EMEA_PROD/slo/TP_Mobile_VehicleData.tf | 2 +- EMEA_PROD/slo/TP_Mobile_VehicleList.tf | 6 ++++- ...e_Features_V2_Error_Latency_2000ms_Rate.tf | 2 +- ...le_Features_V2_Error_Latency_500ms_Rate.tf | 2 +- ...le_Features_V2_Error_Latency_700ms_Rate.tf | 2 +- ...vice_-_Vehicle_Features_V2_Success_Rate.tf | 2 +- 16 files changed, 50 insertions(+), 41 deletions(-) delete mode 100644 EMEA_PREPROD/calculated_service_metrics/main.tf diff --git a/EMEA_PREPROD/calculated_service_metrics/main.tf b/EMEA_PREPROD/calculated_service_metrics/main.tf deleted file mode 100644 index b97a7ce..0000000 --- a/EMEA_PREPROD/calculated_service_metrics/main.tf +++ /dev/null @@ -1,26 +0,0 @@ -terraform { - required_providers { - dynatrace = { - version = "1.10.0" - source = "dynatrace-oss/dynatrace" - } - } - - backend "s3" { - bucket = "coco-dynatrace-tfstate" - key = "eupreprod/calculated_service_metrics/terraform.tfstate" - region = "eu-central-1" - dynamodb_table = "coco-dynatrace-tfstate" - encrypt = true - } - -} - -variable EMEA_PREPROD_ENV_URL {} -variable EMEA_PREPROD_API_TOKEN {} - - -provider "dynatrace" { - dt_env_url = "${var.EMEA_PREPROD_ENV_URL}" - dt_api_token = "${var.EMEA_PREPROD_API_TOKEN}" -} \ No newline at end of file diff --git a/EMEA_PROD/custom_anomalies/TP_Mobile_VehicleData.tf b/EMEA_PROD/custom_anomalies/TP_Mobile_VehicleData.tf index 827c901..c1ca3ef 100644 --- a/EMEA_PROD/custom_anomalies/TP_Mobile_VehicleData.tf +++ b/EMEA_PROD/custom_anomalies/TP_Mobile_VehicleData.tf @@ -6,4 +6,4 @@ module TP_Mobile_VehicleData { name = "TP_Mobile_VehicleData" metric_selector = "${data.terraform_remote_state.slo.outputs.TP_Mobile_VehicleData_metric}" -} \ No newline at end of file +} diff --git a/EMEA_PROD/slo/TP_Mobile_DigitalKey.tf b/EMEA_PROD/slo/TP_Mobile_DigitalKey.tf index bd0acb4..a43c09e 100644 --- a/EMEA_PROD/slo/TP_Mobile_DigitalKey.tf +++ b/EMEA_PROD/slo/TP_Mobile_DigitalKey.tf @@ -56,7 +56,6 @@ module TP_Mobile_DigitalKey { )") ) ))):splitBy())) -" EOT #if not set (removed) it's defaulted to "-1d" @@ -69,4 +68,8 @@ evaluation = "AGGREGATE" target = 98 #if not set(removed) it's defaulted to 98 warning = 99 #if not set(removed) it's defaulted to 99 +} + +output "TP_Mobile_DigitalKey_metric" { + value = module.TP_Mobile_DigitalKey.metric_expression } \ No newline at end of file diff --git a/EMEA_PROD/slo/TP_Mobile_Login.tf b/EMEA_PROD/slo/TP_Mobile_Login.tf index f7a9419..7a0bb0f 100644 --- a/EMEA_PROD/slo/TP_Mobile_Login.tf +++ b/EMEA_PROD/slo/TP_Mobile_Login.tf @@ -54,7 +54,6 @@ module TP_Mobile_Login { )") ) ))):splitBy())) -" EOT #if not set (removed) it's defaulted to "-1d" @@ -67,4 +66,8 @@ evaluation = "AGGREGATE" target = 98 #if not set(removed) it's defaulted to 98 warning = 99 #if not set(removed) it's defaulted to 99 +} + +output "TP_Mobile_Login_metric" { + value = module.TP_Mobile_Login.metric_expression } \ No newline at end of file diff --git a/EMEA_PROD/slo/TP_Mobile_Mapping.tf b/EMEA_PROD/slo/TP_Mobile_Mapping.tf index df7b039..bde999b 100644 --- a/EMEA_PROD/slo/TP_Mobile_Mapping.tf +++ b/EMEA_PROD/slo/TP_Mobile_Mapping.tf @@ -59,7 +59,7 @@ module TP_Mobile_Mapping { ~"DELETE /api/v1/vehicles/~" )") ) -))):splitBy()))" +))):splitBy())) EOT #if not set (removed) it's defaulted to "-1d" @@ -72,4 +72,8 @@ evaluation = "AGGREGATE" target = 98 #if not set(removed) it's defaulted to 98 warning = 99 #if not set(removed) it's defaulted to 99 +} + +output "TP_Mobile_Mapping_metric" { + value = module.TP_Mobile_Mapping.metric_expression } \ No newline at end of file diff --git a/EMEA_PROD/slo/TP_Mobile_PersonalFavorites.tf b/EMEA_PROD/slo/TP_Mobile_PersonalFavorites.tf index 0775c21..fbf3cb8 100644 --- a/EMEA_PROD/slo/TP_Mobile_PersonalFavorites.tf +++ b/EMEA_PROD/slo/TP_Mobile_PersonalFavorites.tf @@ -63,7 +63,7 @@ module TP_Mobile_PersonalFavorites { ~"PUT /api/v2/favorites/homework/2~" )") ) -))):splitBy()))" +))):splitBy())) EOT #if not set (removed) it's defaulted to "-1d" @@ -76,4 +76,9 @@ evaluation = "AGGREGATE" target = 98 #if not set(removed) it's defaulted to 98 warning = 99 #if not set(removed) it's defaulted to 99 +} + + +output "TP_Mobile_PersonalFavorites_metric" { + value = module.TP_Mobile_PersonalFavorites.metric_expression } \ No newline at end of file diff --git a/EMEA_PROD/slo/TP_Mobile_Remote360.tf b/EMEA_PROD/slo/TP_Mobile_Remote360.tf index e8ab5d5..3cdda12 100644 --- a/EMEA_PROD/slo/TP_Mobile_Remote360.tf +++ b/EMEA_PROD/slo/TP_Mobile_Remote360.tf @@ -61,7 +61,7 @@ module TP_Mobile_Remote360 { ~"GET /recordings/vehicle/$vin~" )") ) -))):splitBy()))" +))):splitBy())) EOT #if not set (removed) it's defaulted to "-1d" @@ -74,4 +74,8 @@ evaluation = "AGGREGATE" target = 98 #if not set(removed) it's defaulted to 98 warning = 99 #if not set(removed) it's defaulted to 99 +} + +output "TP_Mobile_Remote360_metric" { + value = module.TP_Mobile_Remote360.metric_expression } \ No newline at end of file diff --git a/EMEA_PROD/slo/TP_Mobile_RemoteServices.tf b/EMEA_PROD/slo/TP_Mobile_RemoteServices.tf index 67ee88f..09f1fe6 100644 --- a/EMEA_PROD/slo/TP_Mobile_RemoteServices.tf +++ b/EMEA_PROD/slo/TP_Mobile_RemoteServices.tf @@ -65,7 +65,7 @@ module TP_Mobile_RemoteServices { ~"GET /api/v2/presentation/remote-commands/eventStatus~" )") ) -))):splitBy()))" +))):splitBy())) EOT #if not set (removed) it's defaulted to "-1d" @@ -78,4 +78,8 @@ evaluation = "AGGREGATE" target = 98 #if not set(removed) it's defaulted to 98 warning = 99 #if not set(removed) it's defaulted to 99 +} + +output "TP_Mobile_RemoteServices_metric" { + value = module.TP_Mobile_RemoteServices.metric_expression } \ No newline at end of file diff --git a/EMEA_PROD/slo/TP_Mobile_Send2VehicleLegacy.tf b/EMEA_PROD/slo/TP_Mobile_Send2VehicleLegacy.tf index 65ffaad..a5219f9 100644 --- a/EMEA_PROD/slo/TP_Mobile_Send2VehicleLegacy.tf +++ b/EMEA_PROD/slo/TP_Mobile_Send2VehicleLegacy.tf @@ -38,7 +38,7 @@ module TP_Mobile_Send2VehicleLegacy { ") ) ) -)):splitBy()))" +)):splitBy())) EOT #if not set (removed) it's defaulted to "-1d" @@ -51,4 +51,8 @@ evaluation = "AGGREGATE" target = 98 #if not set(removed) it's defaulted to 98 warning = 99 #if not set(removed) it's defaulted to 99 +} + +output "TP_Mobile_Send2VehicleLegacy_metric" { + value = module.TP_Mobile_Send2VehicleLegacy.metric_expression } \ No newline at end of file diff --git a/EMEA_PROD/slo/TP_Mobile_Send2VehicleMGU.tf b/EMEA_PROD/slo/TP_Mobile_Send2VehicleMGU.tf index 6efdd25..ffa243d 100644 --- a/EMEA_PROD/slo/TP_Mobile_Send2VehicleMGU.tf +++ b/EMEA_PROD/slo/TP_Mobile_Send2VehicleMGU.tf @@ -49,7 +49,7 @@ module TP_Mobile_Send2VehicleMGU { ~"/v3/motorist/[UUID]/trips~" )") ) -))):splitBy()))" +))):splitBy())) EOT #if not set (removed) it's defaulted to "-1d" @@ -62,4 +62,8 @@ evaluation = "AGGREGATE" target = 98 #if not set(removed) it's defaulted to 98 warning = 99 #if not set(removed) it's defaulted to 99 +} + +output "TP_Mobile_Send2VehicleMGU_metric" { + value = module.TP_Mobile_Send2VehicleMGU.metric_expression } \ No newline at end of file diff --git a/EMEA_PROD/slo/TP_Mobile_VehicleData.tf b/EMEA_PROD/slo/TP_Mobile_VehicleData.tf index e4789d5..17335a5 100644 --- a/EMEA_PROD/slo/TP_Mobile_VehicleData.tf +++ b/EMEA_PROD/slo/TP_Mobile_VehicleData.tf @@ -51,7 +51,7 @@ module TP_Mobile_VehicleData { ~"GET /v1/vehicle/~" )") ) -))):splitBy()))" +))):splitBy())) EOT #if not set (removed) it's defaulted to "-1d" diff --git a/EMEA_PROD/slo/TP_Mobile_VehicleList.tf b/EMEA_PROD/slo/TP_Mobile_VehicleList.tf index f2578cd..a960632 100644 --- a/EMEA_PROD/slo/TP_Mobile_VehicleList.tf +++ b/EMEA_PROD/slo/TP_Mobile_VehicleList.tf @@ -45,7 +45,7 @@ module TP_Mobile_VehicleList { ~"GET /api/v1/vehicles~" )") ) -))):splitBy()))" +))):splitBy())) EOT #if not set (removed) it's defaulted to "-1d" @@ -58,4 +58,8 @@ evaluation = "AGGREGATE" target = 98 #if not set(removed) it's defaulted to 98 warning = 99 #if not set(removed) it's defaulted to 99 +} + +output "TP_Mobile_VehicleList_metric" { + value = module.TP_Mobile_VehicleList.metric_expression } \ No newline at end of file diff --git a/EMEA_PROD/slo/VehicleFeaturesService_-_Vehicle_Features_V2_Error_Latency_2000ms_Rate.tf b/EMEA_PROD/slo/VehicleFeaturesService_-_Vehicle_Features_V2_Error_Latency_2000ms_Rate.tf index 4c46d4d..d41b969 100644 --- a/EMEA_PROD/slo/VehicleFeaturesService_-_Vehicle_Features_V2_Error_Latency_2000ms_Rate.tf +++ b/EMEA_PROD/slo/VehicleFeaturesService_-_Vehicle_Features_V2_Error_Latency_2000ms_Rate.tf @@ -10,7 +10,7 @@ module VehicleFeaturesService_-_Vehicle_Features_V2_Error_Latency_2000ms_Rate { #entity selector object - filter = "type(\"SERVICE_METHOD\")" + filter = "" #metric expression of the calculation as done in data explorer ui diff --git a/EMEA_PROD/slo/VehicleFeaturesService_-_Vehicle_Features_V2_Error_Latency_500ms_Rate.tf b/EMEA_PROD/slo/VehicleFeaturesService_-_Vehicle_Features_V2_Error_Latency_500ms_Rate.tf index 101b29c..4155822 100644 --- a/EMEA_PROD/slo/VehicleFeaturesService_-_Vehicle_Features_V2_Error_Latency_500ms_Rate.tf +++ b/EMEA_PROD/slo/VehicleFeaturesService_-_Vehicle_Features_V2_Error_Latency_500ms_Rate.tf @@ -10,7 +10,7 @@ module VehicleFeaturesService_-_Vehicle_Features_V2_Error_Latency_500ms_Rate { #entity selector object - filter = "type(\"SERVICE_METHOD\")" + filter = "" #metric expression of the calculation as done in data explorer ui diff --git a/EMEA_PROD/slo/VehicleFeaturesService_-_Vehicle_Features_V2_Error_Latency_700ms_Rate.tf b/EMEA_PROD/slo/VehicleFeaturesService_-_Vehicle_Features_V2_Error_Latency_700ms_Rate.tf index 1e1e697..edef860 100644 --- a/EMEA_PROD/slo/VehicleFeaturesService_-_Vehicle_Features_V2_Error_Latency_700ms_Rate.tf +++ b/EMEA_PROD/slo/VehicleFeaturesService_-_Vehicle_Features_V2_Error_Latency_700ms_Rate.tf @@ -10,7 +10,7 @@ module VehicleFeaturesService_-_Vehicle_Features_V2_Error_Latency_700ms_Rate { #entity selector object - filter = "type(\"SERVICE_METHOD\")" + filter = "" #metric expression of the calculation as done in data explorer ui diff --git a/EMEA_PROD/slo/VehicleFeaturesService_-_Vehicle_Features_V2_Success_Rate.tf b/EMEA_PROD/slo/VehicleFeaturesService_-_Vehicle_Features_V2_Success_Rate.tf index 3eaa01b..38d33fe 100644 --- a/EMEA_PROD/slo/VehicleFeaturesService_-_Vehicle_Features_V2_Success_Rate.tf +++ b/EMEA_PROD/slo/VehicleFeaturesService_-_Vehicle_Features_V2_Success_Rate.tf @@ -10,7 +10,7 @@ module VehicleFeaturesService_-_Vehicle_Features_V2_Success_Rate { #entity selector object - filter = "type(\"SERVICE_METHOD\")" + filter = "" #metric expression of the calculation as done in data explorer ui