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.

ironic_lib.metrics_utils.list_opts()[source]

Entry point for oslo-config-generator.

Previous topic

The ironic_lib.metrics_statsd Module

Next topic

The ironic_lib.tests.test_disk_partitioner Module

Project Source

This Page