feat: add new command to migrate onhost folders#1815
Merged
vjripoll merged 5 commits intorestructure-on-host-foldersfrom Nov 5, 2025
Merged
feat: add new command to migrate onhost folders#1815vjripoll merged 5 commits intorestructure-on-host-foldersfrom
vjripoll merged 5 commits intorestructure-on-host-foldersfrom
Conversation
3727632 to
c6ceb4a
Compare
sigilioso
reviewed
Oct 31, 2025
2ec9929 to
29763c9
Compare
paologallinaharbur
approved these changes
Oct 31, 2025
Member
paologallinaharbur
left a comment
There was a problem hiding this comment.
It looks good, only ebpf seems to be missing.
code structure can be improved, but I am not sure if it is worth it considering that it is just a migration tool
d856dc8 to
eb16e33
Compare
danielorihuela
approved these changes
Nov 3, 2025
Contributor
danielorihuela
left a comment
There was a problem hiding this comment.
I left nit's. Not sure how worth it is if we plan on removing it long term. Great work!!!
b064a60 to
5f4f126
Compare
54a778b to
9343dc5
Compare
ed5b41c to
34cd668
Compare
34cd668 to
20d49d3
Compare
| for (agent_id, _) in sub_agents_cfg.agents { | ||
| let infra_values_persister = | ||
| ValuesPersisterFile::new(self.local_dir.join(SUB_AGENT_DIR)); | ||
| let infra_values_persister = ValuesPersisterFile::new(self.local_dir.clone()); |
Member
There was a problem hiding this comment.
is this change belonging to this PR?
| otel_agent_values_path: PathBuf::from( | ||
| "/etc/newrelic-agent-control/fleet/agents.d/nrdot/values", | ||
| ), | ||
| otel_agent_values_path: PathBuf::from("/etc/newrelic-agent-control/local-data/nrdot"), |
Member
There was a problem hiding this comment.
same here, isn't related to an other PR?
paologallinaharbur
approved these changes
Nov 5, 2025
sigilioso
approved these changes
Nov 5, 2025
vjripoll
added a commit
that referenced
this pull request
Nov 5, 2025
* feat: new command to migrate old folder to new ones * fix command name and check logic * simplify the check logic to check only for local paths * fix more comments and simplify * move from statics agents names to scrapping fleet/agents.d
vjripoll
added a commit
that referenced
this pull request
Nov 5, 2025
* feat: new command to migrate old folder to new ones * fix command name and check logic * simplify the check logic to check only for local paths * fix more comments and simplify * move from statics agents names to scrapping fleet/agents.d
vjripoll
added a commit
that referenced
this pull request
Nov 5, 2025
* feat: new command to migrate old folder to new ones * fix command name and check logic * simplify the check logic to check only for local paths * fix more comments and simplify * move from statics agents names to scrapping fleet/agents.d
vjripoll
added a commit
that referenced
this pull request
Nov 5, 2025
* feat: new command to migrate old folder to new ones * fix command name and check logic * simplify the check logic to check only for local paths * fix more comments and simplify * move from statics agents names to scrapping fleet/agents.d
vjripoll
added a commit
that referenced
this pull request
Nov 5, 2025
* feat: new command to migrate old folder to new ones * fix command name and check logic * simplify the check logic to check only for local paths * fix more comments and simplify * move from statics agents names to scrapping fleet/agents.d
vjripoll
added a commit
that referenced
this pull request
Nov 5, 2025
* feat: new command to migrate old folder to new ones * fix command name and check logic * simplify the check logic to check only for local paths * fix more comments and simplify * move from statics agents names to scrapping fleet/agents.d
vjripoll
added a commit
that referenced
this pull request
Nov 5, 2025
* feat: new command to migrate old folder to new ones * fix command name and check logic * simplify the check logic to check only for local paths * fix more comments and simplify * move from statics agents names to scrapping fleet/agents.d
vjripoll
added a commit
that referenced
this pull request
Nov 5, 2025
* feat: new command to migrate old folder to new ones * fix command name and check logic * simplify the check logic to check only for local paths * fix more comments and simplify * move from statics agents names to scrapping fleet/agents.d
vjripoll
added a commit
that referenced
this pull request
Nov 5, 2025
* feat: new command to migrate old folder to new ones * fix command name and check logic * simplify the check logic to check only for local paths * fix more comments and simplify * move from statics agents names to scrapping fleet/agents.d
vjripoll
added a commit
that referenced
this pull request
Nov 6, 2025
* feat: new command to migrate old folder to new ones * fix command name and check logic * simplify the check logic to check only for local paths * fix more comments and simplify * move from statics agents names to scrapping fleet/agents.d
vjripoll
added a commit
that referenced
this pull request
Nov 6, 2025
* feat: new command to migrate old folder to new ones * fix command name and check logic * simplify the check logic to check only for local paths * fix more comments and simplify * move from statics agents names to scrapping fleet/agents.d
vjripoll
added a commit
that referenced
this pull request
Nov 6, 2025
* feat: new command to migrate old folder to new ones * fix command name and check logic * simplify the check logic to check only for local paths * fix more comments and simplify * move from statics agents names to scrapping fleet/agents.d
vjripoll
added a commit
that referenced
this pull request
Nov 6, 2025
* feat: new command to migrate old folder to new ones * fix command name and check logic * simplify the check logic to check only for local paths * fix more comments and simplify * move from statics agents names to scrapping fleet/agents.d
vjripoll
added a commit
that referenced
this pull request
Nov 6, 2025
* feat: new command to migrate old folder to new ones * fix command name and check logic * simplify the check logic to check only for local paths * fix more comments and simplify * move from statics agents names to scrapping fleet/agents.d
vjripoll
added a commit
that referenced
this pull request
Nov 6, 2025
* feat: new command to migrate old folder to new ones * fix command name and check logic * simplify the check logic to check only for local paths * fix more comments and simplify * move from statics agents names to scrapping fleet/agents.d
vjripoll
added a commit
that referenced
this pull request
Nov 6, 2025
* feat: new command to migrate old folder to new ones * fix command name and check logic * simplify the check logic to check only for local paths * fix more comments and simplify * move from statics agents names to scrapping fleet/agents.d
vjripoll
added a commit
that referenced
this pull request
Nov 6, 2025
* feat: new command to migrate old folder to new ones * fix command name and check logic * simplify the check logic to check only for local paths * fix more comments and simplify * move from statics agents names to scrapping fleet/agents.d
vjripoll
added a commit
that referenced
this pull request
Nov 6, 2025
* restruture on host folder and names * feat: add new command to migrate onhost folders (#1815) * feat: new command to migrate old folder to new ones * fix command name and check logic * simplify the check logic to check only for local paths * fix more comments and simplify * move from statics agents names to scrapping fleet/agents.d
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it
THIESE CHANGES SHOULD BE PLANNED TO BE DELETED IN A NEAR FUTURE
Add new command into the newrelic-agent-control-cli to copy and rename all the old folders from the current installations to the new paths and names, the content is going to be the same
Which issue this PR fixes
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close that issue when PR gets merged. You can also add Jira ticket references if appropriate.)Special notes for your reviewer
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
docsis aligned with the change.CONTRIBUTING.md.log level guidelines.