nexogen-international / Nexogen.Libraries.Metrics

Library for collecting application metrics in .NET and exporting them to Prometheus
MIT License
61 stars 9 forks source link

Allow using CollectionMiddleware without exposing metrics endpoint #37

Open pavel-khritonenko opened 6 years ago

pavel-khritonenko commented 6 years ago

I would like to have an option to add CollectMetricsMiddleware without being forced to have metrics are being exposed on /metrics path in AspNetCore.

Would prefer to use StandaloneService or my own on another port for security reasons.

Making CollectMetricsMiddleware / HttpMetrics classes public and simple helper for middleware registration would be enough.

Do you accept PRs?

ahoka commented 6 years ago

That would be a great addition to the library.

ahoka commented 6 years ago

Hi, should we expect a PR on this?