Giter Club home page Giter Club logo

applicationinsights-docker's Introduction

This repo is not currently maintained or supported by Microsoft. Check out our official documentation for the latest investments in container monitoring.

Application Insights for Docker

Visual Studio Application Insights for Docker helps you monitor your containerized applications by collecting telemetry about the performance and activity of your Docker host, Docker containers and the applications running within them. The Application Insights container talks to the Docker agent and sends telemetry data back to Application Insights, providing you with diagnostics and data analysis tools.

What is this repo?

This repo contains the source code for Application Insights for Docker image. For more information, see Application Insights for Docker image homepage in Docker Hub.

Microsoft Open Source Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

applicationinsights-docker's People

Contributors

cijothomas avatar galhag avatar mattmccleary avatar sergeykanzhelev avatar yonisha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

applicationinsights-docker's Issues

Resurrect This Project

Hey guys,

Can we bring this project back to life? I'm trying to use it on a Raspberry Pi, and the only available Java versions I can use are the ones on dockerhub built for ARM CPU. The latest I've found is 1.8.111 from Hypriot.

Thanks!

KeyError's in log

Cannot determine severity here, but I have yet to see any data on the portal (after ~24 hours). This is running under Docker 1.11.1 on Ubuntu LTS 14.04, I see these messages (repeated 3-4 times) in the container's stderr logs:

Traceback (most recent call last):
  File "python/bootstrap.py", line 49, in <module>
    methods[method]()
  File "python/bootstrap.py", line 44, in <lambda>
    'inject': lambda: program.run_injector(docker_socket=_docker_socket, docker_info_path=_docker_info_path),
  File "/usr/docker/ApplicationInsights-Docker/build/docker/python/appinsights/program.py", line 36, in run_injector
    injector.start()
  File "/usr/docker/ApplicationInsights-Docker/build/docker/python/appinsights/dockerinjector.py", line 78, in start
    self._docker_wrapper.get_events()))
  File "/usr/lib/python3.4/concurrent/futures/_base.py", line 541, in map
    fs = [self.submit(fn, *args) for args in zip(*iterables)]
  File "/usr/lib/python3.4/concurrent/futures/_base.py", line 541, in <listcomp>
    fs = [self.submit(fn, *args) for args in zip(*iterables)]
  File "/usr/docker/ApplicationInsights-Docker/build/docker/python/appinsights/dockerwrapper.py", line 72, in get_events
    event['Id'] = event['id']
KeyError: 'id'

Application Insights on Azure Data Box Edge

Hi,

I am not sure if this is the right place to start this issue, in that case please feel free to close it.

My issue is that I am trying to deploy Application Insights to Azure Data Box Edge using the dkrdbe wrapper for Docker. However the commands I can use are limited, so I am not sure how I can recreate the command:
docker run -v /var/run/docker.sock:/docker.sock -d microsoft/applicationinsights ikey=%app_ikey%

I have tried to deploy it through IoTHub and pass the instrumentation key as an environment variable, but this doesn't seem to work. I just get:

Starting Application Insights Docker agent.
Usage: docker run -v /var/run/docker.sock:/docker.sock microsoft/applicationinsights ikey=<Instrumentation_Key>

Add ability to specify endpoint

I need the ability to specify the endpoint the SDK will use to send telemetry. This is doable through the Java SDK [1], but I would need to be able to specify this on the commandline, preferably in the same manner as the current ikey= parameter.

[1] It looks like it's a matter of building your own InProcessTelemetryChannel with the proper endpoint and ikey and handing that to the TelemetryConfiguration.

Error retrieving data

Hi,
i have configured and ran the docker images/container but when i go to the Azure/Application insight portal i receive the 'Error Retrieving Data',

The container log is:
......

Starting to collect events from: MetricCollectionPythonBoostrapper
docker : Traceback (most recent call last):
At line:1 char:1

  • docker logs --tail=30 3657bfccd9fa *> log.txt

    • CategoryInfo : NotSpecified: (Traceback (most recent call last)::String) [], RemoteException
    • FullyQualifiedErrorId : NativeCommandError

    File "python/bootstrap.py", line 49, in
    methodsmethod
    File "python/bootstrap.py", line 43, in
    methods = {'collect': lambda: program.run_collect_performance_counters(docker_socket=_docker_socket,
    sdk_file=_sdk_info_file, docker_info_file=_docker_info_path, collect_interval=collect_interval),

    File "/usr/docker/ApplicationInsights-Docker/build/docker/python/appinsights/program.py", line 49, in
    run_collect_performance_counters

    collector.collect_stats_and_send()

    File "/usr/docker/ApplicationInsights-Docker/build/docker/python/appinsights/dockercollector.py", line 76, in
    collect_stats_and_send

    self._update_containers_state(containers=containers)

    File "/usr/docker/ApplicationInsights-Docker/build/docker/python/appinsights/dockercollector.py", line 175, in
    _update_containers_state

    list(executor.map(lambda c: self._update_container_state(c), containers))

    File "/usr/lib/python3.4/concurrent/futures/_base.py", line 549, in result_iterator

    yield future.result()

    File "/usr/lib/python3.4/concurrent/futures/_base.py", line 395, in result

    return self.__get_result()

    File "/usr/lib/python3.4/concurrent/futures/_base.py", line 354, in __get_result

    raise self._exception

    File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run

    result = self.fn(_self.args, *_self.kwargs)

    File "/usr/docker/ApplicationInsights-Docker/build/docker/python/appinsights/dockercollector.py", line 175, in

    list(executor.map(lambda c: self._update_container_state(c), containers))

    File "/usr/docker/ApplicationInsights-Docker/build/docker/python/appinsights/dockercollector.py", line 181, in
    _update_container_state

    ikey = self._get_container_sdk_ikey(container)

    File "/usr/docker/ApplicationInsights-Docker/build/docker/python/appinsights/dockercollector.py", line 205, in
    _get_container_sdk_ikey

    return None if sdk_info_file_content is None else sdk_info_file_content.split('=')[1]

IndexError: list index out of range

Python bootstrapper MetricCollectionPythonBoostrapper has exited with exit code: 1

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.