Collector.collect

Collect stats from the data members of a struct or a class and prepare them to be fetched upon the next call to getCollection. The specifications of the format of the collected stats can be found at https://prometheus.io/docs/instrumenting/exposition_formats/.

  1. void collect(ValuesT values)
    class Collector
    void
    collect
    (
    ValuesT
    )
    (
    ValuesT values
    )
  2. void collect(ValuesT values, LabelT label_val)
  3. void collect(ValuesT values, LabelsT labels)

Parameters

ValuesT

The struct or class type to fetch the stat names from.

values ValuesT

The struct or class to fetch stat values from.

Meta