microsoft / fluent-plugin-application-insights

This is the fluentd output plugin for Azure Application Insights.
MIT License
15 stars 19 forks source link

[UNSUPPORTED] fluent-plugin-application-insights

Gem Version Build Status

This is the Fluentd output plugin for Azure Application Insights

Application Insights is an extensible Application Performance Management (APM) service for web developers on multiple platforms. Use it to monitor your live web application. It will automatically detect performance anomalies. It includes powerful analytics tools to help you diagnose issues and to understand what users actually do with your app. It's designed to help you continuously improve performance and usability.

Installation

$ gem install fluent-plugin-application-insights

Configuration

To send data to Application Insights, add the following piece to your fluentd configuration file:

<match **>
  @type application_insights
  instrumentation_key <your instrumentation key>
</match>

Here is the configuration options for this plugin:

Standard Schema

The standard schema for Application Insights telemetry is defined here.

Below is an example of a Request telemetry in standard schema format. data, data.baseType and data.baseData are required properties. Different telemetry types will have different properties associated with the baseData object.

{
  "name": "Microsoft.ApplicationInsights.Request",
  "time": "2018-02-28T00:24:00.5676240Z",
  "tags":{
    "ai.cloud.role": "webfront",
    "ai.cloud.roleInstance":"85a1e424491d07b6c1ed032f"
  },
  "data": {
    "baseType": "RequestData",
    "baseData": {
      "ver":2,
      "id":"|85a1e424-491d07b6c1ed032f.",
      "name":"PUT Flights/StartNewFlightAsync",
      "duration":"00:00:01.0782934",
      "success":true,
      "responseCode":"204",
      "url":"http://localhost:5023/api/flights
  }
}

Contributing

Refer to Contributing Guide.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.