diff --git a/oslo_metrics/__main__.py b/oslo_metrics/__main__.py index e445818..dde9932 100644 --- a/oslo_metrics/__main__.py +++ b/oslo_metrics/__main__.py @@ -33,8 +33,8 @@ oslo_metrics_configs = [ default='/var/tmp/metrics_collector.sock', # nosec help='Unix domain socket file to be used' ' to send rpc related metrics'), - cfg.IntOpt('prometheus_port', default=3000, - help='Port number to expose metrics in prometheus format.'), + cfg.PortOpt('prometheus_port', default=3000, + help='Port number to expose metrics in prometheus format.'), ] cfg.CONF.register_opts(oslo_metrics_configs, group='oslo_metrics')