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

Set basePath in Metricbeat when using stack monitoring #8311

Merged
merged 3 commits into from
Dec 11, 2024

Conversation

pebrc
Copy link
Collaborator

@pebrc pebrc commented Dec 10, 2024

Fixes #8310

@botelastic botelastic bot added the triage label Dec 10, 2024
@pebrc pebrc added >bug Something isn't working v2.16.0 labels Dec 11, 2024
@botelastic botelastic bot removed the triage label Dec 11, 2024
@pebrc pebrc marked this pull request as ready for review December 11, 2024 10:22
@pebrc
Copy link
Collaborator Author

pebrc commented Dec 11, 2024

buildkite test this -f t=Test.*StackMonitoring -m s=7.17.25,s=8.15.4

@pebrc
Copy link
Collaborator Author

pebrc commented Dec 11, 2024

buildkite test this -f p=gke,t=Test.*StackMonitoring -m s=8.16.0,s=7.17.25,s=8.15.4

Copy link
Contributor

@thbkrkr thbkrkr left a comment

Choose a reason for hiding this comment

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

Looks good 👌

@@ -29,6 +29,7 @@ func NewMetricBeatSidecar(
baseConfigTemplate string,
namer name.Namer,
url string,
basePath string,
Copy link
Contributor

Choose a reason for hiding this comment

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

NewMetricBeatSidecar(..) and buildMetricbeatBaseConfig(..) start to have a lot of parameters. At some point, it might be reasonable to introduce a struct?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think fundamentally basePath should not be in the common stack monitoring code. But I wanted a quick fix we could include in the release. Ideally one would want a bit more more modular code where we can have application/module specific settings in the specific controllers.

@pebrc pebrc merged commit eadb46d into elastic:main Dec 11, 2024
5 checks passed
pebrc added a commit to pebrc/cloud-on-k8s that referenced this pull request Dec 11, 2024
Ensure stack monitoring works when Kibana is configured with a basePath parameter.

(cherry picked from commit eadb46d)
@pebrc
Copy link
Collaborator Author

pebrc commented Dec 11, 2024

💚 All backports created successfully

Status Branch Result
2.16

Questions ?

Please refer to the Backport tool documentation

pebrc added a commit that referenced this pull request Dec 11, 2024
Ensure stack monitoring works when Kibana is configured with a basePath parameter.

(cherry picked from commit eadb46d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug Something isn't working v2.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ECK Stack Monitoring does not work when server.basePath is defined on Kibana
2 participants