Skip to content

Commit 4612c93

Browse files
authored
Merge pull request #290 from TykTechnologies/metrics-amends
set dash to auto refresh and reduce data interval for detail panels
2 parents 3ccbaf6 + 9243cc2 commit 4612c93

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

deployments/healthcheck-blackbox/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,33 @@ After deployment, you can access [Grafana](http://localhost:3200) using the defa
4141
- **Password**: `abc123`
4242

4343
Navigate to the [Tyk System Health dashboard](http://localhost:3200/d/tyk-system-health) in the [Dashboards section](http://localhost:3200/dashboards) to monitor the status of your Tyk components.
44+
45+
### Simulating Failure and Recovery
46+
47+
This section explains how to simulate a component failure and observe its recovery in the Tyk System Health dashboard.
48+
49+
#### Simulating Failure
50+
51+
1. Stop one of the monitored Tyk components by running the following command:
52+
53+
```sh
54+
docker stop tyk-demo-tyk-gateway-1
55+
```
56+
57+
Stopping this container will cause two probes to report a failure:
58+
- **Gateway Component Probe**
59+
- **Upstream API Probe**
60+
61+
2. Open the Tyk System Health dashboard. Two instances will now be displayed as down.
62+
**Note:** Probes run at 15-second intervals, so there may be a short delay before the changes appear in the dashboard.
63+
64+
#### Simulating Recovery
65+
66+
1. Start the stopped container using the command below:
67+
68+
```sh
69+
docker start tyk-demo-tyk-gateway-1
70+
```
71+
72+
2. Refresh the dashboard to confirm that the previously down components are now marked as up and operational.
73+

deployments/healthcheck-blackbox/volumes/grafana/provisioning/dashboards/dashboard-model.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,7 @@
14151415
"y": 12
14161416
},
14171417
"id": 12,
1418-
"maxDataPoints": 100,
1418+
"maxDataPoints": 2000,
14191419
"options": {
14201420
"colorMode": "background",
14211421
"graphMode": "none",
@@ -1998,7 +1998,7 @@
19981998
}
19991999
],
20002000
"preload": false,
2001-
"refresh": "",
2001+
"refresh": "10s",
20022002
"schemaVersion": 40,
20032003
"tags": [
20042004
"prometheus",

0 commit comments

Comments
 (0)