1
0
mirror of https://github.com/jcwimer/openstack-exporter synced 2026-03-24 17:44:42 +00:00

Define the bind mapping for prometheus http server

This commit is contained in:
2021-03-10 13:36:27 -05:00
parent c6b1b9f211
commit 992c80c8bc

View File

@@ -81,7 +81,7 @@ def parse_cli_arguments():
if __name__ == '__main__':
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()
while True:
try: