Skip to content
A .Net port of the IIS ServiceMonitor
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DemoWebsite
ServiceMonitor
.gitattributes
.gitignore
Dockerfile
Dockerfile_WebsiteWithServiceMonitor
Dockerfile_WebsiteWithoutServiceMonitor
LICENSE
README.md
ServiceMonitor.sln

README.md

iis-service-monitor

This is a .Net port of IIS ServiceMonitor. It was originally written because there was a bug with uppercasing environment variable keys in the C++ implementation from Microsoft. This implementation fixes that bug.

This repo is accompanied by a blog post.

Usage

$ docker build --rm -t your_company/dotnet/framework/aspnet:4.7.2 -f Dockerfile .
$ docker tag your_company/dotnet/framework/aspnet:4.7.2 your_company/dotnet/framework/aspnet:latest  

From here you can push it to your own docker hub or use it directly in a Dockerfile on you machine as a base image.

Better logging

There is better console logging in this version of the IIS ServiceMonitor. If you run a docker container that is using the .Net ServiceMontior with the environment variable SERVICEMONITOR__Logging__LogLevel__Default you can set it to Trace or Debug and get more detailed console output.

Samples

$ docker build --rm -t solid/demo/website-with-service-monitor -f Dockerfile_WebsiteWithServiceMonitor .
$ docker build --rm -t solid/demo/website-without-service-monitor -f Dockerfile_WebsiteWithoutServiceMonitor .
$ docker run -d --rm -p 8081:80 -e some_environment_variable='value' solid/demo/website-with-service-monitor:latest
$ docker run -d --rm -p 8082:80 -e some_environment_variable='value' solid/demo/website-without-service-monitor:latest
You can’t perform that action at this time.