Skip to content
This repository has been archived by the owner on Mar 26, 2019. It is now read-only.

add prometheus push gateway reporter #51

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

add prometheus push gateway reporter #51

wants to merge 1 commit into from

Conversation

bdrupieski
Copy link
Contributor

@bdrupieski bdrupieski commented Mar 10, 2019

This addresses #18.

This is what I've been using for a while to push metrics to a push gateway. I figured I may as well contribute it, but it may not be a good fit here.

.NET Standard 1.6 has System.Net.Http, but .NET Framework 4.5.2 does not. This uses HttpClient which is in System.Net.Http. Since App.Metrics.Formatters.Prometheus library targets both, this PR won't build for 4.5.2. I could add that package so that it builds for 4.5.2, but that introduces another dependency for the project.

Alternatively it could go into a completely separate App.Metrics.Formatters.Prometheus.PushGateway or something like that, but I don't know if that's worth the trouble for only this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant