Common labels
Kubernetes resource labels
We generally follow the Project Syn labelling guide for Kubernetes resources deployed on OpenShift 4 clusters.
Alert labels
We use a few standard labels for alerts on OpenShift 4. Currently the following labels have a well-defined meaning.
Label key | Label value | Description |
---|---|---|
|
|
Only alerts which have label |
|
|
Alerts with label |
|
|
Alerts with label |
|
A Commodore component name |
This label indicates the Commodore component which manages the alert rule. This label is intended to help engineers to find the source code where the alert rule is defined or adjusted. |
|
A team name |
This label indicates the team which is responsible for this alert. The label is used to route the alert in Alertmanager. |
|
A Project Syn cluster ID |
This label identifies the cluster from which the alert originates. We use the cluster’s Project Syn ID as a unique identifier. |
|
A Project Syn tenant ID |
This label identifies the tenant which owns the cluster from which the alert originates. We use the tenant’s Project Syn ID as a unique identifier. |
The cluster_id and tenant_id labels are added to all alerts (and time series) through Prometheus’s external labels feature.
|