Skip to content
Tom Barbette edited this page Nov 25, 2022 · 1 revision

MultiCounter Element Documentation

NAME

MultiCounter — Click element; measures packet count and rate for multiple inputs

SYNOPSIS

MultiCounter()

Batching: Batching natively supported
Ports: 1 or more inputs, the same number of outputs
Processing: push

DESCRIPTION

Passes packets unchanged from its input to its output, maintaining statistics information about packet count and packet rate.

ELEMENT HANDLERS

  • count (read-only) — Returns the number of packets that have passed through since the last reset. It's returned as a list of values seperated with ','. Value i in the list corrseponds to input i
  • byte_count (read-only) — Returns the number of bytes that have passed through since the last reset. It's returned as a list of values seperated with ','. Value i in the list corrseponds to input i
  • rate (read-only) — Returns the recent arrival rate, measured by exponential weighted moving average, in packets per second. It's returned as a list of values seperated with ','. Value i in the list corrseponds to input i
  • byte_rate (read-only) — Returns the recent arrival rate, measured by exponential weighted moving average, in bytes per second. It's returned as a list of values seperated with ','. Value i in the list corrseponds to input i
  • reset_counts (write-only) — Resets the counts and rates to zero.

Generated by click-elem2man from ../elements/standard/multicounter.hh:8 on 2022/11/25.

Clone this wiki locally