Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
check agent liveness via version subcommand (#1059)
Browse files Browse the repository at this point in the history
  • Loading branch information
graphaelli authored Feb 11, 2021
1 parent 951e5ab commit 0bc492c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/modules/elastic_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ def _content(self):
depends_on=self.depends_on,
environment=self.environment,
healthcheck={
"test": ["CMD", "/bin/true"],
"test": ["CMD", "elastic-agent", "version"],
},
ports=self.ports,
volumes=[
Expand Down
2 changes: 1 addition & 1 deletion scripts/tests/service_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ def test_default(self):
"KIBANA_HOST": "http://admin:changeme@kibana:5601",
"KIBANA_PASSWORD": "changeme",
"KIBANA_USERNAME": "admin"},
"healthcheck": {"test": ["CMD", "/bin/true"]},
"healthcheck": {"test": ["CMD", "elastic-agent", "version"]},
"image": "docker.elastic.co/beats/elastic-agent:7.12.345-SNAPSHOT",
"labels": ["co.elastic.apm.stack-version=7.12.345"],
"logging": {"driver": "json-file",
Expand Down

0 comments on commit 0bc492c

Please sign in to comment.