updated SLOs
parent
5d57a14198
commit
061ba48316
|
|
@ -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}"
|
|
||||||
}
|
|
||||||
|
|
@ -6,4 +6,4 @@ module TP_Mobile_VehicleData {
|
||||||
name = "TP_Mobile_VehicleData"
|
name = "TP_Mobile_VehicleData"
|
||||||
|
|
||||||
metric_selector = "${data.terraform_remote_state.slo.outputs.TP_Mobile_VehicleData_metric}"
|
metric_selector = "${data.terraform_remote_state.slo.outputs.TP_Mobile_VehicleData_metric}"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
@ -69,4 +68,8 @@ evaluation = "AGGREGATE"
|
||||||
target = 98 #if not set(removed) it's defaulted to 98
|
target = 98 #if not set(removed) it's defaulted to 98
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
@ -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"
|
||||||
|
|
@ -67,4 +66,8 @@ evaluation = "AGGREGATE"
|
||||||
target = 98 #if not set(removed) it's defaulted to 98
|
target = 98 #if not set(removed) it's defaulted to 98
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
@ -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"
|
||||||
|
|
@ -72,4 +72,8 @@ evaluation = "AGGREGATE"
|
||||||
target = 98 #if not set(removed) it's defaulted to 98
|
target = 98 #if not set(removed) it's defaulted to 98
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
@ -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"
|
||||||
|
|
@ -76,4 +76,9 @@ evaluation = "AGGREGATE"
|
||||||
target = 98 #if not set(removed) it's defaulted to 98
|
target = 98 #if not set(removed) it's defaulted to 98
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
@ -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"
|
||||||
|
|
@ -74,4 +74,8 @@ evaluation = "AGGREGATE"
|
||||||
target = 98 #if not set(removed) it's defaulted to 98
|
target = 98 #if not set(removed) it's defaulted to 98
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
@ -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"
|
||||||
|
|
@ -78,4 +78,8 @@ evaluation = "AGGREGATE"
|
||||||
target = 98 #if not set(removed) it's defaulted to 98
|
target = 98 #if not set(removed) it's defaulted to 98
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
@ -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"
|
||||||
|
|
@ -51,4 +51,8 @@ evaluation = "AGGREGATE"
|
||||||
target = 98 #if not set(removed) it's defaulted to 98
|
target = 98 #if not set(removed) it's defaulted to 98
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
@ -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"
|
||||||
|
|
@ -62,4 +62,8 @@ evaluation = "AGGREGATE"
|
||||||
target = 98 #if not set(removed) it's defaulted to 98
|
target = 98 #if not set(removed) it's defaulted to 98
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
@ -58,4 +58,8 @@ evaluation = "AGGREGATE"
|
||||||
target = 98 #if not set(removed) it's defaulted to 98
|
target = 98 #if not set(removed) it's defaulted to 98
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue