-
Notifications
You must be signed in to change notification settings - Fork 456
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
Metrics transform option #4893
Merged
kodiakhq
merged 5 commits into
Azure:release/1.1
from
shak5:users/shak/metric-transform-option
Apr 28, 2021
Merged
Metrics transform option #4893
kodiakhq
merged 5 commits into
Azure:release/1.1
from
shak5:users/shak/metric-transform-option
Apr 28, 2021
Conversation
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
pmzara
reviewed
Apr 27, 2021
pmzara
previously approved these changes
Apr 27, 2021
damonbarry
reviewed
Apr 27, 2021
damonbarry
approved these changes
Apr 28, 2021
darobs
pushed a commit
to darobs/iotedge
that referenced
this pull request
Apr 30, 2021
Introducing new option to trasnsform/flatten the Metrics prior to publish as IoT Messages. **Publishing with transform option OFF:** [{ "TimeGeneratedUtc": "<time generated>", "Name": "<prometheus metric name>", "Value": <decimal value>, "Label": { "<label name>": "<label value>" } }, { "TimeGeneratedUtc": "2020-07-28T20:00:43.2770247Z", "Name": "docker_container_disk_write_bytes", "Value": 0.0, "Label": { "name": "AzureMonitorForIotEdgeModule" } }] **Publishing with transform option ON:** { "TimeGeneratedUtc": "<time generated>", "edge_device": "<device bame>", "instance_number": "<instance number>", "<prometheus metric name>": { "value": <decimal value>, "from": "<value of: 'from', 'module_name', or 'id' if exists>", "from_route_output": "<value of: 'from_route_output', 'route_output', or 'source' if exists>", "to": "<value of: 'to', 'to_route_input', or 'target' if exists>", "priority": <integer value of 'priority' if exists>, "quantile": <decimal value of 'quantile' if exists>, "command": "<value of 'command' if exists>", "disk_name": "<value of 'disk_name' if exists>" }, "edgeAgent_used_memory_bytes": { "value": 54992896.0, "from": "edgeAgent" }, "edgeAgent_used_memory_bytes": { "value": 131170304.0, "from": "edgeHub" } }
kodiakhq bot
pushed a commit
that referenced
this pull request
Apr 30, 2021
Includes 1.1.2 and all commits as of the time of this PR: Add EFLOW Job to Long Haul Test Pipeline (#4571) Test Dashboard: Allow longhaul / connectivity pipelines to show with new dashboard queries (#4695) Update ARM Base Image Security Patch (#4808) Prepare for Release 1.1.2 Longhaul: Update snitcher linux images (#4843) Fix ValidateMetrics on ARM32 (#4864) Update C SDK submodules to 2020-12-09. (#4867) Fix Windows construction of identity cert PKCS#12 blob to not leak keys to disk. (#4854) Delete all containers after reprovision (#4833) Remove Debian 8 build/package logic (#4876) Bump serde-yaml version to 0.8 (#4860) Allow release image pipeline to use a custom CR (#3507) (#4882) Migrate Azure Monitor project to our repository. (#4877) Metrics transform option (#4893)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Introducing new option to trasnsform/flatten the Metrics prior to publish as IoT Messages.
Publishing with transform option OFF:
[{
"TimeGeneratedUtc": "",
"Name": "",
"Value": ,
"Label": {
"": ""
}
}, {
"TimeGeneratedUtc": "2020-07-28T20:00:43.2770247Z",
"Name": "docker_container_disk_write_bytes",
"Value": 0.0,
"Label": {
"name": "AzureMonitorForIotEdgeModule"
}
}]
Publishing with transform option ON:
{
"TimeGeneratedUtc": "",
"edge_device": "",
"instance_number": "",
"": {
"value": ,
"from": "<value of: 'from', 'module_name', or 'id' if exists>",
"from_route_output": "<value of: 'from_route_output', 'route_output', or 'source' if exists>",
"to": "<value of: 'to', 'to_route_input', or 'target' if exists>",
"priority": <integer value of 'priority' if exists>,
"quantile": <decimal value of 'quantile' if exists>,
"command": "<value of 'command' if exists>",
"disk_name": "<value of 'disk_name' if exists>"
},
"edgeAgent_used_memory_bytes": {
"value": 54992896.0,
"from": "edgeAgent"
},
"edgeAgent_used_memory_bytes": {
"value": 131170304.0,
"from": "edgeHub"
}
}