azuremonitor: port azure log analytics query function to the backend (#23839)
* azuremonitor: add support for log analytics macros Also adds tests for the kql macros * azuremonitor: backend implementation for Log Analytics * azuremonitor: remove gzip header from plugin route The Go net/http library adds an accept encoding header for gzip automatically. https://golang.org/src/net/http/transport.go\#L2454 So no need to specify it manually * azuremonitor: parses log analytics time series * azuremonitor: support for table data for Log Analytics * azuremonitor: for log analytics switch to calling the API... ...from the backend for time series and table queries. * azuremonitor: fix missing err check * azuremonitor: support Azure China, Azure Gov... for log analytics on the backend. * azuremonitor: review fixes * azuremonitor: rename test files folder to testdata To follow Go conventions for test data in tests * azuremonitor: review fixes * azuremonitor: better error message for http requests * azuremonitor: fix for load workspaces on config page * azuremonitor: strict null check fixes Co-authored-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
+87
@@ -0,0 +1,87 @@
|
||||
{
|
||||
"tables": [
|
||||
{
|
||||
"name": "PrimaryResult",
|
||||
"columns": [
|
||||
{
|
||||
"name": "TenantId",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "Computer",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "ObjectName",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "CounterName",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "InstanceName",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "Min",
|
||||
"type": "real"
|
||||
},
|
||||
{
|
||||
"name": "Max",
|
||||
"type": "real"
|
||||
},
|
||||
{
|
||||
"name": "SampleCount",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "CounterValue",
|
||||
"type": "real"
|
||||
},
|
||||
{
|
||||
"name": "TimeGenerated",
|
||||
"type": "datetime"
|
||||
}
|
||||
],
|
||||
"rows": [
|
||||
[
|
||||
"a2c1b44e-3e57-4410-b027-6cc0ae6dee67",
|
||||
"grafana-vm",
|
||||
"Memory",
|
||||
"Available MBytes Memory",
|
||||
"Memory",
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
2040,
|
||||
"2020-04-23T11:46:03.857Z"
|
||||
],
|
||||
[
|
||||
"a2c1b44e-3e57-4410-b027-6cc0ae6dee67",
|
||||
"grafana-vm",
|
||||
"Memory",
|
||||
"Available MBytes Memory",
|
||||
"Memory",
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
2066,
|
||||
"2020-04-23T11:46:13.857Z"
|
||||
],
|
||||
[
|
||||
"a2c1b44e-3e57-4410-b027-6cc0ae6dee67",
|
||||
"grafana-vm",
|
||||
"Memory",
|
||||
"Available MBytes Memory",
|
||||
"Memory",
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
2066,
|
||||
"2020-04-23T11:46:23.857Z"
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user