Skip to content
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
merged 5 commits into from
Apr 28, 2021
Merged

Metrics transform option #4893

merged 5 commits into from
Apr 28, 2021

Conversation

shak5
Copy link

@shak5 shak5 commented Apr 23, 2021

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"
}
}

pmzara
pmzara previously approved these changes Apr 27, 2021
@kodiakhq kodiakhq bot merged commit df15b62 into Azure:release/1.1 Apr 28, 2021
@shak5 shak5 deleted the users/shak/metric-transform-option branch April 28, 2021 22:30
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants