Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenStack
oslo
python-oslo.metrics
Commits
3b9998a9
Commit
3b9998a9
authored
Oct 13, 2021
by
Zuul
Committed by
Gerrit Code Review
Oct 13, 2021
Browse files
Merge "Make Expose Port Configurable"
parents
e9086be0
6ad0f5db
Changes
2
Hide whitespace changes
Inline
Side-by-side
oslo_metrics/__main__.py
View file @
3b9998a9
...
...
@@ -33,7 +33,9 @@ oslo_metrics_configs = [
cfg
.
StrOpt
(
'metrics_socket_file'
,
default
=
'/var/tmp/metrics_collector.sock'
,
help
=
'Unix domain socket file to be used'
'to send rpc related metrics'
),
' to send rpc related metrics'
),
cfg
.
IntOpt
(
'prometheus_port'
,
default
=
3000
,
help
=
'Port number to expose metrics in prometheus format.'
),
]
cfg
.
CONF
.
register_opts
(
oslo_metrics_configs
,
group
=
'oslo_metrics'
)
...
...
@@ -107,7 +109,7 @@ def main():
app
=
make_wsgi_app
()
try
:
global
httpd
httpd
=
make_server
(
''
,
3000
,
app
)
httpd
=
make_server
(
''
,
CONF
.
oslo_metrics
.
prometheus_port
,
app
)
signal
.
signal
(
signal
.
SIGTERM
,
handle_sigterm
)
httpd
.
serve_forever
()
except
KeyboardInterrupt
:
...
...
releasenotes/notes/port-config-ac5d9ee247a8ff9b.yaml
0 → 100644
View file @
3b9998a9
---
features
:
-
|
Port number to expose metrics in Prometheus format is now configurable.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment