From 020bf5b9b5c4702f80dd77360d9ad360d88aff5a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alex=20Ewerl=C3=B6f?=
Date: Mon, 23 Sep 2024 22:08:17 +0200
Subject: [PATCH] add a couple of metrics to the example.json
---
workshop/example.json | 48 +++++++++++++++++++++++++++++++------------
workshop/index.html | 2 +-
2 files changed, 36 insertions(+), 14 deletions(-)
diff --git a/workshop/example.json b/workshop/example.json
index b483f31..2def946 100644
--- a/workshop/example.json
+++ b/workshop/example.json
@@ -29,9 +29,25 @@
],
"metrics": [
{
- "displayName": "Response time",
- "description": "How long it takes to respond to a request",
- "measuredFailuresIndex": []
+ "displayName": "response_code between 200-499",
+ "description": "error rate",
+ "measuredFailuresIndex": [
+ 0
+ ]
+ },
+ {
+ "displayName": "latency < 10 seconds",
+ "description": "The response to climate API is relatively fast",
+ "measuredFailuresIndex": [
+ 0
+ ]
+ },
+ {
+ "displayName": "GET climate successful",
+ "description": "",
+ "measuredFailuresIndex": [
+ 1
+ ]
}
]
},
@@ -48,15 +64,6 @@
"likelihood": "Rare",
"impactLevel": "Minor"
},
- {
- "consumerIndex": 1,
- "consumptionIndex": 1,
- "symptom": "Can't lock the car",
- "consequence": "Thieves may get in the car before the user gets to lock it",
- "businessImpact": "The user may take significant financial damage and take us to court",
- "likelihood": "Rare",
- "impactLevel": "Catastrophic"
- },
{
"consumerIndex": 1,
"consumptionIndex": 1,
@@ -65,9 +72,24 @@
"businessImpact": "The user may call customer support",
"likelihood": "Possible",
"impactLevel": "Insignificant"
+ },
+ {
+ "consumerIndex": 1,
+ "consumptionIndex": 1,
+ "symptom": "Can't lock the car",
+ "consequence": "Thieves may get in the car before the user gets to lock it",
+ "businessImpact": "The user may take significant financial damage and take us to court",
+ "likelihood": "Rare",
+ "impactLevel": "Catastrophic"
}
],
- "metrics": []
+ "metrics": [
+ {
+ "displayName": "",
+ "description": "",
+ "measuredFailuresIndex": []
+ }
+ ]
}
]
},
diff --git a/workshop/index.html b/workshop/index.html
index b48b704..af04353 100644
--- a/workshop/index.html
+++ b/workshop/index.html
@@ -92,7 +92,7 @@ Why failures?
and there are even more pitfalls.
- Our approach is based on the following assumptions:
+ Our approach is based on the following principles:
- No vanity metrics: SLI tie to system reliability from the consumers' perspective. If an anomaly does not lead to a consumer facing failure and business risk, it is out of scope.