diff --git a/kuryr_kubernetes/cni/prometheus_exporter.py b/kuryr_kubernetes/cni/prometheus_exporter.py index 54d673c85..986f1b90d 100644 --- a/kuryr_kubernetes/cni/prometheus_exporter.py +++ b/kuryr_kubernetes/cni/prometheus_exporter.py @@ -46,6 +46,9 @@ class CNIPrometheusExporter(object): return flask.Response(collected_metric, mimetype='text/plain') def run(self): + # Disable obtrusive werkzeug logs. + logging.getLogger('werkzeug').setLevel(logging.WARNING) + address = '::' try: LOG.info('Starting CNI Prometheus exporter') diff --git a/kuryr_kubernetes/controller/managers/prometheus_exporter.py b/kuryr_kubernetes/controller/managers/prometheus_exporter.py index b64deaa8d..838e48828 100644 --- a/kuryr_kubernetes/controller/managers/prometheus_exporter.py +++ b/kuryr_kubernetes/controller/managers/prometheus_exporter.py @@ -66,6 +66,9 @@ class ControllerPrometheusExporter(object): return ControllerPrometheusExporter.instance def run(self): + # Disable obtrusive werkzeug logs. + logging.getLogger('werkzeug').setLevel(logging.WARNING) + address = '::' try: LOG.info('Starting Prometheus exporter')