amazon-cloudwatch-agent icon indicating copy to clipboard operation
amazon-cloudwatch-agent copied to clipboard

Add exponential histogram support to CloudWatch PMD Exporter

Open dricross opened this issue 9 months ago • 1 comments

Description of the issue

The Cloudwatch/PMD exporter currently drops all exponential histogram metrics.

Description of changes

Adds support for exponential histogram to the CloudWatch/PMD exporter

License

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Tests

Setup something to what our OTLP -> AMP test does (see test repo).

Agent config:

{
  "agent": {
    "metrics_collection_interval": 15,
    "run_as_user": "root",
    "debug": true
  },
  "metrics": {
    "metrics_collected": {
      "otlp": {
        "http_endpoint": "127.0.0.1:1234"
      }
    }
  }
}

Use OTLP metrics and OTLP pusher from test repo to generate exponential histogram metrics.

In CloudWatch, we can see:

  • min: 0
  • max: 5
  • sample count: 72
  • Sum: 240

image

Requirements

Before commit the code, please do the following steps.

  1. Run make fmt and make fmt-sh
  2. Run make lint

dricross avatar May 08 '25 20:05 dricross

This PR was marked stale due to lack of activity.

github-actions[bot] avatar May 28 '25 00:05 github-actions[bot]

This PR was marked stale due to lack of activity.

github-actions[bot] avatar Jul 07 '25 00:07 github-actions[bot]