This is the fluentd output plugin for Azure Application Insights.
Перейти к файлу
brahmnes 0d20edc50f
Merge pull request #9 from microsoft/yantang/archive
Archiving the repo
2019-08-12 11:50:08 -07:00
lib/fluent/plugin Fix service endpoint uri tests 2019-08-12 20:19:53 +02:00
test Support multiple values for severity level mapping 2018-07-31 11:41:20 +02:00
.gitignore Update document for releasing process 2018-05-03 09:46:20 -07:00
.travis.yml Add travis.yml for CI 2018-05-01 10:03:52 -07:00
CONTRIBUTING.md Update document for releasing process 2018-05-03 09:46:20 -07:00
Gemfile Initial commit of the application insights plugin 2018-05-01 09:27:31 -07:00
LICENSE Initial commit 2018-04-10 17:56:40 -07:00
README.md Merge pull request #9 from microsoft/yantang/archive 2019-08-12 11:50:08 -07:00
Rakefile Initial commit of the application insights plugin 2018-05-01 09:27:31 -07:00
fluent-plugin-application-insights.gemspec Bump up version to v0.2.4 2019-08-12 11:33:45 -07:00

README.md

[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:

  • instrumentation_key - Required, the Application Insights instrumentation key
  • service_endpoint_uri - The endpoint of the Application Insights for Azure Sovereign Clouds
  • send_buffer_size - The batch size to send data to Application Insights service (default 1000). Setting this to a large size will usually result in better output throughput.
  • standard_schema - The parameter indicating whether the record is in standard schema. i.e., the format that is recognized by Application Insights backend (default false). If the record is not in standard schema, it will be tracked as Application Insights trace telemetry. Otherwise, the record is just forwarded to the backend. See Standard Schema for more info.
  • message_property - The property name for the trace message (default message).
  • time_property - The property name for the timestamp (default nil).
    Fluentd input plugin will assign a timestamp for each emitted record, and this timestamp is used as the telemetry creation time by default. Set the time_property if you want to use the value of this property instead of the one assigned by the input plugin.
  • severity_property - The property name for severity level (default severity). If the severity property doesn't exist, the record will be treated as information level. See Severity Level for more info.
  • severity_level_verbose - The value of severity property that maps to Application Insights' verbose severity level (default verbose).
  • severity_level_information - The value of severity property that maps to Application Insights' information severity level (default information).
  • severity_level_warning - The value of severity property that maps to Application Insights' warning severity level (default warning).
  • severity_level_error - The value of severity property that maps to Application Insights' error severity level (default error).
  • severity_level_critical - The value of severity property that maps to Application Insights' critical severity level (default critical).
  • context_tag_sources - The dictionary that instructs the Application Insights plugin to set Application Insights context tags using record properties.
    In this dictionary keys are Application Insights context tags to set, and values are the source properties that are used to set the context tags value. For the source property, you can specify the property name or jsonpath like syntax for nested property, see record_accessor syntax for more info. For example:
    context_tag_sources {
      "ai.cloud.role": "kubernetes_container_name",
      "ai.cloud.roleInstance": "$.docker.container_id"
    }
    
    Here is the list of all context tag keys

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.