Alerting Guidelines
Tetrate Service Bridge collects a large number of metrics and the relationship between those, and the threshold limits that you set will differ from environment to environment. This document outlines the generic alerting guidelines rather than providing an exhaustive list of alert configurations and thresholds, since these will differ between different environments with different workload configurations. These dashboards are intended to be installed only in the management plane cluster.
The alerting configuration using Prometheus Operator CR can be downloaded from here.
For more information on how to configure PrometheusRules, refer to
official Prometheus documentation.
TSB Health Status
Dashboard indicating key components health for fast diagnosis.
Green or red colored panels for each TSB component, which is automatically diagnosed based on current metrics contrasted against its historic and weighted by severity.
You can find it in the Grafana Dashboards download button here.
The dashboard is divided into core (top) and non-core (bottom) components.

A red light indicates it is urgent to check the given component's health, whether
it is down, unable to report metrics, or the reported metrics indicate an uncommon
behavior. Take this example with edge. As it is distributed in each control plane,
you must dig deeper into which one and why it is being reported:

After identifying a failing component it is recommended to also check the more detailed alerts described later in this section: TSB and XCP Operational Status.
This tool is specially useful once your clusters are set up and operational. Early stages clusters, e.g. with incomplete onboardings, may fail to provide the necessary data for this diagnosis to be accurate.
Components dependencies
Since each component is tightly dependant upon the operation of the others, in some
situations the failure of one will also trigger a red light on a different one. This is
because of the nature of the metrics selected to diagnose the components.
It is specially the case of envoy in the management plane: if it fails, edge,
tsb and iam will have false positives. Be aware of the
dependencies so you can debug the right direction.
| MPC | XCP | XCPed | API | IAM | OAP | Envoy | |
|---|---|---|---|---|---|---|---|
| MPC | - | ||||||
| XCP | - | ||||||
| XCPed | - | ||||||
| API | - | ||||||
| IAM | - | ||||||
| OAP | - | ||||||
| Envoy | dep | dep | dep | - |
TSB Operational Status
Alerts describing the health of TSB API Management Plane components.
TSB Absent Metrics
TSB talks to its persistent backend even without constant external load. An absence of requests reliably indicates an issue with TSB metrics collection, and should be treated as a high-priority incident as the lack of metrics means the loss of visibility into TSB's status.
Check the health of the metrics ingestion infrastructure - from TSB's
otel-collector to your Prometheus installation.
TSB Request Traffic
The raw rate of requests to TSB API. The monitoring value comes principally from detecting outliers and unexpected behaviour, e.g. the rate of requests dropping to 0.
Things to check:
- health of the cluster ingress.
- health of TSB ingress infrastructure (e.g. AWS ALB etc).
- health of the metrics ingestion and processing infrastructure, i.e. Prometheus.
- possible DNS misconfiguration.
- inspect the TSB Front Envoy logs for any additional clues (e.g. TSL termination errors, TSB cluster network partitioning signs etc).
TSB API Availability
The rate of successful requests to TSB API. This is an extremely user-visible signal and should be treated as such.
Drill down to the "TSB Error Rate" panel in the "TSB Operational Status"
dashboard to find which gRPC method is
producing errors. To troubleshoot further, consult the deployments/tsb logs.
For example, if the leading source of errors is e.g. GetTenant, searching the
tsb component logs for the lines containing this method may provide
additional insight into the nature of the errors.
Front Envoy Availability
The rate of successful requests to TSB Management Plane Front Envoy. TSB
Management Plane Envoy Gateway (front-envoy) terminates all incoming requests
to TSB Management Plane components. This alert is MUST be inhibited if the "TSB
API Availability" alert is firing. Refer to Alertmanager
docs
on how to configure alert inhibition.
The monitoring value of this alert is "catch high error rates of non-API TSB
components, e.g. Control Plane sync, metrics propagation etc".
Drill down to the "Front Envoy Error Rate" panel in the "TSB Operational
Status" dashboard to to narrow down
which Envoy cluster is experiencing issues. Envoy cluster names correspond
to the TSB Management Plane components, as described in the TSB
architecture document.
TSB Front Envoy p99 Latency
The highest (99th percentile) latency of requests served by TSB Front Envoy. These include both the API requests (via UI or CLI) and XCP configuration propagation-related requests. High latency may be an indicator of one of TSB components overload/resource saturation and may impact both API experience (slow UI/CLI) and config propagation.
Drill down to the "Front Envoy Latency" panel in the "TSB Operational Status"
dashboard to narrow down which Envoy
cluster is experiencing issues. Envoy cluster names correspond to the TSB
Management Plane components, as described in the TSB
architecture document.
Further inspecting the relevant TSB Component logs may provide additional insight.
Also, it is always a good idea to inspect the "Data Store Latency" panel and search for any correlations between the increased TSB latency and Postgres operations latency.
Persistent Backend Availability
Persistent backend availability from TSB with no insight into the internal Postgres operations.
TSB stores all of its state in the persistent backend and as such, its operational status (availability, latency, throughput etc.) is tightly coupled with the status of the persistent backend. TSB records the metrics for persistent backend operations that may be used as a signal to alert on.
It is important to note that any degradation in persistent backend operations will inevitably lead to overall TSB degradation, be it availability, latency or throughput. This means that alerting on persistent backend status may be redundant and the oncall person will receive two pages instead of one whenever there is a problem with Postgres that requires attention. However, such a signal still has significant value in providing important context to decrease the time to triage the issue and address the root cause/escalate.
Data store panels provide a helpful set of metrics that should be consulted first when troubleshooting this alert.
Treatment of "resource not found" errors: small number of "not found" responses
are normal because TSB, for the purposes of optimisation, often uses Get
queries instead of Exists in order to determine the resource existence.
However, a large rate of "not found" (404-like) responses likely indicates an
issue with the persistent backend setup.
Consult the tsb and iam component logs to narrow down the nature of
Postgres errors. To troubleshoot further, verify the health of the Postgres
installation.
MPC Component Health
MPC (Management Plane Controller) is a TSB MP component that is responsible for
configuration and state validation and bi-directional sync between TSB API and
XCP Central component. MPC operational issues indicate that configuration
updates may not be applied or applied too slow.
MPC Operational Status dashboard provides
an extensive list of signals that can be helpful in troubleshooting MPC issues.
To troubleshoot further, consult the mpc component logs.
Note: MPC uses k8s API as an intermittent configuration storage. Any issues
affecting k8s APIServer (namely, its etcd installation) will result in
degraded MPC health. MPC logs can be helpful in confirming the health and
interaction between MPC and k8s.
From TSB 1.12.16, these MPC metrics give early warning that MPC is falling behind:
| Metric | Type | Description |
|---|---|---|
mpc_status_queue_depth | Gauge | The number of config status reports waiting to be sent to TSB. The queue holds 100 reports. |
mpc_status_queue_full_total | Counter | The number of status reports sent to the retry queue because the status queue was full. |
mpc_xcp_cluster_write_total | Counter | The number of XCP Cluster writes made when onboarding clusters, labeled by operation and by outcome (ok, timeout, error, already_exists or not_found). |
mpc_tsb_latest_sync_time | Gauge | The time of the last sync with TSB, as a Unix timestamp. The series with direction="outbound" and resource="StatusReport" records the last successful status push to TSB. |
Reasonable first iteration alerts are:
| Alert | PromQL | For |
|---|---|---|
| Status queue to TSB is full | sum(increase(mpc_status_queue_full_total[10m])) > 0 | |
| Cluster writes are timing out | sum(increase(mpc_xcp_cluster_write_total{outcome="timeout"}[10m])) > 0 |
A full status queue means that the status push stream to TSB isn't keeping up.
Check the mpc and tsb component logs. Cluster write timeouts mean that the
Management Plane Kubernetes API server is responding slowly.
XCP Operational Status
Alerts describing the health of TSB XCP Management Plane components.
Last Management Plane Sync
The max time elapsed since XCP Edge last synced with the management plane (XCP central)
for each registered cluster. This indicates how stale the configuration received from the
management plane is in a given cluster. A reasonable first iteration threshold
here is 300 (seconds).
Use "XCP Central Operational Status" and "XCP Edge status" dashboards to
narrow down which Control Plane cluster is experiencing syncing issues.
Verify the connectivity between the CP cluster and MP.
To troubleshoot further, xcp-central MP and edge CP component logs can
provide additional insight.
gRPC Message Size
XCP Central and XCP Edge send configuration and cluster state to each other as gRPC messages, and each side limits the size of the messages it accepts. The default limit is 64MB. A Central or Edge on a version earlier than TSB 1.12.16 accepts at most 20MB, so its peers send it no more than that.
If a message is larger than the receiver accepts, the sender skips it and logs an error. The receiver keeps its previous configuration or cluster state until a later message fits, so a cluster can stop receiving configuration updates without disconnecting.
From TSB 1.12.16, XCP Central and XCP Edge expose these metrics, with the
prefix xcp_central_ or xcp_edge_:
| Metric | Type | Description |
|---|---|---|
grpc_message_size_limit_ratio | Gauge | The size of the largest message sent on a stream in the last 10 minutes, divided by the largest message the peer accepts. |
grpc_message_size_peer_limit_bytes | Gauge | The largest message the peer accepts, in bytes. |
grpc_message_size_rejected_total | Counter | The number of messages skipped because they were too large for the peer. |
grpc_message_size_bytes | Histogram | The size of the messages sent. |
The metrics have these labels:
stream: the stream the message was sent on, such asconfigs,cluster-stateorconfig-status.peer: the Edge cluster name on XCP Central, and Central's address on XCP Edge.peer_limit_advertised:"false"when the peer is on an earlier version and is held at 20MB.
Reasonable first iteration alerts are:
| Alert | PromQL | For |
|---|---|---|
| Message size near the limit (warning) | max by (stream, peer, peer_limit_advertised, instance) ({__name__=~"xcp_(central|edge)_grpc_message_size_limit_ratio"}) > 0.5 | 15m |
| Message size close to the limit (critical) | max by (stream, peer, peer_limit_advertised, instance) ({__name__=~"xcp_(central|edge)_grpc_message_size_limit_ratio"}) > 0.8 | 5m |
| Message skipped because it was too large | sum by (stream, peer, peer_limit_advertised, instance) (increase({__name__=~"xcp_(central|edge)_grpc_message_size_rejected_total"}[10m])) > 0 |
If an alert fires for a peer with peer_limit_advertised="false", upgrade that
peer so that it accepts the larger limit. Otherwise, check the
xcp-central MP and edge CP component logs for the skipped messages, and
contact Tetrate Support for help reducing the size of the configuration or
raising the limit.