forked from elastic/observability-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2c4646
commit 06bf4a2
Showing
14 changed files
with
212 additions
and
16 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
File renamed without changes.
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,80 @@ | ||
[[fleet-server]] | ||
= {fleet-server} | ||
|
||
beta[] | ||
|
||
{fleet-server} is a component in {agent} used to centrally manage {agent}s. It | ||
serves as a control plane for updating agent policies, collecting status | ||
information, and coordinating actions across agents. | ||
|
||
{fleet-server} is the mechanism {agent}s use to communicate with {es}: | ||
|
||
. When a new agent policy is created, it's saved to {es}. | ||
|
||
. To enroll in the policy, {agent}s send a request to {fleet-server}, | ||
using the enrollment key generated for authentication. | ||
|
||
. {fleet-server} receives the request and gets the agent policy from {es}, | ||
then ships the policy to all {agent}s enrolled in that policy. | ||
|
||
. {agent} uses configuration information in the policy to collect and send data | ||
to {es}. | ||
|
||
. {fleet-server} periodically checks {agent}s for status information. | ||
|
||
. When a policy is updated, {fleet-server} retrieves the updated policy from | ||
{es} and sends it to the connected {agent}s. | ||
|
||
image:images/fleet-server-communication.png[Fleet Server handles communication between {agent}, {fleet}, {es}, and {kib}] | ||
|
||
{fleet-server} runs as a subprocess inside an {agent}. The agent uses a special | ||
policy that describes the {fleet-server} configuration. In large scale | ||
self-managed deployments or on {ess-product}[hosted {ess}] on {ecloud}, | ||
{fleet-server} is typically run as a dedicated {agent} communication host, but | ||
you can optionally use it for data collection on self-managed clusters. For more | ||
details, refer to <<fleet-server-deployment>>. | ||
|
||
[discrete] | ||
[[fleet-server-compatibility]] | ||
== Compatibility | ||
|
||
{fleet-server} is compatible with the following Elastic products: | ||
|
||
* {stack} 7.13 or later (our {ess-product}[hosted {ess}] on {ecloud} or | ||
a self-managed cluster). | ||
|
||
* {ece} 2.10 or later | ||
|
||
//TODO: Confirm that ECE version shown here is correct ^^. | ||
|
||
{fleet-server} is supported on x64 architectures only. | ||
|
||
[discrete] | ||
[[add-fleet-server]] | ||
== Add a {fleet-server} | ||
|
||
Before using {fleet} for central management, {fleet-server} must be running. The | ||
steps for running {fleet-server} on our {ess-product}[hosted {ess}] on {ecloud} | ||
are different from the steps for running it on a self-managed cluster. | ||
|
||
include::{tab-widgets}/add-fleet-server/widget.asciidoc[] | ||
|
||
|
||
Now you're ready to add {agent}s to your host systems. To learn how, see | ||
<<add-agent-to-fleet>>. | ||
|
||
//TODO: Describe other installation options (like using the enroll | ||
// command rather than installing as service) and point to that info. | ||
|
||
[discrete] | ||
[[fleet-server-deployment]] | ||
== Scale your {fleet-server} deployment | ||
|
||
coming[a future update] | ||
|
||
//TODO: Describe how to scale up the number of {agent}s that can be managed in | ||
// {fleet} by deploying more Fleet Servers. Document limits and recommendations. | ||
// Also describe deployment options (like adding a load balancer) | ||
|
||
//needed to render tab widgets | ||
include::{tab-widgets}/code.asciidoc[] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,72 @@ | ||
// tag::ess[] | ||
|
||
No extra setup is required. {ecloud} runs a hosted version of {fleet-server}. | ||
|
||
To confirm that {fleet-server} is available in your deployment: | ||
|
||
. Log in to {kib} and go to *Management > {fleet}*. | ||
. Click the *Agents* tab. | ||
. Under *Policies*, confirm that {fleet-server} is running and healthy. | ||
|
||
{fleet-server} is the agent enrolled in the Elastic Agent on Cloud policy. | ||
This policy is managed by {ecloud}. You cannot modify it. | ||
|
||
Don't see the {fleet-server} agent? Make sure your deployment includes an | ||
APM & {fleet} node. This node is required to use {fleet-server}. | ||
|
||
[role="screenshot"] | ||
image::images/add-fleet-node-on-cloud.png[Edit page showing settings for APM & {fleet} node] | ||
|
||
// end::ess[] | ||
|
||
// tag::self-managed[] | ||
|
||
To deploy {fleet-server} on a self-managed cluster, install an {agent} and | ||
enroll it in the default {fleet-server} policy. The policy is created | ||
automatically when you run {fleet} for the first time. | ||
|
||
To add {fleet-server}: | ||
|
||
//TODO: Mention API for adding the token. | ||
|
||
. Log in to {kib} and go to *Management > {fleet}*. | ||
|
||
. Click *{fleet} settings*, and in the *{fleet-server} hosts* field, specify the | ||
URL {agent}s will use to connect to {fleet-server}. For example, | ||
`https://192.0.2.1:8220`, where `192.0.2.1` is the host IP where you will | ||
install {fleet-server}. | ||
|
||
. In the *{es} hosts* field, specify the {es} URLs where {agent}s will send data. | ||
For example, `https://192.0.2.0:9200`. | ||
|
||
. Save and apply the settings. | ||
|
||
. Click the *Agents* tab and follow the in-product instructions to add a | ||
{fleet} server: | ||
+ | ||
[role="screenshot"] | ||
image::images/add-fleet-server.png[In-product instructions for adding a {fleet-server}] | ||
|
||
*Notes:* | ||
|
||
* Make sure you download an x64 architecture installation package. | ||
* After generating the service token, save it to a secure location. You might | ||
need to use this token later to scale your deployment by adding {fleet-server}s. | ||
* The `install` command installs the {agent} as a managed service and enrolls it | ||
in a {fleet-server} policy: | ||
+ | ||
[source,yaml] | ||
---- | ||
sudo ./elastic-agent install -f --fleet-server-es=http://localhost:9200 \ | ||
--fleet-server-service-token=AAEAAWVsYXN0aWMvZmxlZXQtc2VydmVyL3Rva2VuLTE2MTkxMzg3MzIzMTg6dzEta0JDTmZUZGlDTjlwRmNVTjNVQQ | ||
---- | ||
+ | ||
If installation is successful, you'll see the {fleet-server} {agent} on the | ||
*Agents* tab in *{fleet}*. Notice that the Default Fleet Server Policy is | ||
assigned to the {agent}. This policy is created when you run {fleet} for the | ||
first time. | ||
+ | ||
[role="screenshot"] | ||
image::images/agents-tab-fleet-server.png[Agent tab showing a healthy agent enrolled in the Default Fleet Server policy] | ||
// end::self-managed[] |
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,40 @@ | ||
++++ | ||
<div class="tabs" data-tab-group="spin-up-stack"> | ||
<div role="tablist" aria-label="Spin up"> | ||
<button role="tab" | ||
aria-selected="true" | ||
aria-controls="cloud-tab-spinup" | ||
id="cloud-spinup"> | ||
Elasticsearch Service | ||
</button> | ||
<button role="tab" | ||
aria-selected="false" | ||
aria-controls="self-managed-tab-spinup" | ||
id="self-managed-spinup" | ||
tabindex="-1"> | ||
Self-managed | ||
</button> | ||
</div> | ||
<div tabindex="0" | ||
role="tabpanel" | ||
id="cloud-tab-spinup" | ||
aria-labelledby="cloud-spinup"> | ||
++++ | ||
|
||
include::content.asciidoc[tag=ess] | ||
|
||
++++ | ||
</div> | ||
<div tabindex="0" | ||
role="tabpanel" | ||
id="self-managed-tab-spinup" | ||
aria-labelledby="self-managed-spinup" | ||
hidden=""> | ||
++++ | ||
|
||
include::content.asciidoc[tag=self-managed] | ||
|
||
++++ | ||
</div> | ||
</div> | ||
++++ |