Azure KQL Vm Heart beat chart over X days

Goce Dimitroski 41 Reputation points
2022-03-29T01:30:55.917+00:00

In Scom this was so easy to do. But in Azure KQL how can I produce a graph showing the Heartbeat of a VM over eg 7 days every 5min ?
The big managers just want to see a graph of the server up-time

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,478 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andrew Blumhardt 9,351 Reputation points Microsoft Employee
    2022-03-29T04:49:21.863+00:00

    Just replace the COMPUTER

    Heartbeat
    | where TimeGenerated >= ago(7d)
    | where Computer == "COMPUTER"
    | summarize count() by bin(TimeGenerated, 5m)
    | render timechart

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Goce Dimitroski 41 Reputation points
    2022-03-29T21:50:53.637+00:00

    Thanks for the reply.
    I had to change the == to contain and it worked