Starting 2024-07-16 with a benthos issue, statograph_post failed to complete:
Jul 18 06:41:00 alert1001 systemd[1]: Starting statograph_post.service - Runs statograph to publish data to statuspage.io... Jul 18 06:41:02 alert1001 statograph[971144]: ERROR:statograph.__main__:Exception encountered when processing lyfcttm2lhw4; continuing Jul 18 06:41:02 alert1001 statograph[971144]: Traceback (most recent call last): Jul 18 06:41:02 alert1001 statograph[971144]: File "/usr/lib/python3/dist-packages/requests/models.py", line 511, in prepare_body Jul 18 06:41:02 alert1001 statograph[971144]: body = complexjson.dumps(json, allow_nan=False) Jul 18 06:41:02 alert1001 statograph[971144]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Jul 18 06:41:02 alert1001 statograph[971144]: File "/usr/lib/python3.11/json/__init__.py", line 238, in dumps Jul 18 06:41:02 alert1001 statograph[971144]: **kw).encode(obj) Jul 18 06:41:02 alert1001 statograph[971144]: ^^^^^^^^^^^ Jul 18 06:41:02 alert1001 statograph[971144]: File "/usr/lib/python3.11/json/encoder.py", line 200, in encode Jul 18 06:41:02 alert1001 statograph[971144]: chunks = self.iterencode(o, _one_shot=True) Jul 18 06:41:02 alert1001 statograph[971144]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Jul 18 06:41:02 alert1001 statograph[971144]: File "/usr/lib/python3.11/json/encoder.py", line 258, in iterencode Jul 18 06:41:02 alert1001 statograph[971144]: return _iterencode(o, 0) Jul 18 06:41:02 alert1001 statograph[971144]: ^^^^^^^^^^^^^^^^^ Jul 18 06:41:02 alert1001 statograph[971144]: ValueError: Out of range float values are not JSON compliant Jul 18 06:41:02 alert1001 statograph[971144]: During handling of the above exception, another exception occurred: Jul 18 06:41:02 alert1001 statograph[971144]: Traceback (most recent call last): Jul 18 06:41:02 alert1001 statograph[971144]: File "/usr/lib/python3/dist-packages/statograph/__main__.py", line 115, in main Jul 18 06:41:02 alert1001 statograph[971144]: uploader.upload_one_batch(datasource, configured_metrics[metric_id]['query'], Jul 18 06:41:02 alert1001 statograph[971144]: File "/usr/lib/python3/dist-packages/statograph/uploader.py", line 86, in upload_one_batch Jul 18 06:41:02 alert1001 statograph[971144]: statuspage.add_datapoints({self.metric.id: data}) Jul 18 06:41:02 alert1001 statograph[971144]: File "/usr/lib/python3/dist-packages/statograph/statuspage.py", line 119, in add_datapoints Jul 18 06:41:02 alert1001 statograph[971144]: return self._request('POST', self._url("metrics/data"), json=body) Jul 18 06:41:02 alert1001 statograph[971144]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Jul 18 06:41:02 alert1001 statograph[971144]: File "/usr/lib/python3/dist-packages/statograph/statuspage.py", line 70, in _request Jul 18 06:41:02 alert1001 statograph[971144]: resp = self._session.request(method, url, timeout=self._timeout_secs, **kwargs) Jul 18 06:41:02 alert1001 statograph[971144]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Jul 18 06:41:02 alert1001 statograph[971144]: File "/usr/lib/python3/dist-packages/requests/sessions.py", line 573, in request Jul 18 06:41:02 alert1001 statograph[971144]: prep = self.prepare_request(req) Jul 18 06:41:02 alert1001 statograph[971144]: ^^^^^^^^^^^^^^^^^^^^^^^^^ Jul 18 06:41:02 alert1001 statograph[971144]: File "/usr/lib/python3/dist-packages/requests/sessions.py", line 484, in prepare_request Jul 18 06:41:02 alert1001 statograph[971144]: p.prepare( Jul 18 06:41:02 alert1001 statograph[971144]: File "/usr/lib/python3/dist-packages/requests/models.py", line 371, in prepare Jul 18 06:41:02 alert1001 statograph[971144]: self.prepare_body(data, files, json) Jul 18 06:41:02 alert1001 statograph[971144]: File "/usr/lib/python3/dist-packages/requests/models.py", line 513, in prepare_body Jul 18 06:41:02 alert1001 statograph[971144]: raise InvalidJSONError(ve, request=self) Jul 18 06:41:02 alert1001 statograph[971144]: requests.exceptions.InvalidJSONError: Out of range float values are not JSON compliant
even though the benthos issue was resolved (cfr https://phabricator.wikimedia.org/T369256#9987295) statograph continued to fail, from IRC backlog I'm assuming because invalid floats (likely NaN) are still in the results from prometheus cc @CDanis