File tree Expand file tree Collapse file tree
testing/kuttl/e2e/otel-logging-and-metrics Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ commands:
44# First, check that all containers in the instance pod are ready.
55# Then, grab the collector metrics output and check that a postgres
66# metric is present, as well as a patroni metric.
7+ # Then use psql to run a bad command in the database to get an error
8+ # and ensure that there is a postgres log to capture.
79# Then, check the collector logs for patroni, and postgres logs.
810# Finally, ensure the monitoring user exists and is configured.
911- script : |
@@ -35,6 +37,8 @@ commands:
3537 exit 1
3638 }
3739
40+ kubectl exec "${pod}" -n "${NAMESPACE}" -- psql -c "SHOW DOES_NOT_EXIST;" 2>/dev/null || true
41+
3842 logs=$(kubectl logs "${pod}" --namespace "${NAMESPACE}" -c collector | grep InstrumentationScope)
3943 { contains "${logs}" 'InstrumentationScope patroni'; } || {
4044 retry "patroni logs not found"
You can’t perform that action at this time.
0 commit comments