-
Notifications
You must be signed in to change notification settings - Fork 30
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
Jmx metrics #385
Jmx metrics #385
Conversation
test/metric/metric_value_query.go
Outdated
@@ -46,7 +46,7 @@ func (n *MetricValueFetcher) Fetch(namespace, metricName string, metricSpecificD | |||
Period: &metricQueryPeriod, | |||
Stat: aws.String(string(stat)), | |||
}, | |||
Id: aws.String(strings.ToLower(metricName)), | |||
Id: aws.String(strings.ToLower(strings.ReplaceAll(metricName, ".", "_"))), |
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.
. not allowed in id
@@ -119,6 +119,9 @@ | |||
<Component Id='TranslatorEXE' Guid='f4527006-edcb-4271-a971-039848bc8bb7' Win64='yes'> | |||
<File Source='config-translator.exe' KeyPath='yes' Checksum='yes'/> | |||
</Component> | |||
<Component Id='OtelJmxJar' Guid='5af08c39-c483-4b08-8315-c99345684c4d' Win64='yes'> |
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.
Required to add jar to msi
} | ||
|
||
log.Println("set up zookeeper and kafka") | ||
startJMXCommands := []string{ |
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.
Start kafka, requires starting zookeeper
@@ -157,5 +158,10 @@ func shouldRunEC2Test(env *environment.MetaData, t *test_runner.TestRunner) bool | |||
} | |||
_, shouldRun := env.EC2PluginTests[strings.ToLower(t.TestRunner.GetTestName())] | |||
_, shouldExclude := env.ExcludedTests[strings.ToLower(t.TestRunner.GetTestName())] | |||
return shouldRun || !shouldExclude | |||
if shouldRun { |
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.
Fix issue with where include was adding all tests instead of only the tests in include
8b45a64
to
031cb01
Compare
031cb01
to
8ed2cbe
Compare
8ed2cbe
to
b3834e4
Compare
becc77a
to
2037bc2
Compare
b1fde3c
to
a501535
Compare
Add opentelemetry-jmx-metrics.jar To MSI Add Tomcat JMX Metrics Tests
@@ -119,6 +120,9 @@ | |||
<Component Id='TranslatorEXE' Guid='f4527006-edcb-4271-a971-039848bc8bb7' Win64='yes'> | |||
<File Source='config-translator.exe' KeyPath='yes' Checksum='yes'/> | |||
</Component> | |||
<Component Id='OtelJmxJar' Guid='5af08c39-c483-4b08-8315-c99345684c4d' Win64='yes'> | |||
<File Source='opentelemetry-jmx-metrics.jar' KeyPath='yes'/> |
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.
does this need to be changed to packaging/opentelemetry-jmx-metrics.jar
?
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.
This comes from msi zip not the repo. The repo copies to msi zip by the pre package make command
Description of the issue
No jmx metrics tests.
Description of changes
Add jmx metrics test to metric value benchmark test.
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
https://github.com/aws/amazon-cloudwatch-agent/actions/runs/7544852634/job/20735092549