The ironic_lib.metrics_utils Module

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.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.