Mermin Application Metrics
This guide describes the Prometheus metrics endpoint exposed by Mermin and provides a comprehensive breakdown of all available metrics, their types, and descriptions. See the metrics configuration document for more details on metrics configuration.
Metrics Endpoint
Mermin exposes Prometheus metrics in the standard Prometheus text format at multiple HTTP endpoints:
/metrics- All metrics (standard + debug if enabled)/metrics/standard- Standard metrics only (no high-cardinality labels)/metrics/debug- Debug metrics only (returns 404 if disabled)/metrics:summary- JSON summary of all available metrics with metadata (name, type, description, labels, category)
Standard vs Debug Metrics:
Standard metrics: Always enabled, aggregated across resources, safe for production.
Debug metrics: High-cardinality labels (per-interface, per-resource), must be explicitly enabled via
metrics.debug_metrics_enabled = true.
Metrics Reference
All metrics follow the naming convention: mermin_<subsystem>_<name>.
Metrics are categorized into logical subsystems that correspond to different components of Mermin:
ebpf: For eBPF-specific metricschannel: Internal Mermin channels metricsexport: Export-related metricsflow: Metrics on the Flow Spansinterface: Network interface-related metricsk8s: For Kubernetes watcher metricstaskmanager: Internal Mermin tasks metrics
eBPF Metrics (mermin_ebpf_*)
mermin_ebpf_*)This section describes metrics from the eBPF layer, responsible for capturing low-level packets. These metrics provide visibility into the status of loaded eBPF programs and the usage of eBPF maps. Monitoring these is crucial for ensuring that Mermin's foundational data collection mechanism functions as expected.
mermin_ebpf_bpf_fs_writableType:gaugeDescription: Whether /sys/fs/bpf is writable for TCX link pinning (1 = writable, 0 = not writable)mermin_ebpf_map_bytes_totalType:counterDescription: Total bytes processed through eBPF maps and ring buffers Labels:map
mermin_ebpf_map_capacityType:gaugeDescription: Maximum capacity of eBPF maps. For hash maps (FLOW_STATS, LISTENING_PORTS) this is max entries. For ring buffers (FLOW_EVENTS) this is size in bytes. Labels:map
mermin_ebpf_map_entriesType:gaugeDescription: Current number of entries in eBPF maps. For hash maps (FLOW_STATS, LISTENING_PORTS) this is the entry count. Not available for ring buffers (FLOW_EVENTS). Labels:map
mermin_ebpf_map_ops_totalType:counterDescription: Total number of eBPF map operations Labels:mapoperationstatus
mermin_ebpf_methodType:gaugeDescription: Current eBPF attachment method used (tc or tcx) Labels:attachment
Network Interface Metrics (mermin_interface_*)
mermin_interface_*)These metrics provide visibility into network traffic processed by Mermin across all monitored interfaces. They are essential for understanding the overall throughput and packet rates processed by Mermin.
mermin_interface_bytes_totalType:counterDescription: Total number of bytes processed across all interfacesmermin_interface_packets_totalType:counterDescription: Total number of packets processed across all interfaces
Flow Metrics (mermin_flow_*)
mermin_flow_*)mermin_flow_spans_active_totalType:gaugeDescription: Current number of active flow traces across all interfacesmermin_flow_spans_created_totalType:counterDescription: Total number of flow spans created across all interfaces
Kubernetes Watcher Metrics (mermin_k8s_watcher_*)
mermin_k8s_watcher_*)These metrics track events and performance of the Kubernetes resource watchers used by Mermin for metadata enrichment and resource monitoring.
mermin_k8s_watcher_events_totalType:counterDescription: Total number of K8s kind watcher events (aggregated across resources) Labels:eventkind
mermin_k8s_watcher_ip_index_update_duration_secondsType:histogramDescription: Duration of K8s IP index updates
Kubernetes Decorator Metrics (mermin_k8s_decorator_*)
mermin_k8s_decorator_*)These metrics exposes the details to the Kubernetes decorator stage.
mermin_k8s_decorator_flow_spans_totalType:counterDescription: Total number of flow spans processed by the K8s decorator Labels:status
Flow Span Export Metrics (mermin_export_*)
mermin_export_*)These metrics track the export of flow spans from Mermin to external systems (such as OTLP collectors), providing insight into export performance and reliability.
mermin_export_batch_sizeType:histogramDescription: Number of spans per export batchmermin_export_flow_spans_totalType:counterDescription: Total number of flow spans exported to external systems Labels:exporterstatus
Channel Metrics (mermin_channel_*)
mermin_channel_*)These metrics offer insight into the internal channels used for data transmission.
mermin_channel_capacityType:gaugeDescription: Capacity of internal channels Labels:channel
mermin_channel_entriesType:gaugeDescription: Current number of items in channels Labels:channel
mermin_channel_sends_totalType:counterDescription: Total number of send operations to internal channels Labels:channelstatus
Pipeline Metrics (mermin_pipeline_*)
mermin_pipeline_*)These metrics offer insight into the internal pipelines used for data mutation (flow generation, decoration).
mermin_pipeline_duration_secondsType:histogramDescription: Processing duration by pipeline stage Labels:stage
TaskManager Metrics (mermin_taskmanager_*)
mermin_taskmanager_*)These metrics track the number and type of active background tasks managed by Mermin.
mermin_taskmanager_tasks_activeType:gaugeDescription: Current number of active tasks across all task types Labels:task
Last updated