package
1.0.0-beta.9
Repository: https://github.com/iotaledger/iota-core.git
Documentation: pkg.go.dev

# Functions

New creates an instance of Manager and creates a new prometheus registry for the protocol metrics collection.
No description provided by the author
NewMetric creates a new metric with given name and options.
WithCollectFunc allows to define a function that will be called each time when prometheus will scrap the data.
WithHelp sets the help text for the metric.
WithInitFunc allows to define a function that will be called once when metric is created.
WithInitValueFunc allows to set function that sets an initial value for a metric.
WithLabels allows to define labels for the metric, they will need to be passed in the same order to the Update.
No description provided by the author
WithPruningDelay sets the delay after which the metric will be pruned from the prometheus registry.
WithResetBeforeCollecting if enabled there will be a reset call on metric before each collectFunction call.
WithType sets the metric type: Gauge, GaugeVec, Counter, CounterVec.

# Constants

Counter is a cumulative metric that represents a single numerical value that only ever goes up.
Gauge is a metric that represents a single numerical value that can arbitrarily go up and down.

# Structs

No description provided by the author
Collector is responsible for creation and collection of metrics for the prometheus.
Metric is a single metric that will be registered to prometheus registry and collected with WithCollectFunc callback.

# Type aliases

No description provided by the author