GithubHelp home page GithubHelp logo

pliyo / notify-deployment-appinsights Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 66 KB

App Insights tool to write metrics from a console app receiving parameters. Designed to work in a pipeline

License: MIT License

C# 89.18% Dockerfile 10.82%

notify-deployment-appinsights's Introduction

notify-deployment-appinsights

This console app will notify that you have made a deployment to application insights. It's intended to run in your pipeline as a docker container where you can set environment variables at will, aimed for a central application insights where you can query and correlate all your deployments.

It will read values from your Environment Variables, so it relies on Environment.GetEnvironmentVariable(key) from System.

Environment Variables you'll need:

INSTRUMENTATION_KEY: Instrumentation Key of Application Insights. SERVICE_NAME: Name of the service being deployed.

Custom Properties that you can add:

LOCATION_NAME: Where you are deploying (WestEurope, WestUS, SouthEastAsia...) COMPUTER_NAME: Where is this app being hosted VERSION_NUMBER: Version of your service

Example of usage:

docker build -t appi .
docker run -ti -e INSTRUMENTATION_KEY=b96ae344-8f7a-41d4-9546-26ed29016182 -e SERVICE_NAME=MasterRaceService -e LOCATION_NAME=WestEurope -e COMPUTE_NAME=AKS-CI -e VERSION_NUMBER=1.0.3 appi

Your event will be registered as:

img

notify-deployment-appinsights's People

Contributors

pliyo 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.