Elastic Certified Observability Engineer Exam: Metrics - Install the Elastic Agent to collect metrics

Saidani Mohamed El Amine
3 min readAug 20, 2024

--

We continue our training with new topic, we will start with Metrics, and the first topic is Install the Elastic Agent to collect metrics,

We gonna see:

  • Install and configure Fleet Server
  • Install and Configure Elastic Agent
  • Enable System Module and collect Metrics

when you click on Fleet in kibana it will show you a warning that you don’t have fleet server and you have to install it first, to do so you follow the steps:

when you click on add fleet server, you get this page

You choose an IP and port for your fleet server and you click on continue

Now, based on you OS you choose the right package to install and configure the fleet server:

once you done you will see this, fleet is well configured, if there’s any error or issue you will see it in the logs

Now, if you want to install Elastic Agent in other machine then you have to follow the next steps from that window, otherwise if you wanna use it in the same machine where you installed Fleet server, then you don’t need to install it again because when you install the fleet you get the agent with it.

now the question how we can collect the Metrics!

to do so you need to configure Agent Policies then assinge it to the agent.

You go to Agent policies, and you give it a name

after adding it, you click on it as you can see there no integration assigned to it, let’s add one

you click on it, and you search for system

you add it, and you enable just Collect Metrics, as it requested from us,

now let’s see if we are getting our metrics, go to kibana>>Discover>>metrics* and you will see this:

Same if you go to dashboards, and search for Host overview you will see this:

if you get till this point then congrats, will see you in the next one ^^

--

--

Saidani Mohamed El Amine

Currently working as DevSecOps consultant with focus on security, monitoring, Big Data, and related topics.