Metric types follow the definition of Prometheus metrics types. A Prometheus Info metric is a special kind of Prometheus Gauge metric, which always has a value of 1 and has multiple labels carrying important information about the corresponding AlloyDB Omni Kubernetes operator Custom Resource.
To learn how to enable custom resource metrics, see Monitor AlloyDB Omni Kubernetes operator custom resources.
Custom Resource Definition (CRD) metadata labels
All custom resource metrics have the following labels that mark the group, version, and kind of the CRD. For more information, see Kubernetes API concepts. Label definitions and naming are listed in the following table:
| Key | Description | Example Value | 
|---|---|---|
| 
 | The group of the CRD. | 
 | 
| 
 | The version of the CRD. | 
 | 
| 
 | The kind of the CRD. | 
 | 
DBCluster metrics
DBCluster metrics are exposed from DBCluster resource manifests. All
DBCluster metric names start with alloydb_omni_dbcluster_. All DBCluster
metrics have the following labels:
| Key | Value | 
|---|---|
| 
 | The namespace that the DBCluster belongs to. | 
| 
 | The name of the DBCluster custom resource. | 
The labels in the following table will have an empty value —and are considered equivalent to labels that don't exist per Prometheus metric names and labels— if the relevant field isn't present in the DBCluster manifest.
| Metric Name | Description | Label | Unit | Type | 
|---|---|---|---|---|
| 
 | The high availability (HA) readiness of the `DBCluster`: 1ifha-ready, otherwise0. | reason: The reason why thisDBClusteris
(un)ready for HA. | 1 | Gauge | 
| 
 | The readiness of the DBClusterprimary node:1if ready, otherwise0. | reason: The reason why thisDBCluster's
primary node is (un)ready. | 1 | Gauge | 
| 
 | The current status of the DBCluster. | 
 
 
 
 
 
 
 
 | 1 | Info | 
| 
 | DBClusterconfiguration under thespecfield of the DBCluster manifest. | 
 
 
 
 
 | 1 | Info | 
| 
 | The number of standbys defined in the DBClusterspec. | N/A | 1 | Gauge | 
| 
 | Critical incident entries under the DBCluster manifest status.criticalIncidentssection. | 
 
 
 | 1 | Info | 
| 
 | The time when the critical incident occurred, expressed in Unix epoch time format. | 
 
 | sec | Gauge | 
Failover metrics
Failover metrics are metrics exposed from the Failover resource manifest. All
failover metric names start with alloydb_omni_failover_. All Failover metrics
have the following labels:
| Key | Value | 
|---|---|
| 
 | The namespace that the Failoverbelongs to. | 
| 
 | The name of the Failovercustom resource. | 
| 
 | The name of the DBCluster custom resource that the Failover targets.
This value is the same as the spec.dbclusterReffield of
theFailover. | 
The labels in the following table will have an empty value —and are considered equivalent to labels that don't exist based on Prometheus metric names and labels— if the relevant field isn't present in the Failover manifest.
| Metric name | Description | Label | Unit | Type | 
|---|---|---|---|---|
| 
 | The time when this Failoverstarted, expressed in
      Unix epoch time format. | 
 
 | sec | Gauge | 
| 
 | The time when the Failoverfinished, expressed in Unix epoch time format | 
 
 | sec | Gauge | 
| 
 | The current status of the Failover. | 
 
 
 
 
 
 | 1 | Info | 
PgBouncer metrics
PgBouncer metrics are metrics that are exposed fromPgBouncer resource
manifests. All PgBouncer metric names start with alloydb_omni_pgbouncer_. All
PgBouncer metrics have the following labels:
| Key | Value | 
|---|---|
| 
 | The namespace that the PgBouncerbelongs to. | 
| 
 | The name of the PgBouncercustom resource. | 
| 
 | The name of the DBCluster custom resource that this PgBouncertargets. This value is the same as thespec.dbclusterReffield of thePgBouncer. | 
The labels in the following table will have an empty value —and are considered equivalent to labels that don't exist based on Prometheus metric names and labels— if the relevant field isn't present in the PgBouncer manifest..
| Metric Name | Description | Label | Unit | Type | 
|---|---|---|---|---|
| 
 | The current status of the PgBouncer. | 
 
 | 1 | Info |