-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[monitor-opentelemetry] Live Metrics: Perf Counter update (#31341)
### Packages impacted by this PR [monitor-opentelemetry] ### Describe the problem that is addressed by this PR See: https://github.com/aep-health-and-standards/Telemetry-Collection-Spec/blob/main/ApplicationInsights/livemetrics.md#process-metrics ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? For CPU, looked at [.net](https://github.com/Azure/azure-sdk-for-net/blob/7c8f16deec3a1150bfa04ec372d3abe5b238dd18/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/src/LiveMetrics/Manager.Metrics.cs#L290) & [java](https://github.com/Azure/azure-sdk-for-java/blob/43bdc30cb296915ec22aa46ba1e7d885e124f6b4/sdk/monitor/azure-monitor-opentelemetry-exporter/src/main/java/com/azure/monitor/opentelemetry/exporter/implementation/quickpulse/QuickPulseDataCollector.java#L358) implementations, along with this [stack overflow](https://stackoverflow.com/questions/74776323/trying-to-get-normalized-cpu-usage-for-node-process#:~:text=I'm%20trying%20to%20calculate%20the%20normalized%20cpu%20percentage%20for%20my). They all seem to be following the same rough calculation & multiplying by 100 in the end for a percentage. ### Are there test cases added in this PR? _(If not, why?)_ Modified an existing test to assert that the body of the post request includes old/new counter names with the process counter values. ### Checklists - [x] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [x] Added a changelog (if necessary)
- Loading branch information
Showing
6 changed files
with
119 additions
and
90 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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