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.
3,328 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andrew Blumhardt 9,866 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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.