Node attribute metric

The backend_node_attribute metric consolidates infrastructure node attributes in a single Prometheus metric. It exposes a separate time series for each node and attribute, so you can check whether a node is online, assigned to the storage cluster, included in high availability, used by a service, or in maintenance.

This is a boolean metric: the value is 1 if the attribute applies to the node and 0 otherwise. Prometheus recording rules that use this metric can be found in the /var/lib/prometheus/rules/backend.rules file on any node in the cluster.

Metric Description

Labels

backend_node_attribute

Shows whether the node has the specified attribute.

cluster_id
Cluster ID
hostname
Node hostname
node
Node ID
attribute

Node attribute. The supported values are:

  • online: node is online
  • ha: node is included in the HA configuration
  • primary: node is the primary management node
  • compute_worker: node is a compute worker node
  • compute_controller: node is a compute controller node
  • fenced: node is in a fenced state
  • abgw: node is included in the backup storage cluster
  • assigned: node is assigned to the storage cluster
  • maintenance: node is in maintenance