Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds installation information to Agent's flare #5474

Merged
merged 2 commits into from
May 12, 2020

Conversation

mx-psi
Copy link
Member

@mx-psi mx-psi commented May 6, 2020

What does this PR do?

Adds a new file to the Agent's flare that will contain metadata about agent installation.

Motivation

  • Allow users to track their installation methods
  • Allows Datadog to make stats on installation methods

Additional Notes

The install_info file added to the flare by this PR is not yet created by the different installation methods, so it should be manually created at the Agent's configuration directory for testing.

Describe your test plan

  • Create a mock install_info file at the Agent's configuration directory
  • Run the agent flare command to create a flare and check that a copy of the install_info file is available in the resulting zip.
  • Delete the mock file and repeat the process to see that the flare is created correctly without that file. Ensure that the missing file error is logged.

@mx-psi mx-psi added this to the 7.20.0 milestone May 6, 2020
@mx-psi mx-psi requested a review from a team as a code owner May 6, 2020 15:59
@mx-psi mx-psi requested a review from a team May 6, 2020 15:59
@mx-psi mx-psi merged commit 207bc7e into master May 12, 2020
@mx-psi mx-psi deleted the mx-psi/flare-install-info branch May 13, 2020 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants