The ironic_lib.metrics_utils
Module¶
-
ironic_lib.metrics_utils.
get_metrics_logger
(prefix='', backend=None, host=None, delimiter='.')[source]¶ Return a metric logger with the specified prefix.
The format of the prefix is: [global_prefix<delim>][host_name<delim>]prefix where <delim> is the delimiter (default is ‘.’)
- Parameters
prefix – Prefix for this metric logger. Value should be a string or None.
backend – Backend to use for the metrics system. Possible values are ‘noop’ and ‘statsd’.
host – Name of this node.
delimiter – Delimiter to use for the metrics name.
- Returns
The new MetricLogger.