0
votes

Is there an equivalent of StatsD's gauge type of metric for Azure Application Insights?

I'm using TrackMetric method of a TelemetryClient to periodically inspect and report metrics from an Azure Function.

I'd like to see a continuous line instead of a seesaw like chart in the Metrics Explorer (difficult to reason if the value sent was 0 or if there was no value sent)

1
so I should rather look at Azure Log Analytics queries and try to coalesce using my defined frequency of reporting valuesHoria Toma

1 Answers

1
votes

I used @peter-bons' suggestion and set up for an Analytics query that looks something like this:

customMetrics
| where name == "my_metric_count" 
| where timestamp > ago(4h)
| summarize sum(value) by bin(timestamp, 15m)