Metrics
NetCap Sink and NetCap Collector expose metrics in the Prometheus formatOpens in a new tab on the /metrics endpoint on port 9999.
The subject label provides information about the NATS subject associated with the event on which the metric change is triggered. See the example of a label for the subject string:
cdm.local.netcap.v1alpha1.bcast.pcaps.jetstream.cluster.test-cluster.namespace.pgw-ocs.pod.upg-inst01-8446f5867f-gn69s.interface.sxb.nwi.not_available.imsi.not_available.filter.not_available.target.sx-ex.labels.not_available
The netcap_stream metric has the following labels that describe the parameters of a stream created by NetCap Sink or Collector:
batchingStrategyDuration- Time interval before sending a batch of packetsbatchingStrategyPacketBytes- Number of bytes gathered before sending a batch of packetsbatchingStrategyPacketCount- Number of packets to accumulate before sending a batch of packetscompress- Defines the compression format of PCAP data. The possible values are:zstd,lz4,gzipor emptydestination- Specifies where the packets are sent. The possible values are:nats,file,s3,sftpmax_bytes- Rotation parameter that specifies the maximum bytes per filemax_files- Rotation parameter that specifies the maximum number of filesmax_packets- Rotation parameter that specifies the maximum number of packets per filenatsMode- NATS mode to use for sending and receiving NATS messages. The possible values are:pubsuborjetstreampath_prefix- Prefix for the autogenerated name of the PCAP filerotation- Bool values if the PCAP file rotation is enabledschedule- Defines the rotation schedule of a PCAP file, can be a cron expressiontarget- A stream identifier that equals to the name of aNetCaptureJobobject
NetCap VPP Plugin metrics
FPP and UPG pods expose the following NetCap-related metrics:
The reason label specifies a reason why packets were dropped. The possible values are:
ring-overflow- NetCap Collector is too slow to process packetsstream-stopped- the stream is stopped
Capture information
You can use the additional metadata provided in a .pcapng file for advanced filters in tools like Wireshark: