-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document workflow for uploading custom integrations and enabling agen…
…tless support (#3797) * add install/upload instructions * add deployment mode docs * a little bit of cleanup * one more bug * okay last one * add discrete headings add discrete headings * Update upload-integration.asciidoc * Update build-integration.asciidoc * Apply suggestions from code review Co-authored-by: Jaime Soriano Pastor <[email protected]> * Apply suggestions from code review --------- Co-authored-by: Jaime Soriano Pastor <[email protected]> Co-authored-by: Arianna Laudazzi <[email protected]>
- Loading branch information
1 parent
7f4775f
commit fa97724
Showing
4 changed files
with
225 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
[[upload-a-new-integration]] | ||
= Upload an integration to Kibana | ||
|
||
++++ | ||
<titleabbrev>Upload an integration</titleabbrev> | ||
++++ | ||
|
||
{fleet} supports integration installation through direct upload as a means to support integration developers | ||
or users who have created custom integrations that they don't want to commit upstream back to the https://github.com/elastic/integrations[Elastic Integrations repository]. | ||
|
||
Direct upload can also be useful in air-gapped environments, | ||
by providing a way to update integrations without needing to update a self-hosted package registry. | ||
|
||
[discrete] | ||
[[upload-integration-local]] | ||
== Local development | ||
|
||
If you've followed the local development steps in <<build-a-new-integration>>, upload your integration to Kibana with the following command: | ||
|
||
[source,terminal] | ||
---- | ||
elastic-package install --zip /path/to/my/custom-integration | ||
---- | ||
|
||
For more information, see <<elastic-package-install>>. | ||
|
||
[discrete] | ||
[[upload-integration-production]] | ||
== Production deployment | ||
|
||
To upload your integration to a production deployment, first zip the package: | ||
|
||
[source,terminal] | ||
---- | ||
$ cd /path/to/my/custom-integration | ||
$ elastic-package build | ||
---- | ||
|
||
You can now use the Kibana API to upload your integration: | ||
|
||
[source,terminal] | ||
---- | ||
$ curl -XPOST \ | ||
-H 'content-type: application/zip' \ | ||
-H 'kbn-xsrf: true' \ | ||
http://your.kibana.host/api/fleet/epm/packages \ | ||
-u {username}:{password} \ | ||
--data-binary @my-custom-integration.zip | ||
---- | ||
|
||
More information on this endpoint is available in the {fleet-guide}/fleet-apis.html[Fleet API Reference]. |