appinsights

command module
v0.0.0-...-56df1c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

README

Microsoft Application Insights Docker Logging Plugin

pipeline status coverage report coverage report

This project implements a Docker logging driver that will allow Docker to stream logs to local JSON files and Microsoft Application Insights. This log plugin supports the docker logs command.

Installation

docker plugin install --alias appinsights michaelgolfi/appinsights

Usage

docker run -d --name "example-logger" \
  --log-driver appinsights \
  --log-opt token=$AppInsightsToken \
  ubuntu bash -c 'while true; do echo "{\"msg\": \"something\", \"time\": \"`date +%s`\"}"; sleep 2; done;'
Log Options
Option Default
endpoint "https://dc.services.visualstudio.com/v2/track"
token
verify-connection "true"
insecure-skip-verify "false"
gzip "false"
gzip-level "0"
batch-size "1024"
batch-interval "5s"

Building

This plugin uses godep for vendoring.

  • Run make install to install all dependencies.
  • Run ./scripts/build.sh to build the plugin.

References

JSON File Logging Driver

Documentation: https://docs.docker.com/engine/admin/logging/json-file/#options

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL