Skip to content

Conversation

@Paramadon
Copy link
Contributor

Description of the issue

Currently customers cannot send prometheus metrics via pmd so in order to be able to do that we need an integ test to verify that we get prometheus metrics via pmd.

Description of changes

Added agent change to add cloudwatch as a destination in prometheus pipeline in this pr: aws/amazon-cloudwatch-agent#1742.

Ran an integ test against the agent branch that is in the above pr (prometheusPMDSupport) on this test branch here is the passing test: https://github.com/aws/amazon-cloudwatch-agent/actions/runs/15905800422/job/44860425431

@Paramadon Paramadon requested a review from a team as a code owner June 26, 2025 18:11
@Paramadon Paramadon force-pushed the paramadon/add-pmd-prometheus branch from 4731767 to b8876e6 Compare June 26, 2025 18:12
Comment on lines +102 to +107
dims, failed := t.DimensionFactory.GetDimensions([]dimension.Instruction{
{
Key: "InstanceId",
Value: dimension.ExpectedDimensionValue{aws.String(awsservice.GetInstanceId())},
},
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some more dimensions we should probably check the values of as part of this test

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool tool! Great addition to have

// Validate based on metric type
switch metricName {
case "prometheus_test_histogram":
// For histogram, values should be between 0-10
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to be more strict on the histogram values rather than just checking min/max? I think we'd at least want to check sum/sample count too so those are all parts of the StatisticsSet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants