-
Notifications
You must be signed in to change notification settings - Fork 529
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
Document how to automatically install APM integration package #10361
Comments
It sounds like this might not be the case. @kpollich says:
|
Airgapped environments still require access to EPR in some capacity. This is why we document the need for either proxying requests to The "inaccessible EPR" case differs from the general airgapped case, and we've got an issue for making the experience around inaccessible EPR environments better here: elastic/kibana#136617 |
@kpollich even for preconfiguration? If so, why? Can that be changed? |
I should clarify. The bundled integration will still be installed via preconfiguration if there's no reachable package registry. When I say "a reachable instance of EPR is required" I mean required for operation of the Fleet and Integrations apps. Even without a reachable EPR configured we can still install + configure the APM integration and ingest data. As for the "why" - Fleet will always try to reach out to EPR to determine whether a given package is out of date. The "update required" status for packages is driven entirely by what's reported by EPR, so we're always checking with that service when packages are queried, installed, etc. There's work to do on our end around intelligently disabling those "is package up to date?" style requests, and failing fast when EPR isn't reachable. Some related issues: |
@kpollich thanks for clarifying. So the goal of this docs issue is just to document how to install the package automatically, and anything related to interacting with the Fleet/Integrations apps was meant to be out of scope. Maybe we can just mention that in airgapped environments, interacting with the app still requires access to a self-hosted EPR, and link to the Fleet air-gapped environment setup docs, which go into self-hosting EPR etc. We should be careful not to leave users with the impression that this is required for installation though. |
Hello, I'm chiming in on this issue as some users are getting affected by this problem in air-gapped environments.
MitigationWe could document a valid workaround (seems to work fine without EPR access):
And the one suggested by @axw. Next stepsWould it be possible to follow up with the APM/Fleet PMs on how to make APM not completely dependant on Fleet being fully functional? |
@lucabelluccini - Thanks for chiming in. You are correct that installation via the UI still requires an EPR connection. The entire integrations UI is not built to support an inaccessible package registry, even with the presence of bundled packages. Installation via the API is still functional, though, and the expected behavior is that in cloud environments where APM is set up as a default package, it will be automatically installed during Kibana's startup even if EPR is not reachable. elastic/kibana#136617 captures this issue well, I think, and we'd just need to prioritize it on the Fleet side to ship a fix. cc @mukeshelastic - It'd be good to get PM input here and note the request to prioritize the above. I believe you're responsible for anything related to integrations UI now, so you're hopefully the right person to ping 🙂 |
Hi, I add the below setting in kibana.yml
but I got the error message: [ERROR][plugins.apm] FleetUnauthorizedError: User does not have adequate permissions to access Fleet packages. How to fix it? |
Hi @AlbusLumos - your user needs the |
Thanks, @kpollich |
@AlbusLumos AFAIK security is enabled by default, and Fleet doesn't work with disabled security. The |
Option to use it with security disabled will be welcome, no need for security when it is deployed on an isolated VM for demonstration, testing purposes. |
The support to disable security depends on Fleet support (part of Kibana). @juliaElastic does an enhancement request exist for this and could you link it here if so (I didn't manage to find it). |
@simitt I opened this a while back: elastic/kibana#160486 |
The APM integration package must be installed regardless of whether APM Server is run as an Elastic Agent integration or as a standalone process. Automatically installing the APM integration package is a common requirement.
We should ensure this is well documented, probably in the APM Guide Quick start section. To install the package, it is enough to include the following in
kibana.yml
:This will even work in air-gapped environments, as we bundle the APM integration package with Kibana.
See also https://discuss.elastic.co/t/how-to-install-apm-server-in-legacy-mode-without-elastic-apm-integration/325724/2?u=axw
The text was updated successfully, but these errors were encountered: