Make the exporter listen on IPv6.
This commit is contained in:
parent
dd8323939e
commit
81c9288e96
|
@ -10,6 +10,7 @@ import sys
|
|||
|
||||
|
||||
USER = "odoo"
|
||||
HTTP_HOST = "::"
|
||||
HTTP_PORT = 9402
|
||||
INTERVAL = 10
|
||||
|
||||
|
@ -26,7 +27,7 @@ if __name__ == '__main__':
|
|||
"Remaining days before Odoo license expiration")
|
||||
|
||||
# Serve metrics over HTTP
|
||||
start_http_server(HTTP_PORT)
|
||||
start_http_server(host=HTTP_HOST, port=HTTP_PORT)
|
||||
|
||||
# Open connection
|
||||
with psycopg2.connect(database=DBNAME, user=USER) as conn:
|
||||
|
|
Loading…
Reference in New Issue