Repository navigation
Monitoring and Dashboard
FikoRE keeps the legacy text logging mechanism and also includes structured monitoring for live analysis. Structured monitoring is useful for long real-time experiments because it emits aggregated metrics instead of only writing text logs.
The monitoring system is configured in the [Monitoring] section:
[Monitoring]
enabled: true
aggregation_window_ms: 500
default_metric_type: counter
emit_ue_phy: true
emit_ue_pdcp: true
emit_ue_queue: true
emit_ue_mobility: true
emit_l4s: true
emit_mac_scheduler: true
emit_emulator_runtime: true
emit_runtime_debug_logs: false
emit_text_logs_compat: false
outputs: api_udp
output_api_udp_type: udp
output_api_udp_address: 127.0.0.1
output_api_udp_port: 8098
Which define:
-
enabled: enable/disable structured monitoring. -
aggregation_window_ms: time window used to aggregate values before emission. -
default_metric_type: default metric type used by the output. -
emit_ue_phy: emit SINR, RSRP, CQI, MCS, efficiency and RI metrics. -
emit_ue_pdcp: emit throughput, generated traffic, errors and latency metrics. -
emit_ue_queue: emit IP, HARQ, release and NFQUEUE queue state. -
emit_ue_mobility: emit position and distance metrics. -
emit_l4s: emit DualQ/L4S metrics. -
emit_mac_scheduler: emit scheduler metrics. -
emit_emulator_runtime: emit MAC, UE and loop processing time metrics. -
emit_runtime_debug_logs: also print runtime debug logs. -
emit_text_logs_compat: emit compatibility text logs for older analysis flows. -
outputs: comma-separated output names. -
output_<name>_type,output_<name>_address,output_<name>_port: output-specific configuration.
The <name> part is arbitrary, but it must match one of the names declared in outputs. For example, this configuration sends the same line protocol stream to the local dashboard and to a Telegraf UDP listener:
[Monitoring]
enabled: true
aggregation_window_ms: 500
outputs: api_udp,telegraf_udp
output_api_udp_type: udp
output_api_udp_address: 127.0.0.1
output_api_udp_port: 8098
output_telegraf_udp_type: udp
output_telegraf_udp_address: 127.0.0.1
output_telegraf_udp_port: 8097
Important: declare outputs before the output_<name>_* lines. The configuration loader creates output entries when it parses outputs, and then fills type, address and port only for names already declared there.
Supported output types are:
-
udp: sends each line using UDP toaddress:port. -
tcp: opens a TCP socket toaddress:portand sends each line on that socket. -
unix: sends datagrams to a Unix socket path given inaddress.
Monitoring data is emitted using InfluxDB line protocol:
measurement,tag=value field=value 1710000000000000000
Metrics are aggregated during aggregation_window_ms before being emitted. Field names include the aggregation suffix used by the code:
-
_sum: sum of all values accumulated in the current aggregation window. -
_mean: arithmetic mean of values observed in the current aggregation window. -
_last: latest value observed in the current aggregation window.
Timestamps are nanoseconds. In real-time mode, FikoRE uses slot timestamps for the main loop; otherwise it falls back to wall-clock timestamps.
The repository includes a web dashboard, served by the control API together with the REST and WebSocket endpoints (Web Dashboard, Runtime Control). The API collects the telemetry over UDP on port 8098 and serves the page on port 8100:
FIKORE_API_HOST=0.0.0.0 bash run_scripts/run_api.sh
The .ini file must send monitoring data to the collector:
outputs: api_udp
output_api_udp_type: udp
output_api_udp_address: 127.0.0.1
output_api_udp_port: 8098
For host and docker-host backends, 127.0.0.1:8098 is usually fine when the API runs on the host. For docker-none, the .ini should target the host-side management IP, typically 172.30.0.1:8098.
A practical way to feed an external InfluxDB instance is to send FikoRE monitoring output to a local Telegraf UDP input and let Telegraf write to InfluxDB.
Example FikoRE output:
[Monitoring]
enabled: true
aggregation_window_ms: 500
outputs: telegraf_udp
output_telegraf_udp_type: udp
output_telegraf_udp_address: 127.0.0.1
output_telegraf_udp_port: 8097
Example Telegraf input:
[[inputs.socket_listener]]
service_address = "udp://:8097"
data_format = "influx"
Then configure one of Telegraf's InfluxDB outputs, for example [[outputs.influxdb_v2]], with the target URL, token, organization and bucket of your deployment. Keep the FikoRE aggregation_window_ms aligned with the resolution you want to store; a lower value gives finer time resolution but produces more UDP packets.
The following measurements can be emitted, depending on the emit_* flags.
Enabled by emit_ue_phy. Tags:
-
ue_id: UE identifier. -
tx_dir:ulordl.
Fields:
-
sinr_db_mean: mean SINR in dB. -
rsrp_db_mean: mean RSRP in dB. -
cqi_mean: mean CQI. -
mcs_mean: mean MCS index. -
eff_mean: mean spectral efficiency. -
ri_mean: mean Rank Indicator.
Enabled by emit_ue_pdcp. Tags:
-
ue_id: UE identifier. -
tx_dir:ulordl.
Fields:
-
throughput_mbps_mean: mean transmitted throughput. -
generated_mbps_sum: generated traffic accumulated in the window. -
generated_packets_sum: generated packet count accumulated in the window. -
error_mbps_sum: dropped/error traffic accumulated in the window. -
latency_s_mean: mean emulated radio/release latency. -
ip_latency_s_mean: mean end-to-end IP packet latency.
Enabled by emit_ue_queue. Tags:
-
ue_id: UE identifier. -
tx_dir:ulordl. -
queue_mode:legacyorl4s.
Fields:
-
generated_packets_sum: generated/captured packet count accumulated in the window. -
using_l4s_last:1when DualQ/L4S is enabled for this queue, otherwise0. -
pkt_delay_budget_s_last: configured packet delay budget. -
ip_buffer_packets_last: packets waiting in the IP buffer. -
capture_packets_last: packets waiting in the capture queue. -
release_packets_last: packets waiting to be released. -
harq_packets_last: packets waiting in HARQ. -
ip_oldest_age_s_last: age of the oldest IP buffer packet. -
capture_oldest_age_s_last: age of the oldest captured packet when available. -
release_oldest_age_s_last: age of the oldest release packet. -
harq_oldest_age_s_last: age of the oldest HARQ packet. -
nfqueue_queue_num_last: NFQUEUE number used by this direction. -
nfqueue_ce_rewrite_packets_last: total packets accepted with CE rewrite. -
nfqueue_drop_packets_last: total packets dropped through NFQUEUE. -
nfqueue_total_recv_last: total packets received from NFQUEUE. -
nfqueue_total_rlsd_last: total packets released through NFQUEUE. -
nfqueue_bytes_recv_last: total bytes received from NFQUEUE. -
nfqueue_recv_fails_last: total NFQUEUE receive failures. -
nfqueue_rlsd_fails_last: total NFQUEUE release/verdict failures. -
final_accept_packets_sum: packets accepted in the window. -
final_accept_ce_packets_sum: packets accepted with CE in the window. -
final_drop_packets_sum: packets dropped in the window. -
ce_packets_sum: DualQ/L4S CE-marked packets in the window. -
ce_bits_sum: DualQ/L4S CE-marked bits in the window. -
aqm_drops_sum: AQM drops in the window. -
aqm_drop_bits_sum: AQM dropped bits in the window. -
l4s_queue_packets_last: packets in the L4S queue. -
classic_queue_packets_last: packets in the Classic queue. -
l4s_queue_bits_last: bits in the L4S queue. -
classic_queue_bits_last: bits in the Classic queue. -
p_l_mean: mean L4S marking probability. -
p_c_mean: mean Classic marking/drop probability. -
p_cl_mean: mean coupled Classic/L4S probability.
Enabled by emit_l4s, and emitted only for queues using DualQ/L4S. Tags:
-
ue_id: UE identifier. -
tx_dir:ulordl.
Fields:
-
generated_packets_sum: generated/captured packet count accumulated in the window. -
ce_packets_sum: CE-marked packets in the window. -
ce_bits_sum: CE-marked bits in the window. -
aqm_drops_sum: AQM drops in the window. -
aqm_drop_bits_sum: AQM dropped bits in the window. -
l4s_queue_packets_last: packets in the L4S queue. -
classic_queue_packets_last: packets in the Classic queue. -
l4s_queue_bits_last: bits in the L4S queue. -
classic_queue_bits_last: bits in the Classic queue. -
p_l_mean: mean L4S marking probability. -
p_c_mean: mean Classic marking/drop probability. -
p_cl_mean: mean coupled Classic/L4S probability. -
nfqueue_queue_num_last: NFQUEUE number used by this direction. -
nfqueue_ce_rewrite_packets_last: total packets accepted with CE rewrite. -
nfqueue_drop_packets_last: total packets dropped through NFQUEUE. -
nfqueue_total_recv_last: total packets received from NFQUEUE. -
nfqueue_total_rlsd_last: total packets released through NFQUEUE. -
nfqueue_bytes_recv_last: total bytes received from NFQUEUE. -
nfqueue_recv_fails_last: total NFQUEUE receive failures. -
nfqueue_rlsd_fails_last: total NFQUEUE release/verdict failures. -
final_accept_packets_sum: packets accepted in the window. -
final_accept_ce_packets_sum: packets accepted with CE in the window. -
final_drop_packets_sum: packets dropped in the window.
Enabled by emit_ue_mobility. Tags:
-
ue_id: UE identifier.
Fields:
-
x: last UE x position. -
y: last UE y position. -
distance_m: last distance to the gNB in meters.
Enabled by emit_mac_scheduler. Tags:
-
tx_dir:ulordl.
Fields:
-
scheduled_rbg_sum: scheduled RBG count accumulated in the window. -
empty_rbg_sum: empty RBG count accumulated in the window. -
scheduled_ues_sum: scheduled UE count accumulated in the window. -
active_ues_with_data_mean: mean active UEs with queued data. -
scheduled_bits_sum: scheduled bits accumulated in the window. -
effective_bits_sum: effective transmitted bits accumulated in the window. -
grid_capacity_bits_last: last estimated grid capacity. -
utilization_ratio_mean: mean grid utilization ratio. -
scheduling_efficiency_ratio_mean: mean scheduling efficiency ratio.
Enabled by emit_emulator_runtime. Tags:
-
mode:realtimeorfast.
Fields:
-
mac_step_time_ms_mean: mean MAC processing time. -
ue_step_time_ms_mean: mean UE processing time. -
step_time_ms_mean: mean total loop processing time. -
sim_time_s_last: last simulated time. -
loop_iterations_sum: loop iterations accumulated in the window. -
active_ues_last: last number of active UEs.
The UE and MAC logging flags are still available:
[UE]
log_freq: 100
log_ue: true
log_quality: true
log_traffic: true
log_mobility: true
[MACLayer]
log_freq: 10
log_mac: true
These logs are useful for offline analysis and compatibility with older scripts. Structured monitoring should be preferred for live dashboards and queue-level observability.