Skip to content

[Kubernetes Integration] Investigate Elastic Agent API calls and check memory consumption #4122

@MichaelKatsoulis

Description

@MichaelKatsoulis

Leverage APM Tracing(#2612 (comment)) in order to investigate:

  • Elastic Agent API calls towards k8s API
  • check memory consumption

Update

Background

get the base line of current resource usage (8.12.x) and the method to measure it, just for the internal understanding

Goals

Understand internally how to get metrics:
Measure:
a) Memory
we are not splitting sub-processes for now, just elastic-agent

b) CPU
c) API calls (from both agent and underlying beats)

Actions

  1. How to get all the required Measurements
  • are we required to use system integration - yes, we want to get info over time

  • but how to get mem info for the elastic-agent - k8s related providers

  • cluster only with agent with empty policy - check the base line of resource usage + api calls (with audit logs)

  • enable k8s integration - check the mem/cpu change

  1. The scenarios to measure memory, cpu usage and API calls:
  2. 1 node cluster:
  1. elastic-agent with default metrics 1 node cluster and 50 pods
  • leave system integration enabled
  1. elastic-agent with logs 1 node cluster: X rate of logs with 50pods
  1. Repeat above with 5 node cluster with 50pods
  1. elastic-agent with default metrics 1 node cluster and 50 pods
  2. elastic-agent with logs 1 node cluster: X rate of logs with 50pods

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions