[monitoring] Add version header to Integration installation call (#174509)

The initial install call fails because we don't pass the version header.
This commit is contained in:
Milton Hultgren 2024-01-09 21:18:03 +01:00 committed by GitHub
parent 66aa37444a
commit aa1950f655
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,10 @@ export const ingestPipelineTabOnClick = async (
});
if (!dashboardFound) {
const installPackage = () => services.http!.post('/api/fleet/epm/packages/elasticsearch');
const installPackage = () =>
services.http!.post('/api/fleet/epm/packages/elasticsearch', {
headers: { 'Elastic-Api-Version': '2023-10-31' },
});
const ref = services.overlays!.openModal(
toMountPoint(