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
| Component | Address | Path | What it exposes |
|---|---|---|---|
| Prometheus server | 0.0.0.0:9090 | /metrics, /api/v1/* | Query API + Prometheus self-metrics |
| vpp-exporter | 127.0.0.1:9482 | /metrics | VPP dataplane counters |
| node-exporter | 0.0.0.0:9100 | /metrics | Host / OS metrics (CPU, memory, disk, net, …) |
| process-exporter | 0.0.0.0:9256 | /metrics | Per-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:
| Job | Target | Interval | Series kept |
|---|---|---|---|
vpp | vpp-exporter | 15 s | every dataplane series except those vpp-realtime keeps |
vpp-realtime | vpp-exporter (realtime instance) | 100 ms | zone_rx_bytes, zone_tx_bytes, interfaces_rx_miss, datapath_latency_p99_ns, datapath_latency_samples only |
node | node-exporter | 15 s | every host series |
process | process-exporter | 15 s | every 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).
| Metric | Meaning |
|---|---|
interfaces_rx_packets, interfaces_rx_bytes | Packets / bytes received |
interfaces_tx_packets, interfaces_tx_bytes | Packets / bytes transmitted |
interfaces_drops | Dropped packets |
interfaces_punt | Punted packets |
interfaces_ip4 | IPv4 packets |
interfaces_ip6 | IPv6 packets |
interfaces_rx_no_buf | Receives lost for want of a buffer |
interfaces_rx_miss | Missed receives |
interfaces_rx_error | Receive errors |
interfaces_tx_error | Transmit errors |
interfaces_mpls | MPLS 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.
| Metric | Kind | Meaning |
|---|---|---|
sys_vector_rate | scalar gauge | Global average vector rate |
sys_input_rate | scalar gauge | Input rate |
sys_last_update | scalar gauge | Time of the last stats update |
sys_last_stats_clear | scalar gauge | Time of the last counter clear |
sys_heartbeat | scalar gauge | Dataplane liveness heartbeat |
sys_boottime | scalar gauge | Boot timestamp (for uptime) |
sys_num_worker_threads | scalar gauge | Worker thread count |
sys_vector_rate_per_worker | vector gauge | Per-worker vector rate; labels index, thread |
sys_loops_per_worker | vector gauge | Per-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:
| Area | Example metrics |
|---|---|
| CPU | node_cpu_seconds_total, node_load1/5/15 |
| Memory | node_memory_MemTotal_bytes, node_memory_MemAvailable_bytes |
| Disk | node_disk_read_bytes_total, node_disk_io_time_seconds_total |
| Filesystem | node_filesystem_size_bytes, node_filesystem_avail_bytes |
| Network | node_network_receive_bytes_total, node_network_transmit_bytes_total |
| Pressure (PSI) | node_pressure_cpu_waiting_seconds_total, node_pressure_memory_* |
| Time / uptime | node_time_seconds, node_boot_time_seconds |
| Hardware | node_hwmon_temp_celsius, node_thermal_zone_temp |
| Exporter meta | node_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.
| Metric | Type | Meaning |
|---|---|---|
namedprocess_namegroup_num_procs | gauge | Number of processes in the group |
namedprocess_namegroup_cpu_seconds_total | counter | CPU seconds (by mode) |
namedprocess_namegroup_memory_bytes | gauge | Memory (by memtype: resident/virtual/swap) |
namedprocess_namegroup_read_bytes_total | counter | Bytes read |
namedprocess_namegroup_write_bytes_total | counter | Bytes written |
namedprocess_namegroup_open_filedesc | gauge | Open file descriptors |
namedprocess_namegroup_num_threads | gauge | Threads in the group |
namedprocess_namegroup_states | gauge | Process count by state |
namedprocess_namegroup_oldest_start_time_seconds | gauge | Oldest 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.