elastic / elastic-agent

Elastic Agent - single, unified way to add monitoring for logs, metrics, and other types of data to a host.
Other
130 stars 139 forks source link

Status command is inconsistent between `full`, `json` and `yam` #4214

Open AndersonQ opened 8 months ago

AndersonQ commented 8 months ago

The full version of the status command output does not include the components version or build hash (do not mistake version_info.build_hash with version_info.meta.commit).

Components using the version 7.8.0+ of the control protocol the status command should report their version_info.build_hash, for components using older versions of the protocol, the version_info.version.

output difference

elasticmachine commented 8 months ago

Pinging @elastic/elastic-agent (Team:Elastic-Agent)

cmacknz commented 8 months ago

for components using older versions of the protocol, the version_info.version.

I would just always report the build_hash and not try to deal with when version is missing.

If version is missing it must always match that of the running agent because of the way our release process works, so if we want to populate it you can just populate the agent package version.