Type to search.

Monitor a self-managed Fleet Server

Serverless Unavailable

Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud.

Availability

  • Unavailable

    This functionality is not available in Elastic Cloud Serverless.

Stack

The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.

Availability

  • Generally available

    This functionality is generally available and ready for production usage.

Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments.

This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.

For self-managed Fleet Servers, monitoring is key because the operation of the Fleet Server is paramount to the health of the deployed agents and the services they offer. When Fleet Server is not operating correctly, it may lead to delayed check-ins, status information, and updates for the agents it manages. The monitoring data will tell you when to add capacity for Fleet Server, and provide error logs and information to troubleshoot other issues.

For self-managed clusters, monitoring is on by default when you create a new agent policy or use the existing Default Fleet Server agent policy.

To monitor Fleet Server:

  1. In Fleet, open the Agent policies tab.

  2. Click the Fleet Server policy name to edit the policy.

  3. Click the Settings tab and verify that Collect agent logs and Collect agent metrics are selected.

  4. Next, set the Default namespace to something like fleetserver.

    Setting the default namespace lets you segregate Fleet Server monitoring data from other collected data. This makes it easier to search and visualize the monitoring data.

    Fleet Server agent policy
    Fleet Server agent policy
  5. To confirm your change, click Save changes.

To see the metrics collected for the agent running Fleet Server, go to Analytics > Discover.

In the following example, fleetserver was configured as the namespace, and you can see the metrics collected:

Data stream
Data stream

Go to Analytics > Dashboard and search for the predefined dashboard called [Elastic Agent] Agent metrics. Choose this dashboard, and run a query based on the fleetserver namespace.

The following dashboard shows data for the query data_stream.namespace: "fleetserver". In this example, you can observe CPU and memory usage as a metric and then resize the Fleet Server, if necessary.

Dashboard Data stream
Dashboard Data stream

As an alternative to running the query, you can hide all metrics except fleet_server in the dashboard.