Skip to content

[Ingest Manager] send path as separate property in Full Agent Policy#80540

Merged
neptunian merged 1 commit intoelastic:masterfrom
neptunian:send-kibana-path-to-fleet
Oct 14, 2020
Merged

[Ingest Manager] send path as separate property in Full Agent Policy#80540
neptunian merged 1 commit intoelastic:masterfrom
neptunian:send-kibana-path-to-fleet

Conversation

@neptunian
Copy link
Copy Markdown
Contributor

@neptunian neptunian commented Oct 14, 2020

As part of the Fleet Kibana config in the FullAgentPolicy, path should not be sent as part of host property, taken from the user's Settings for kibana urls. Path, if it exists, will be sent as path otherwise no property will be sent as part of the config. Path will no longer be part of hosts .

Related:
elastic/beats#21804
elastic/beats#21601

@neptunian neptunian added v8.0.0 v7.10.0 Team:Fleet Team label for Observability Data Collection Fleet team v7.11.0 labels Oct 14, 2020
@neptunian neptunian requested a review from a team October 14, 2020 15:31
@neptunian neptunian self-assigned this Oct 14, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

@neptunian neptunian added the release_note:skip Skip the PR/issue when compiling release notes label Oct 14, 2020
Copy link
Copy Markdown
Contributor

@jfsiii jfsiii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was surprised to see the path end with a slash but it's clearly intentional and we have tests 🚀

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

distributable file count

id before after diff
default 48491 48492 +1

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@jen-huang
Copy link
Copy Markdown
Contributor

Same as @jfsiii - are we sure the trailing slash is needed? IIRC agent will start calls with /api. @blakerouse can you confirm if we should send /abc or /abc/?

@neptunian
Copy link
Copy Markdown
Contributor Author

@jen-huang It's something I confirmed with @blakerouse. Since it is written in the fleet.yml that way, he said it would be best to also send it like that:
Screen Shot 2020-10-14 at 8 54 13 AM

Copy link
Copy Markdown

@blakerouse blakerouse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sending with ending slash seems correct because when you enroll with a path the code also places the / at the end.

@neptunian neptunian merged commit fb9ccc0 into elastic:master Oct 14, 2020
neptunian added a commit to neptunian/kibana that referenced this pull request Oct 14, 2020
neptunian added a commit to neptunian/kibana that referenced this pull request Oct 14, 2020
@neptunian neptunian deleted the send-kibana-path-to-fleet branch October 14, 2020 18:18
neptunian added a commit that referenced this pull request Oct 14, 2020
neptunian added a commit that referenced this pull request Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.10.0 v7.11.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants