Suppress meaningless opentsdb metrics connection warning#450
Conversation
cedc21e to
47a7498
Compare
|
The current solution only sets We could make this solution cleaner by having banzai's production deployment explicitly configure However, the ocs ingester needs to be updated to use opentsdb-python-metrics 0.3.0 first, and then banzai needs to specify that version of the ingester before we can access this change. |
cmccully
left a comment
There was a problem hiding this comment.
Add a change log message and bump the last digit of the version. Otherwise looks good.
47a7498 to
a076947
Compare
Set default
OPENTSDB_PYTHON_METRICS_TEST_MODE=1inbanzai/__init__.pyso users don't see this confusing error on every run:ERROR: metric_wrappers: ConnectionError(MaxRetryError("HTTPConnectionPool(host='scheduler-dev.lco.gtn', port=80): Max retries exceeded with url: /api/version (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x112013230>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))"))