diff --git a/ci/scripts/publish_test_metrics.py b/ci/scripts/publish_test_metrics.py index 514d7af2..cdd7d262 100644 --- a/ci/scripts/publish_test_metrics.py +++ b/ci/scripts/publish_test_metrics.py @@ -29,11 +29,11 @@ def _read_text(url: str) -> str: def _post_text(url: str, payload: str) -> None: - """POST a plain-text payload and fail on any 4xx/5xx response.""" + """PUT a plain-text payload and fail on any 4xx/5xx response.""" request = urllib.request.Request( url, data=payload.encode("utf-8"), - method="POST", + method="PUT", headers={"Content-Type": "text/plain"}, ) with urllib.request.urlopen(request, timeout=10) as response: diff --git a/services/logging/Jenkinsfile.data-prepper b/services/logging/Jenkinsfile.data-prepper index 6011727c..20ef9814 100644 --- a/services/logging/Jenkinsfile.data-prepper +++ b/services/logging/Jenkinsfile.data-prepper @@ -222,7 +222,7 @@ EOF if [ "${status}" != "ok" ]; then gate_glue_check="failed" fi - cat </dev/null || \ + cat </dev/null || \ echo "warning: metrics push failed for suite=${suite}" >&2 # TYPE platform_quality_gate_runs_total counter platform_quality_gate_runs_total{suite="${suite}",status="ok"} ${ok_count} diff --git a/services/monitoring/scripts/platform_quality_suite_probe.sh b/services/monitoring/scripts/platform_quality_suite_probe.sh index df5fff36..41e00eb3 100755 --- a/services/monitoring/scripts/platform_quality_suite_probe.sh +++ b/services/monitoring/scripts/platform_quality_suite_probe.sh @@ -35,7 +35,7 @@ push_suite_counters() { failed_count=$((failed_count + 1)) fi - cat </dev/null + cat </dev/null # TYPE platform_quality_gate_runs_total counter platform_quality_gate_runs_total{suite="${suite}",status="ok"} ${ok_count} platform_quality_gate_runs_total{suite="${suite}",status="failed"} ${failed_count}