Code Repositories xandikos / 212a297
Add constant for default exporter port. Jelmer Vernooń≥ 3 years ago
2 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2222 import sys
2323
2424 from xandikos import __version__
25 from xandikos.prometheus import DEFAULT_PROMETHEUS_DIR
25 from xandikos.prometheus import DEFAULT_PROMETHEUS_DIR, DEFAULT_EXPORTER_PORT
2626 parser = optparse.OptionParser(version='.'.join(map(str, __version__)))
2727 parser.add_option("-l", "--listen_address", dest="listen_address",
2828 default="localhost",
2929 help="Binding IP address.")
3030 parser.add_option("-p", "--port", dest="port", type=int,
31 default=8000,
31 default=DEFAULT_EXPORTER_PORT,
3232 help="Port to listen on.")
3333 parser.add_option("-d", "--prometheus-directory",
3434 default=DEFAULT_PROMETHEUS_DIR,
1818 # MA 02110-1301, USA.
1919
2020 DEFAULT_PROMETHEUS_DIR = '/run/xandikos/prometheus'
21 DEFAULT_EXPORTER_PORT = 9211
2122
2223
2324 class PrometheusRedirector(object):