For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

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 packets
  • batchingStrategyPacketBytes - Number of bytes gathered before sending a batch of packets
  • batchingStrategyPacketCount - Number of packets to accumulate before sending a batch of packets
  • compress - Defines the compression format of PCAP data. The possible values are: zstd, lz4, gzip or empty
  • destination - Specifies where the packets are sent. The possible values are: nats, file, s3, sftp
  • max_bytes - Rotation parameter that specifies the maximum bytes per file
  • max_files - Rotation parameter that specifies the maximum number of files
  • max_packets - Rotation parameter that specifies the maximum number of packets per file
  • natsMode - NATS mode to use for sending and receiving NATS messages. The possible values are: pubsub or jetstream
  • path_prefix - Prefix for the autogenerated name of the PCAP file
  • rotation - Bool values if the PCAP file rotation is enabled
  • schedule - Defines the rotation schedule of a PCAP file, can be a cron expression
  • target - A stream identifier that equals to the name of a NetCaptureJob object

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 packets
  • stream-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: