Adx Hol 062022
Adx Hol 062022
Hands on Workshop
Henning Rauch
Kåre Rasmussen
Copy above commands from ‘AdvancedKQLQueries’ script. If copying text from pdf, please give
space among each command, move query text in one line
ADX in 2 hours
• Step 5 – cleanup & do full load of data
.clear table RawMetrics data
Ingest the entire dataset from this ‘blob container’ into RawMetrics using one-click
ingest
ADX in 2 hours
• Step 6 – advanced queries
• Ingest dimension table ‘ServersLocation’ from this blob container, ‘MULTIJSON’
format
• Use this ‘AdvancedKQLQueries’ script
ADX in 2 hours
• Step 7 – create materialized views
• Deduplication
• Downsampling
• Last Known Value
//dedup
.create async materialized-view with(backfill=true) TransformedMetricsDedup on table TransformedMetrics
{
TransformedMetrics
| summarize take_any(*) by SQLMetrics, Value, MetricType, Timestamp, Host, MeasurementDbType, SQLInstance
}
//downsampling
.create async materialized-view with(backfill=true) TransformedMetricsDownSampling on materialized-view TransformedMetricsDedup
{
TransformedMetricsDedup
| summarize Value_avg = avg(Value), Value_min=min(Value), Value_max=max(Value) by SQLMetrics, MetricType, Host, MeasurementDbType, S
QLInstance, bin(Timestamp, 1h)
}