Skip to content

How to configure AWS Observability addon to record pod metrics but not API metrics #322

@pfrydids

Description

@pfrydids

I am focusing on the the /aws/containerinsights/<cluster_name>/performance log group as it has alot of putlogevents in the cloudwatch log metrics and is resulting the highest costs.

When I look at the log events they don't look like stuff that I am ever going to query/require (certainly not in my non production environment such as

apiserver_request_duration_seconds
etcd_request_duration_seconds
apiserver_request_total

BUT i do want pod metrics, these in non-prod are very useful

SO basically I want

https://aws-observability.github.io/observability-best-practices/guides/containers/oss/eks/best-practices-metrics-collection/#podcontainer-metrics

but I don't want

https://aws-observability.github.io/observability-best-practices/guides/containers/oss/eks/best-practices-metrics-collection/#control-plane-metrics

How do I configure the Amazon Cloudwatch Observability addon to do this?

I wondered about disabling API server Control Plane logs but the log group that uses (according the AWS Console is /aws/eks/<cluster name>/cluster . This was confirmed by experimentation as it had no effect on the log events in the performance log group.

It would be good to have a performance logs equivalent to

Image

something like

Performance Logging

  • enable/disable API Server
  • enable/disable rest client
  • enable/disable etcd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No 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