deep.api.plugin.metric
Definition of metric processor.
Metric processor gives the ability to attach dynamic metrics to metric providers.
MetricProcessor
Bases: Plugin
, ABC
Metric processor connects Deep to a metric provider.
Source code in deep/api/plugin/metric/__init__.py
clear()
counter(name, labels, namespace, help_string, unit, value)
abstractmethod
Create a counter type value in the provider.
:param name: the metric name :param labels: the metric labels :param namespace: the metric namespace :param help_string: the metric help string :param unit: the metric unit :param value: the metric value
Source code in deep/api/plugin/metric/__init__.py
gauge(name, labels, namespace, help_string, unit, value)
abstractmethod
Create a gauge type value in the provider.
:param name: the metric name :param labels: the metric labels :param namespace: the metric namespace :param help_string: the metric help string :param unit: the metric unit :param value: the metric value
Source code in deep/api/plugin/metric/__init__.py
histogram(name, labels, namespace, help_string, unit, value)
abstractmethod
Create a histogram type value in the provider.
:param name: the metric name :param labels: the metric labels :param namespace: the metric namespace :param help_string: the metric help string :param unit: the metric unit :param value: the metric value
Source code in deep/api/plugin/metric/__init__.py
summary(name, labels, namespace, help_string, unit, value)
abstractmethod
Create a summary type value in the provider.
:param name: the metric name :param labels: the metric labels :param namespace: the metric namespace :param help_string: the metric help string :param unit: the metric unit :param value: the metric value