telegraf/plugins/outputs/application_insights
Sebastian Spaink d67f75e557
docs: Remove warning not to remove go:embed (#11797)
Co-authored-by: Joshua Powers <powersj@fastmail.com>
2022-09-13 12:47:58 -05:00
..
mocks Make microsoft lowercase (#9209) 2021-04-27 17:01:45 -05:00
README.md chore: embed sample configurations into README for outputs (#11182) 2022-05-25 08:48:59 -06:00
application_insights.go docs: Remove warning not to remove go:embed (#11797) 2022-09-13 12:47:58 -05:00
application_insights_test.go fix: Linter fixes for plugins/outputs/[a-f]* (#10124) 2021-11-18 09:26:24 -07:00
diagnostic_message_subscriber.go Make microsoft lowercase (#9209) 2021-04-27 17:01:45 -05:00
sample.conf chore(outputs): migrate sample configs into separate files (#11131) 2022-05-18 11:30:06 -05:00
transmitter.go Make microsoft lowercase (#9209) 2021-04-27 17:01:45 -05:00

README.md

Application Insights Output Plugin

This plugin writes telegraf metrics to Azure Application Insights.

Configuration

# Send metrics to Azure Application Insights
[[outputs.application_insights]]
  ## Instrumentation key of the Application Insights resource.
  instrumentation_key = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx"

  ## Regions that require endpoint modification https://docs.microsoft.com/en-us/azure/azure-monitor/app/custom-endpoints
  # endpoint_url = "https://dc.services.visualstudio.com/v2/track"

  ## Timeout for closing (default: 5s).
  # timeout = "5s"

  ## Enable additional diagnostic logging.
  # enable_diagnostic_logging = false

  ## Context Tag Sources add Application Insights context tags to a tag value.
  ##
  ## For list of allowed context tag keys see:
  ## https://github.com/microsoft/ApplicationInsights-Go/blob/master/appinsights/contracts/contexttagkeys.go
  # [outputs.application_insights.context_tag_sources]
  #   "ai.cloud.role" = "kubernetes_container_name"
  #   "ai.cloud.roleInstance" = "kubernetes_pod_name"

Metric Encoding

For each field an Application Insights Telemetry record is created named based on the measurement name and field.

Example: Create the telemetry records foo_first and foo_second:

foo,host=a first=42,second=43 1525293034000000000

In the special case of a single field named value, a single telemetry record is created named using only the measurement name

Example: Create a telemetry record bar:

bar,host=a value=42 1525293034000000000