Skip to content

DanielSidman-SherlockHolmes/application-insights-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Application Insights Demo

Prerequisites

  1. Microsoft Azure Account
  2. Azure CLI
  3. Azure Bicep
  4. .NET 6 SDK

Setup

Login in to your Azure account and set the default subscription for the demo deployment target.

    az login
    az account set --subscription <subscription-id>

Deploy the Azure resources required for the demo by navigating to the tasks directory and running the deploy.sh script.

Create a new user secrets file with the following contents:

{
    "ApplicationInsights": {
        "InstrumentationKey": "<your-app-insights-instrumentation-key>"
    },
    "Azure": {
        "Cosmos": {
            "Endpoint": "https://<your-cosmos-account-name>.documents.azure.com:443/",
            "Key": "<your-cosmos-account-key>"
        },
        "ServiceBus": {
            "ConnectionString": "Endpoint=sb://<your-service-bus-namespace>.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=<your-root-managed-access-key>"
        }
    } 
}

Kusto Queries

Request Density per Second

requests
| summarize totalCount=sum(itemCount) by bin(timestamp, 1s)
| where timestamp > datetime(2022-04-25 04:40:00Z) and timestamp < datetime(2022-04-26 04:45:00Z)
| order by timestamp
| render timechart

More Samples

Reference

About

Application Insights Demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 89.5%
  • Bicep 6.0%
  • Dockerfile 2.8%
  • Shell 1.7%