-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Implement quickpulse exporting functionality #34141
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
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
943756c
ping
lzchen 0842b4a
qp
lzchen d8af4b2
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
lzchen cfdeab7
spelling
lzchen 358d8ae
lint
lzchen 18f5caa
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
lzchen 2ddb0f2
comments
lzchen 1ec3a54
rename
lzchen 6607f23
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
lzchen 750e63d
tests
lzchen 16d9c28
ping
lzchen 8ff4b0d
tests
lzchen 4d6ee0b
Update CHANGELOG.md
lzchen 5c31282
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
lzchen 92758ce
tests
lzchen 8a79419
Update CHANGELOG.md
lzchen 90024df
Update CHANGELOG.md
lzchen 18d9026
Update test_exporter.py
lzchen 31b658c
minversion
lzchen 356351b
tests
lzchen 0fd195e
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
lzchen 187e87e
tests
lzchen dd30368
tests
lzchen 376679f
test
lzchen 25ab5bf
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
lzchen dc66875
tests
lzchen 5a965ce
remove
lzchen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
36 changes: 36 additions & 0 deletions
36
...tor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/_quickpulse/_constants.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. | ||
| # cSpell:disable | ||
|
|
||
| # (OpenTelemetry metric name, Quickpulse metric name) | ||
| # Memory | ||
| _COMMITTED_BYTES_NAME = ("azuremonitor.memorycommittedbytes", "\\Memory\\Committed Bytes") | ||
| # CPU | ||
| _PROCESSOR_TIME_NAME = ("azuremonitor.processortotalprocessortime", "\\Processor(_Total)\\% Processor Time") | ||
| # Request | ||
| _REQUEST_RATE_NAME = ("azuremonitor.requestssec", "\\ApplicationInsights\\Requests/Sec") | ||
| _REQUEST_FAILURE_RATE_NAME = ("azuremonitor.requestsfailedsec", "\\ApplicationInsights\\Requests Failed/Sec") | ||
| _REQUEST_DURATION_NAME = ("azuremonitor.requestduration", "\\ApplicationInsights\\Request Duration") | ||
| # Dependency | ||
| _DEPENDENCY_RATE_NAME = ("azuremonitor.dependencycallssec", "\\ApplicationInsights\\Dependency Calls/Sec") | ||
| _DEPENDENCY_FAILURE_RATE_NAME = ("azuremonitor.dependencycallsfailedsec", "\\ApplicationInsights\\Dependency Calls Failed/Sec") # pylint: disable=line-too-long | ||
| _DEPENDENCY_DURATION_NAME = ("azuremonitor.dependencycallduration", "\\ApplicationInsights\\Dependency Call Duration") | ||
| # Exception | ||
| _EXCEPTION_RATE_NAME = ("azuremonitor.exceptionssec", "\\ApplicationInsights\\Exceptions/Sec") | ||
|
|
||
| _QUICKPULSE_METRIC_NAME_MAPPINGS = dict( | ||
| [ | ||
| _COMMITTED_BYTES_NAME, | ||
| _PROCESSOR_TIME_NAME, | ||
| _PROCESSOR_TIME_NAME, | ||
| _REQUEST_RATE_NAME, | ||
| _REQUEST_FAILURE_RATE_NAME, | ||
| _REQUEST_DURATION_NAME, | ||
| _DEPENDENCY_RATE_NAME, | ||
| _DEPENDENCY_FAILURE_RATE_NAME, | ||
| _DEPENDENCY_DURATION_NAME, | ||
| _EXCEPTION_RATE_NAME, | ||
| ] | ||
| ) | ||
|
|
||
| # cSpell:disable |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.