Microsoft Application Insights for Kubernetes
This repository has code for Application Insights for Kubernetes, which works on .NET Core applications within the containers, managed by Kubernetes, on Azure Container Service.
Microsoft Application Insights for Kubernetes (this library) is an enhancement to the Microsoft Application Insights. You can choose to run Application Insights without this library in Kubernetes cluster too. However, when using
Microsoft Application Insights for Kubernetes, you will see Kubernetes related properties like Pod-Name, Deployment ... on all your telemetry entries. Proper values will also be set to make use of the rich features like enabling the Application Map to show the multiple micro services on the same map.
Continous Integration Status
|Rolling Build||Nightly Build|
We support ASP.NET Core application as well as .NET Core application.
For ASP.NET Core Application: Refer Getting Started for a simple walkthrough.
For .NET Core Application: Refer Getting Started for a simple walkthrough.
Follow this example for Role-based access control (RBAC) enabled Kubernetes clusters.
Verify the cluster configuration
Use the troubleshooting image to verify the cluster is properly configured.
- To build a container for Kubernetes that have Application Insights baked in for the existing applications, please refer the example of Zero Code light up.
- To enable Application Insights for Kubernetes by environement variable instead of code, please refer Hosting startup for ApplicationInsights.Kubernetes.
- Still want more? Read the Wikis.
Profile your application for performance improvement using Application Insights Profiler for Linux.
Please file bug, discussion or any other interesting topics in issues on github.
When Microsoft.ApplicationInsights.Kubernetes doesn't work properly, you can turn on self-diagnostics to see the traces in Kubernetes' logs. Refer this wiki page for instructions to turn on trace.
Please refer the Develop Guide.