Git Product home page Git Product logo

appinsights's Introduction

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

appinsights's People

Contributors

michael-golfi avatar migolfi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.