/o11y

Stonesoup observability

Primary LanguageGoApache License 2.0Apache-2.0

RHTAP Observability

This repository contains the following definitions for RHTAP:

  • Prometheus alerting rules (deployed to RHOBS)
  • Grafana dashboards (deployed to AppSRE's Grafana)

Alerting Rules

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:

Control Plane Alerts

Data Plane Alerts

SLO Alerts

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.

Usage Guidelines:

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.

Benefits of using the slo Label:

Using the slo label facilitates quicker incident response by promptly identifying and addressing issues that impact service level objectives.

How to apply the slo Label:

Apply slo: "true" under labels section of any alerting rule.

labels:
    severity: warning
    slo: "true"

Updating Alerts

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:

  1. Merge the necessary changes to this repository - alerts and tests.
  2. The data plane staging environment and the control plane staging environment in app-interface are referencing to the main branch in o11y repository and will be automatically updated with the new changes.
  3. 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.

Grafana Dashboards

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.

Adding Metrics and Labels

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

Support

The RHTAP o11y team maintains this repository. Reach out to us on our slack channel for further assistance.