updated SLOs

M_sloFix
rforstner 2022-04-06 13:38:38 +02:00
parent 5d57a14198
commit 061ba48316
16 changed files with 50 additions and 41 deletions

View File

@ -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}"
}

View File

@ -56,7 +56,6 @@ module TP_Mobile_DigitalKey {
)") )")
) )
))):splitBy())) ))):splitBy()))
"
EOT EOT
#if not set (removed) it's defaulted to "-1d" #if not set (removed) it's defaulted to "-1d"
@ -70,3 +69,7 @@ target = 98 #if not set(removed) it's defaulted
warning = 99 #if not set(removed) it's defaulted to 99 warning = 99 #if not set(removed) it's defaulted to 99
} }
output "TP_Mobile_DigitalKey_metric" {
value = module.TP_Mobile_DigitalKey.metric_expression
}

View File

@ -54,7 +54,6 @@ module TP_Mobile_Login {
)") )")
) )
))):splitBy())) ))):splitBy()))
"
EOT EOT
#if not set (removed) it's defaulted to "-1d" #if not set (removed) it's defaulted to "-1d"
@ -68,3 +67,7 @@ target = 98 #if not set(removed) it's defaulted
warning = 99 #if not set(removed) it's defaulted to 99 warning = 99 #if not set(removed) it's defaulted to 99
} }
output "TP_Mobile_Login_metric" {
value = module.TP_Mobile_Login.metric_expression
}

View File

@ -59,7 +59,7 @@ module TP_Mobile_Mapping {
~"DELETE /api/v1/vehicles/<VIN>~" ~"DELETE /api/v1/vehicles/<VIN>~"
)") )")
) )
))):splitBy()))" ))):splitBy()))
EOT EOT
#if not set (removed) it's defaulted to "-1d" #if not set (removed) it's defaulted to "-1d"
@ -73,3 +73,7 @@ target = 98 #if not set(removed) it's defaulted
warning = 99 #if not set(removed) it's defaulted to 99 warning = 99 #if not set(removed) it's defaulted to 99
} }
output "TP_Mobile_Mapping_metric" {
value = module.TP_Mobile_Mapping.metric_expression
}

View File

@ -63,7 +63,7 @@ module TP_Mobile_PersonalFavorites {
~"PUT /api/v2/favorites/homework/2~" ~"PUT /api/v2/favorites/homework/2~"
)") )")
) )
))):splitBy()))" ))):splitBy()))
EOT EOT
#if not set (removed) it's defaulted to "-1d" #if not set (removed) it's defaulted to "-1d"
@ -77,3 +77,8 @@ target = 98 #if not set(removed) it's defaulted
warning = 99 #if not set(removed) it's defaulted to 99 warning = 99 #if not set(removed) it's defaulted to 99
} }
output "TP_Mobile_PersonalFavorites_metric" {
value = module.TP_Mobile_PersonalFavorites.metric_expression
}

View File

@ -61,7 +61,7 @@ module TP_Mobile_Remote360 {
~"GET /recordings/vehicle/$vin~" ~"GET /recordings/vehicle/$vin~"
)") )")
) )
))):splitBy()))" ))):splitBy()))
EOT EOT
#if not set (removed) it's defaulted to "-1d" #if not set (removed) it's defaulted to "-1d"
@ -75,3 +75,7 @@ target = 98 #if not set(removed) it's defaulted
warning = 99 #if not set(removed) it's defaulted to 99 warning = 99 #if not set(removed) it's defaulted to 99
} }
output "TP_Mobile_Remote360_metric" {
value = module.TP_Mobile_Remote360.metric_expression
}

View File

@ -65,7 +65,7 @@ module TP_Mobile_RemoteServices {
~"GET /api/v2/presentation/remote-commands/eventStatus~" ~"GET /api/v2/presentation/remote-commands/eventStatus~"
)") )")
) )
))):splitBy()))" ))):splitBy()))
EOT EOT
#if not set (removed) it's defaulted to "-1d" #if not set (removed) it's defaulted to "-1d"
@ -79,3 +79,7 @@ target = 98 #if not set(removed) it's defaulted
warning = 99 #if not set(removed) it's defaulted to 99 warning = 99 #if not set(removed) it's defaulted to 99
} }
output "TP_Mobile_RemoteServices_metric" {
value = module.TP_Mobile_RemoteServices.metric_expression
}

View File

@ -38,7 +38,7 @@ module TP_Mobile_Send2VehicleLegacy {
") ")
) )
) )
)):splitBy()))" )):splitBy()))
EOT EOT
#if not set (removed) it's defaulted to "-1d" #if not set (removed) it's defaulted to "-1d"
@ -52,3 +52,7 @@ target = 98 #if not set(removed) it's defaulted
warning = 99 #if not set(removed) it's defaulted to 99 warning = 99 #if not set(removed) it's defaulted to 99
} }
output "TP_Mobile_Send2VehicleLegacy_metric" {
value = module.TP_Mobile_Send2VehicleLegacy.metric_expression
}

View File

@ -49,7 +49,7 @@ module TP_Mobile_Send2VehicleMGU {
~"/v3/motorist/[UUID]/trips~" ~"/v3/motorist/[UUID]/trips~"
)") )")
) )
))):splitBy()))" ))):splitBy()))
EOT EOT
#if not set (removed) it's defaulted to "-1d" #if not set (removed) it's defaulted to "-1d"
@ -63,3 +63,7 @@ target = 98 #if not set(removed) it's defaulted
warning = 99 #if not set(removed) it's defaulted to 99 warning = 99 #if not set(removed) it's defaulted to 99
} }
output "TP_Mobile_Send2VehicleMGU_metric" {
value = module.TP_Mobile_Send2VehicleMGU.metric_expression
}

View File

@ -51,7 +51,7 @@ module TP_Mobile_VehicleData {
~"GET /v1/vehicle/<VIN>~" ~"GET /v1/vehicle/<VIN>~"
)") )")
) )
))):splitBy()))" ))):splitBy()))
EOT EOT
#if not set (removed) it's defaulted to "-1d" #if not set (removed) it's defaulted to "-1d"

View File

@ -45,7 +45,7 @@ module TP_Mobile_VehicleList {
~"GET /api/v1/vehicles~" ~"GET /api/v1/vehicles~"
)") )")
) )
))):splitBy()))" ))):splitBy()))
EOT EOT
#if not set (removed) it's defaulted to "-1d" #if not set (removed) it's defaulted to "-1d"
@ -59,3 +59,7 @@ target = 98 #if not set(removed) it's defaulted
warning = 99 #if not set(removed) it's defaulted to 99 warning = 99 #if not set(removed) it's defaulted to 99
} }
output "TP_Mobile_VehicleList_metric" {
value = module.TP_Mobile_VehicleList.metric_expression
}

View File

@ -10,7 +10,7 @@ module VehicleFeaturesService_-_Vehicle_Features_V2_Error_Latency_2000ms_Rate {
#entity selector object #entity selector object
filter = "type(\"SERVICE_METHOD\")" filter = ""
#metric expression of the calculation as done in data explorer ui #metric expression of the calculation as done in data explorer ui

View File

@ -10,7 +10,7 @@ module VehicleFeaturesService_-_Vehicle_Features_V2_Error_Latency_500ms_Rate {
#entity selector object #entity selector object
filter = "type(\"SERVICE_METHOD\")" filter = ""
#metric expression of the calculation as done in data explorer ui #metric expression of the calculation as done in data explorer ui

View File

@ -10,7 +10,7 @@ module VehicleFeaturesService_-_Vehicle_Features_V2_Error_Latency_700ms_Rate {
#entity selector object #entity selector object
filter = "type(\"SERVICE_METHOD\")" filter = ""
#metric expression of the calculation as done in data explorer ui #metric expression of the calculation as done in data explorer ui

View File

@ -10,7 +10,7 @@ module VehicleFeaturesService_-_Vehicle_Features_V2_Success_Rate {
#entity selector object #entity selector object
filter = "type(\"SERVICE_METHOD\")" filter = ""
#metric expression of the calculation as done in data explorer ui #metric expression of the calculation as done in data explorer ui