-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ibizaman
committed
Nov 26, 2023
1 parent
d98dcef
commit b88e621
Showing
8 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Monitoring Block | ||
|
||
This block sets up the monitoring stack for Self Host Blocks. It is composed of: | ||
|
||
- Grafana as the dashboard frontend. | ||
- Prometheus as the database for metrics. | ||
- Loki as the database for logs. | ||
|
||
## Provisioning | ||
|
||
Self Host Blocks will create automatically the following resources: | ||
|
||
- For Grafana: | ||
- datasources | ||
- dashboards | ||
- contact points | ||
- notification policies | ||
- alerts | ||
- For Prometheus, the following exporters and related scrapers: | ||
- node | ||
- smartctl | ||
- nginx | ||
- For Loki, the following exporters and related scrapers: | ||
- systemd | ||
|
||
Those resources are namespaced as appropriate under the Self Host Blocks namespace: | ||
|
||
![](../assets/monitoring_grafana_folder.png) | ||
|
||
## Errors Dashboard | ||
|
||
This dashboard is meant to be the first stop to understand why a service is misbehaving. | ||
|
||
![](../assets/monitoring_grafana_dashboards_Errors_1.png) | ||
![](../assets/monitoring_grafana_dashboards_Errors_2.png) | ||
|
||
The yellow and red dashed vertical bars correspond to the [Requests Error Budget | ||
Alert](#requests-error-budge-alert) firing. | ||
|
||
## Performance Dashboard | ||
|
||
This dashboard is meant to be the first stop to understand why a service is performing poorly. | ||
|
||
![](../assets/monitoring_grafana_dashboards_Performance_1.png) | ||
![](../assets/monitoring_grafana_dashboards_Performance_2.png) | ||
|
||
## Requests Error Budget Alert | ||
|
||
This alert will fire when the ratio between number of requests getting a 5XX response from a service | ||
and the total requests to that service exceeds 1%. | ||
|
||
![](../assets/monitoring_grafana_alert_rules_5xx_1.png) | ||
![](../assets/monitoring_grafana_alert_rules_5xx_2.png) |