Merge "Use PortOpt for prometheus_port"

This commit is contained in:
Zuul 2024-11-05 13:31:00 +00:00 committed by Gerrit Code Review
commit ca08280b60

View File

@ -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')