Skip to content

Instantly share code, notes, and snippets.

@thdotnet
Created February 16, 2022 18:32
Show Gist options
  • Save thdotnet/83bc3da9fca5fb183c0a295bd7ffe067 to your computer and use it in GitHub Desktop.
Save thdotnet/83bc3da9fca5fb183c0a295bd7ffe067 to your computer and use it in GitHub Desktop.
kusto query samples
dependencies
| extend contextId = tostring(customDimensions["ProcessFunction-Context ID"])
| extend rowsCount = toint(customDimensions["ProcessFunction-Context ID|RowsCount"])
| extend processedCount = toint(customDimensions["ProcessFunction-RowsInjected"])
| where contextId == "d459341f-5d68-469e-bec1-27090bda91dc"
| project rowsCount, processedCount, timestamp
| render columnchart kind=unstacked
dependencies
| extend parentId = tostring(customDimensions["ChangeFeedProcessor-Context ID"])
| where target == "ChangeFeedProcessor"
| where success == "True"
| where parentId == "d459341f-5d68-469e-bec1-27090bda91dc"
| count
dependencies
| extend contextId = tostring(customDimensions["ChangeFeedProcessor-Context ID"])
| where target == "ChangeFeedProcessor"
| where success == "False"
| where contextId == "d459341f-5d68-469e-bec1-27090bda91dc"
| count
dependencies
| extend contextId = tostring(customDimensions["ChangeFeedProcessor-Context ID"])
| where target == "ChangeFeedProcessor"
| where success == "False"
| where contextId == "d459341f-5d68-469e-bec1-27090bda91dc"
| project customDimensions["ChangeFeedProcessor-Error"],
customDimensions["ChangeFeedProcessor-Stack Trace"],
timestamp
https://docs.microsoft.com/en-us/azure/data-explorer/kusto/api/netfx/about-kusto-data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment