From 8069a12a1fdce072492302f91f411919e5b710c8 Mon Sep 17 00:00:00 2001 From: Marcin Tojek Date: Mon, 2 Mar 2020 09:02:31 +0100 Subject: [PATCH] Wait for emitted metrics --- x-pack/metricbeat/module/redisenterprise/_meta/healthcheck.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x-pack/metricbeat/module/redisenterprise/_meta/healthcheck.sh b/x-pack/metricbeat/module/redisenterprise/_meta/healthcheck.sh index 12b298e60c6b..4089ab7ecda0 100755 --- a/x-pack/metricbeat/module/redisenterprise/_meta/healthcheck.sh +++ b/x-pack/metricbeat/module/redisenterprise/_meta/healthcheck.sh @@ -18,4 +18,5 @@ if [[ ! -f "${CHECK_DATABASE_CREATED}" ]]; then touch ${CHECK_DATABASE_CREATED} fi -curl -s --insecure https://127.0.0.1:8070 >/dev/null +curl -s --insecure https://127.0.0.1:8070 | grep -q "node_cpu" >/dev/null +curl -s --insecure https://127.0.0.1:8070 | grep -q "listener_egress_bytes" >/dev/null