For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

Metrics

Connectivity Gateway (CGW) exposes the following metrics in the Prometheus format on the /metrics endpoint. Metrics are grouped by the exporter that produces them; each exporter is enabled independently.

Bird Exporter

When the Bird Exporter is enabled (bird.enabled and bird.birdExporter.enabled), the following metrics are exposed:

Bird Config Watcher

When the Bird Config Watcher is enabled (bird.birdConfigWatcher.enabled), the following metrics are exposed. Each is a stateset: it carries a label of the same name as the metric whose value is either valid or invalid (e.g. bird4_config_state{bird4_config_state="valid"} 1).

Ping Exporter

When the Ping Exporter is enabled (pingExporter.enabled), the following metrics are exposed:

IPsec Exporter

When the IPsec Exporter is enabled (ipsecExporter.enabled), the following metrics are exposed. The strongswan_conn_* metrics are only present when --enable-conn-metrics is set, and the strongswan_cert_* metrics only when --enable-cert-metrics is set.

strongswan_ike_info carries the labels ike_name, ike_id, local_id, remote_id and remote_host. Joining it on ike_name and ike_id adds the peer to any strongswan_ike_* or strongswan_sa_* metric:

promql

Conntrack Exporter

When the Conntrack Exporter is enabled (conntrackExporter.enabled), the following metrics of the pod network namespace are exposed:

Note

All values are read from /proc/sys/net/netfilter/, which is per network namespace. They describe the conntrack of the CGW pod, not of the node.

A conntrack table fills up for one of two reasons: the limit is too low for the traffic, or entries live longer than the traffic that created them. The timeout values above cover the second case, which the entry count alone does not show — the kernel keeps an established TCP entry for five days by default, so a gateway that sees many short lived TCP connections can accumulate entries far beyond the number of connections actually in use. Comparing node_nf_conntrack_entries against node_nf_conntrack_entries_limit tells you how full the table is; the timeouts tell you which protocol is holding it.

node_sysctl_net_netfilter_nf_conntrack_buckets relates to lookup cost rather than capacity: it is the number of hash buckets, and dividing node_nf_conntrack_entries_limit by it yields the average chain length the kernel has to walk (the default ratio is 4).

Note

The exporter also exposes node_scrape_collector_success{collector="conntrack"}, which is 0 on kernels built without CONFIG_NF_CONNTRACK_PROCFS. Those kernels do not provide /proc/net/stat/nf_conntrack, so the exporter cannot read the per-CPU conntrack statistics (insert_failed, drop, early_drop, …) and reports the collector as failed even though the two metrics above are collected. The option is marked obsolete by the kernel — the statistics are only reachable over Netlink, e.g. with conntrack -S.