﻿---
title: Monitor a self-managed Fleet Server
description: 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...
url: https://www.elastic.co/elastic/docs-builder/docs/2455/reference/fleet/fleet-server-monitoring
products:
  - Elastic Agent
  - Fleet
applies_to:
  - Elastic Cloud Serverless: Unavailable
  - Elastic Stack: Generally available
---

# Monitor a self-managed Fleet Server
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](https://www.elastic.co/elastic/docs-builder/docs/2455/reference/fleet/images/fleet-server-agent-policy-page.png)
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](https://www.elastic.co/elastic/docs-builder/docs/2455/reference/fleet/images/datastream-namespace.png)

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](https://www.elastic.co/elastic/docs-builder/docs/2455/reference/fleet/images/dashboard-datastream01.png)

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