이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 3. Configuring observability dashboards and alerts
Connectivity Link provides a variety of starting points for monitoring your Connectivity Link deployment by using example dashboards and alerts, which are ready-to-use and customizable to fit your environment.
The Connectivity Link example dashboards are uploaded to the Grafana dashboards website. You can import the following dashboards into your Grafana deployment on OpenShift:
| Name | Dashboard ID |
|---|---|
| 21538 | |
| 20982 | |
| 20981 |
This section explains how to enable the example dashboards and alerts and provides links additional resources for more information.
You must perform these steps on each OpenShift cluster that you want to use Connectivity Link on.
Prerequisites
- You have configured metrics as described in Chapter 2, Configuring observability metrics.
- You have installed and set up Grafana on OpenShift. For an example, see Installing Grafana on Openshift for Kaudrant Observability.
3.1. Configuring example Grafana dashboards 링크 복사링크가 클립보드에 복사되었습니다!
You can import dashboards into Grafana by using its user interface, or automatically by using custom resources in OpenShift:
- Importing dashboards in the Grafana UI
- JSON file: Use the Import feature in the Grafana UI to upload dashboard JSON files directly.
Dashboard ID: Use the Import feature in the Grafana UI to import via Grafana.com using a dashboard ID.
You can download the JSON file or copy the dashboard ID from the relevant dashboard page on Grafana dashboards website. For more information, see the Grafana documentation on how to import dashbords.
- Importing dashboards automatically in OpenShift
You can automate dashboard provisioning in Grafana by adding JSON files to a
ConfigMap, which must be mounted at/etc/grafana/provisioning/dashboards.TipAlternatively, to avoid adding
ConfigMapvolume mounts in your Grafana deployment, you can use aGrafanaDashboardresource to reference aConfigMap. For an example, see Dashboard from ConfigMap in the Grafana documentation.Data sources are configured as template variables, automatically integrating with your existing data sources. Metrics for these dashboards are sourced from Prometheus. For more information, see the Kuadrant documentation on metrics.
For some example dashboard panels to work correctly, HTTPRoutes in Connectivity Link must include a service and deployment label with a value that matches the name of the service and deployment being routed to, for example, service=my-app and deployment=my-app. This allows low-level Istio and Envoy metrics to be joined with Gateway API state metrics.
Additional resources
3.2. Configuring example Prometheus alerts 링크 복사링크가 클립보드에 복사되었습니다!
You can integrate the Kuadrant example alerts into Prometheus as PrometheusRule resources, and then adjust the alert thresholds to suit your specific operational needs.
Service Level Objective (SLO) alerts generated by using the Sloth GitHub project are also included. You can use these alerts to integrate with the SLO Grafana dashboard, which uses generated labels to comprehensively overview your SLOs.
For details on how to configure Prometheus alerts, see the OpenShift documentation on managing alerting rules.