0

I have a custom log query that works fine and renders properly in App-Insights as a bar chart as I have specified.

enter image description here However, when trying to show it on a Dashboard, it only shows the chart data and I can't figure out how to get it to render as a barchart. enter image description here What am I missing?

Robert Green MBA
  • 1,834
  • 1
  • 22
  • 45

1 Answers1

1

Running the similar query on what you have shared.

customMetrics
| where name == "HeartbeatState" or name == "HttpTrigger1 Count"
| summarize hits = count() by name, timestamp
| make-series hits = sum(hits) default=0 on timestamp in range(ago(7d), now(), 1d) by name
| mvexpand timestamp , hits
| project format_datetime(todatetime(timestamp), "MM-dd"),todouble(hits), name  
| render barchart kind=unstacked 

enter image description here

Possible reason could think of is Azure Dashboard time range overriding the time range of pinned tile. Can you please make sure the overall dashboard time range is equal to "Past 7 days" or beyond, in this case. So that it doesn't override the indivual chart/query. We do see the same chart in the Azure Dashboard.

enter image description here

Hope this helps.

bharathn-msft
  • 877
  • 5
  • 10