mirror of
https://github.com/jcwimer/openstack-exporter
synced 2026-03-25 01:44:43 +00:00
Define the bind mapping for prometheus http server
This commit is contained in:
@@ -81,7 +81,7 @@ def parse_cli_arguments():
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
print("Starting server on port 8000")
|
print("Starting server on port 8000")
|
||||||
prom.start_http_server(8000)
|
prom.start_http_server(port=8000, addr='0.0.0.0')
|
||||||
args = parse_cli_arguments()
|
args = parse_cli_arguments()
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user