Skip to content
Craig Wayne edited this page Apr 19, 2024 · 1 revision

Snippets for App Insights


Types of Charts

Chart Visual
Area area chart
Bar bar chart
Column column chart
Pie pie chart
Scatter scatter chart
Table table chart
Time table chart
Treemap Unsupported

Track Custom Events

In Javascript:

const your_custom_data_object = {};

appInsights.trackEvent({
    ...{name: 'your_event_name'},
    ...{your_custom_data_object}
});

ref: https://learn.microsoft.com/en-us/azure/azure-monitor/app/api-custom-events-metrics


Dashboards

An example dashboard export is available here:

dashboard

  1. Enable App Insights for your resources
  2. Create the Queries
  3. Once you've got your query
  4. Click "Pin to" dropdown
  5. Click "Azure dashboard"
  6. Click "Existing Tab" -> "Shared" radio button
  7. Choose your subscription
  8. Choose your dashboard

Clone this wiki locally