diff --git a/metricbeat/module/couchbase/_meta/Dockerfile b/metricbeat/module/couchbase/_meta/Dockerfile index 2131f21fb099..81667fcede6b 100644 --- a/metricbeat/module/couchbase/_meta/Dockerfile +++ b/metricbeat/module/couchbase/_meta/Dockerfile @@ -1,5 +1,5 @@ FROM couchbase:4.5.1 -HEALTHCHECK --interval=1s --retries=90 CMD [ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8091/pools/default/buckets)" -eq "200" ] +HEALTHCHECK --interval=1s --retries=90 CMD [ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8091/pools/default/buckets/beer-sample)" -eq "200" ] COPY configure-node.sh /opt/couchbase CMD ["/opt/couchbase/configure-node.sh"] diff --git a/metricbeat/module/couchbase/_meta/configure-node.sh b/metricbeat/module/couchbase/_meta/configure-node.sh index 467b3e338d2f..b101ae2aa061 100755 --- a/metricbeat/module/couchbase/_meta/configure-node.sh +++ b/metricbeat/module/couchbase/_meta/configure-node.sh @@ -32,7 +32,7 @@ curl -v http://127.0.0.1:8091/node/controller/setupServices -d services=kv%2Cn1q # Setup credentials curl -v http://127.0.0.1:8091/settings/web -d port=8091 -d username=Administrator -d password=password -# Load travel-sample bucket +# Load beer-sample bucket curl -v -u Administrator:password -X POST http://127.0.0.1:8091/sampleBuckets/install -d '["beer-sample"]' fg 1