Skip to Content
Cybrave OS

Prometheus Metrics

Prometheus endpoints and metrics Cybrave OS exposes to third-party consumers — dataplane, host, process, and query-API surfaces.

This page describes an exporter deployment whose addresses, retention, and metric families must be checked against the installed OS image. The management services include a prometheus service on TCP 9090; allow it in the management access profile of the interface that needs external access. A listener bound to 0.0.0.0 is not proof that the management access policy permits remote connections.

Cybrave OS exposes the following Prometheus metrics to third-party consumers (external Prometheus servers, Grafana, alerting, etc.).

Cybrave OS runs a local Prometheus server that scrapes three exporters. Each exporter serves raw metrics on its own HTTP port. External collection depends on the listener address and management access policy; the loopback-only VPP exporter cannot be scraped directly from another host. Use local collection or federation for those metrics.

Endpoints at a glance

ComponentAddressPathWhat it exposes
Prometheus server0.0.0.0:9090/metrics, /api/v1/*Query API + Prometheus self-metrics
vpp-exporter127.0.0.1:9482/metricsVPP dataplane counters
node-exporter0.0.0.0:9100/metricsHost / OS metrics (CPU, memory, disk, net, …)
process-exporter0.0.0.0:9256/metricsPer-process CPU / memory / IO

Series collected by the local Prometheus carry the external label product="cybrave" and the job label of the scrape job that collected them:

JobTargetIntervalSeries kept
vppvpp-exporter15 severy dataplane series except those vpp-realtime keeps
vpp-realtimevpp-exporter (realtime instance)100 mszone_rx_bytes, zone_tx_bytes, interfaces_rx_miss, datapath_latency_p99_ns, datapath_latency_samples only
nodenode-exporter15 severy host series
processprocess-exporter15 severy process series

vpp-realtime is the job the device overview reads its live external traffic rate and its dataplane health from; each of its series is stored under that job alone, so select it by job="vpp-realtime". Retention is 15 days / 4 GB. To consume the data from outside the box, use reachable, permitted exporter endpoints or federate from :9090 via /federate.

Dataplane metrics

Served on 127.0.0.1:9482. Metric names carry no vpp_ prefix and their HELP text is empty. This endpoint exposes only the series below — no Go runtime, process or promhttp self-metrics.

Which label values appear depends on the running configuration, since interfaces, heaps, buffer pools and zones come and go at runtime. The metric names themselves are fixed.

Interfaces

All counters. Labels: interface (VPP interface name) and thread (worker index).

MetricMeaning
interfaces_rx_packets, interfaces_rx_bytesPackets / bytes received
interfaces_tx_packets, interfaces_tx_bytesPackets / bytes transmitted
interfaces_dropsDropped packets
interfaces_puntPunted packets
interfaces_ip4IPv4 packets
interfaces_ip6IPv6 packets
interfaces_rx_no_bufReceives lost for want of a buffer
interfaces_rx_missMissed receives
interfaces_rx_errorReceive errors
interfaces_tx_errorTransmit errors
interfaces_mplsMPLS packets

Per-cast rx/tx breakdowns (unicast, multicast, broadcast) are not exposed.

System

All gauges. Scalars have no labels; per-worker vectors carry index and thread.

MetricKindMeaning
sys_vector_ratescalar gaugeGlobal average vector rate
sys_input_ratescalar gaugeInput rate
sys_last_updatescalar gaugeTime of the last stats update
sys_last_stats_clearscalar gaugeTime of the last counter clear
sys_heartbeatscalar gaugeDataplane liveness heartbeat
sys_boottimescalar gaugeBoot timestamp (for uptime)
sys_num_worker_threadsscalar gaugeWorker thread count
sys_vector_rate_per_workervector gaugePer-worker vector rate; labels index, thread
sys_loops_per_workervector gaugePer-worker loop count; labels index, thread

When the corresponding features are enabled, further gauges appear under the same naming scheme — for example sys_session_* and sys_tcp_*. Those backed by a per-worker vector rather than a scalar carry index and thread, like the vector gauges above.

Memory

All gauges, label heap (e.g. main heap, stat segment):

mem_total, mem_used, mem_free, mem_used_mmap, mem_total_alloc, mem_free_chunks, mem_releasable.

Buffer pools

All gauges, label pool:

buffer_pool_available, buffer_pool_used, buffer_pool_cached.

Zones

Per-zone traffic, summed across worker threads. All counters, label zone:

zone_rx_packets, zone_rx_bytes, zone_tx_packets, zone_tx_bytes.

Not exposed

Several classes of dataplane counter are deliberately absent: per-node statistics and error counters, per-cast interface breakdowns, and the per-feature counters for routing, ARP, IPsec, policers, VRRP, BFD, NAT, DPI and MPLS mapping.

View dataplane metrics

In the Cybrave OS WebUI, open the device overview to see live external traffic rates and dataplane health. The VPP exporter's address, 127.0.0.1:9482, is local to the device. In your browser, 127.0.0.1 refers to your own computer.

If the interface's management access profile permits Prometheus metrics from your computer, you can also inspect individual series. Open http://<device-IP>:9090 in your browser, replacing <device-IP> with the interface's IP address. In the Prometheus query field, enter {job=~"vpp|vpp-realtime"} and run the query in table view to see the collected series, their labels, and their latest values.

Host metrics

Served on 0.0.0.0:9100 by upstream prometheus/node_exporter with the collector set shipped by the image. Key metric families:

AreaExample metrics
CPUnode_cpu_seconds_total, node_load1/5/15
Memorynode_memory_MemTotal_bytes, node_memory_MemAvailable_bytes
Disknode_disk_read_bytes_total, node_disk_io_time_seconds_total
Filesystemnode_filesystem_size_bytes, node_filesystem_avail_bytes
Networknode_network_receive_bytes_total, node_network_transmit_bytes_total
Pressure (PSI)node_pressure_cpu_waiting_seconds_total, node_pressure_memory_*
Time / uptimenode_time_seconds, node_boot_time_seconds
Hardwarenode_hwmon_temp_celsius, node_thermal_zone_temp
Exporter metanode_scrape_collector_success, node_scrape_collector_duration_seconds

These metrics cover the host network namespace. Dataplane interfaces are owned by VPP and are reported by interfaces_*, not by node_network_*.

Full per-collector reference: node_exporter collectors.

Process metrics

Served on 0.0.0.0:9256 by upstream ncabatoff/process-exporter as packaged in the image. Every process on the box is reported, grouped by command name, so the groupname label is a command such as vpp, prometheus, traefik, frr or mgmtd.

MetricTypeMeaning
namedprocess_namegroup_num_procsgaugeNumber of processes in the group
namedprocess_namegroup_cpu_seconds_totalcounterCPU seconds (by mode)
namedprocess_namegroup_memory_bytesgaugeMemory (by memtype: resident/virtual/swap)
namedprocess_namegroup_read_bytes_totalcounterBytes read
namedprocess_namegroup_write_bytes_totalcounterBytes written
namedprocess_namegroup_open_filedescgaugeOpen file descriptors
namedprocess_namegroup_num_threadsgaugeThreads in the group
namedprocess_namegroup_statesgaugeProcess count by state
namedprocess_namegroup_oldest_start_time_secondsgaugeOldest process start time

Full reference: ncabatoff/process-exporter.

Query API

The local Prometheus server, upstream prometheus/prometheus on 0.0.0.0:9090 in this deployment, is the aggregation point. Scraping it yields its own instrumentation (prometheus_*, promhttp_*, go_*, process_*); for third-party integration the useful surface is the HTTP API:

  • Instant query: GET /api/v1/query?query=<expr>
  • Range query: GET /api/v1/query_range
  • Federation: GET /federate?match[]=<selector>

Full reference: Prometheus HTTP API.

Components without a Prometheus endpoint

These ship in Cybrave OS but expose no Prometheus metrics that third parties should rely on: traefik and valkey. speedtestd serves a /metrics endpoint on :7990 that is not scraped.