-
Couldn't load subscription status.
- Fork 36
Adding prometheus metrics via PMD test #548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
4731767 to
b8876e6
Compare
| dims, failed := t.DimensionFactory.GetDimensions([]dimension.Instruction{ | ||
| { | ||
| Key: "InstanceId", | ||
| Value: dimension.ExpectedDimensionValue{aws.String(awsservice.GetInstanceId())}, | ||
| }, | ||
| }) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
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