-
Notifications
You must be signed in to change notification settings - Fork 209
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
Add JMX Metrics #1024
Add JMX Metrics #1024
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1024 +/- ##
==========================================
+ Coverage 57.58% 63.34% +5.76%
==========================================
Files 370 366 -4
Lines 17548 18919 +1371
==========================================
+ Hits 10105 11985 +1880
+ Misses 6848 6313 -535
- Partials 595 621 +26 ☔ View full report in Codecov by Sentry. |
Add Auth Information To JMX Add Default JMX Targets` Add opentelemetry-jmx-metrics.jar To Deb, Darwin Zip, Windows, Zip Add Test Repo Branch When Building MSI
cc7189e
to
108db0f
Compare
@@ -224,9 +226,65 @@ func TranslateJsonMapToYamlConfig(jsonConfigValue interface{}) (interface{}, err | |||
if err = conf.Marshal(cfg); err != nil { | |||
return nil, err | |||
} | |||
return conf.ToStringMap(), nil | |||
strMap := conf.ToStringMap() |
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 is all copied from [REDACTED]
func RemoveTLSRedacted(stringMap map[string]interface{}) { | ||
type Node struct { | ||
isTLSParent bool | ||
isJMXParent bool |
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.
Except this
"github.com/aws/amazon-cloudwatch-agent/translator/translate/otel/receiver/jmx" | ||
) | ||
|
||
func NewTranslators(conf *confmap.Conf, os string) (pipeline.TranslatorMap, error) { |
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 is copied from [REDACTED]
@@ -51,32 +49,16 @@ func Translate(jsonConfig interface{}, os string) (*otelcol.Config, error) { | |||
log.Printf("W! CSM has already been deprecated") | |||
} | |||
|
|||
adapterReceivers, err := adapter.FindReceiversInConfig(conf, os) | |||
translators, err := host.NewTranslators(conf, os) |
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 is copied from [REDACTED]
This PR was marked stale due to lack of activity. |
Add Auth Information To JMX
Add Default JMX Targets`
Add opentelemetry-jmx-metrics.jar To Deb, Darwin Zip, Windows, Zip
Description of the issue
CloudWatch agent does not support jmx
Description of changes
Add support for jmx
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
aws/amazon-cloudwatch-agent-test#385
Requirements
Before commit the code, please do the following steps.
make fmt
andmake fmt-sh
make lint