This repository contains the following definitions for RHTAP:
- Prometheus alerting rules (deployed to RHOBS)
- Grafana dashboards (deployed to AppSRE's Grafana)
The repository contains Prometheus alert rules files for monitoring RHTAP data plane and control plane clusters along with their tests.
The different alerting rules in this repository are:
SLO (Service Level Objective) alert rules are rules defined to monitor and alert when a service or system is not meeting its specified service level objectives.
Apply the slo
label to alerts directly associated with Service Level Objectives.
These alerts typically indicate issues affecting the performance or reliability of the service.
Using the slo
label facilitates quicker incident response by
promptly identifying and addressing issues that impact service level objectives.
Apply slo: "true"
under labels section of any alerting rule.
labels:
severity: critical
slo: "true"
SLO alerts should be labeled with severity: critical
Teams receive updates on alerts relevant to them through Slack notifications, where the team's handle is tagged in the alert message.
Apply the alert_routing_key
annotation to alerts in order to get notified about them.
Apply the alert_routing_key
key to the annotations section of any alerting rule,
with one of the team's namespaces as its value, or the team's name.
annotations:
summary: "PipelineRunFinish to SnapshotInProgress time exceeded"
alert_routing_key: "application-service"
make sure that the team's name is aligned with the one mentioned in app-interface's logic. if the team is missing from the conditional statement in that file, make sure to add it.
Alert rules for data plane and control plane clusters are being deployed by app-interface to RHOBS, to where the metrics are also being forwarded. For deploying the alert rules, app-interface references the location of the rules together with a git reference - branch name or commit hash.
It holds separate references to both staging and production RHOBS instances (monitoring RHTAP staging and production deployments). For both environments, we maintain the reference to the rules as a commit hash (rather than a branch). This means that any changes to the rules will not take effect until the references are updated.
Steps for updating the rules:
- Merge the necessary changes to this repository - alerts and tests.
- The
data plane staging environment
and the
control plane staging environment
in app-interface are referencing to the
main
branch ino11y
repository and will be automatically updated with the new changes. - Once merged and ready to be promoted to production, update the data plane production environment and/or the control plane production environment reference in app-interface to the commit hash of the changes you made.
Refer to the app-interface instructions to learn how to develop AppSRE dashboards for RHTAP. This repository serves as versioned storage for the dashboard definitions and nothing more.
Dashboards are automatically deployed to stage AppSRE Grafana when merged into the main
branch.
Deploying to production requires an update of a commit
reference
in app-interface.
Only a subset of the metrics and labels available within the RHTAP clusters is forwarded to RHOBS. If additional metrics or labels are needed, add them by following the steps described in the monitoring stack documentation
The RHTAP o11y team maintains this repository. Reach out to us on our slack channel for further assistance.