You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
The metricName passed from the API call here is ("memory", "gcPauses"). This is to identify the type of metric and not the actual metricName used for the actuator call. (Probably I should have named it metricType. But I wanted to keep the metricQuery more generic to be used for other metric calls.
The getMemoryMetrics function is where the metric names ("jvm.memory.used, jvm.memory.max") are passed.
Also, with the current implementation, the retrieveLiveMemoryMetricsData has the logic to fetch the heap and non-heap memory metrics together.
The reason will be displayed to describe this comment to others. Learn more.
The metricName passed here are ("gcPauses", "heapMemory", "nonHeapMemory"). This is used to fetch the region-specific metric data separately.
(This is the result of my bad naming convention again ;-) )
@BoykoAlex I would like to discuss and get your feedback on how to improve this.
@vudayani-vmw I switched it back to the names you had. I noticed that in you're switching the actual metric name. GC Pauses was missing the proper metric name.
Also fixed a few things around logging 404s - don't think we'd want to log 404's as it might be that metric or any other piece of live data hasn't been exposed by the app. Also fixed the case of {ownerId} in the URL which was attempted to be subbed by variable value by the REST Template. Furthermore, double encoding should be fixed as well.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
gcPauses
->jvm.gc.pause
,memory
->jvm.memory.used
. Are those metric names different for other apps?Measurements
value asDouble
rather thanLong
@vudayani-vmw please have a look at this PR and provide feedback.