Samples.V2 icon indicating copy to clipboard operation
Samples.V2 copied to clipboard

Is any sample of healthcheck with reporter (InfluxDb as example)?

Open igor-moskvitin opened this issue 8 years ago • 6 comments

I found only this article, but its for previous version of app-metrics. Samples from this repo using reporters with metrics only (not with health) or may i missed something?

igor-moskvitin avatar Apr 24 '18 17:04 igor-moskvitin

You are correct, support for reporting health status was removed in a later version of App Metrics. Originally Health functionality was included in the App Metrics package, Microsoft now have a similar Health implementation so I decided to decouple Health from Metrics but lost some functionality in the process.

This is on my backlog, although I am still thinking whether or not I should continue with App Metrics Health since Microsoft have implemented an equivalent.

alhardy avatar Apr 24 '18 22:04 alhardy

Its about this? If i right - it has only endpoints capability, but not own reporter and looks like abandoned...

igor-moskvitin avatar Apr 25 '18 07:04 igor-moskvitin

Yeah was referring to that. I think it was going to be released as part of aspnet core 2.0, now potentially 2.1.

No it doesn't have a reporter, but we could implement a custom extension to use App Metrics or similar to report the results.

It wouldn't take too long to implement the reporting functionality, I'm just cautious of wasting time. I guess if App Metrics Health provides additionality functionality over the Microsoft implementation App Metrics would still be used, but then I'm thinking the other option would be to provide extensions on the Microsoft implementation.

Will think a bit more about it.

alhardy avatar Apr 25 '18 11:04 alhardy

We are considering AppMetrics for both metric collection and health monitoring of our decentralized UWP app (use case for kiosk mode terminals) so a reporting of health check information to a central server would make sense to us (it would also be an implicit heartbeat). Metric reporting appears to be already possible thanks to .NET Standard 2.0 (using AppMetricsTaskScheduler), but health reporting not (if I understand correctly). The console sample only supports writing to the console and no external reporting if I am correct.

Perhaps we are not the most classic use case, but I think usage beyong ASP.NET Core might be a thing to consider. The ASP.NET Core 2.1 future solution you mentioned would be based on ASP.NET Core and would not improve our UWP situation.

Thanks for any help or ideas.

DanielMarcial avatar Apr 25 '18 12:04 DanielMarcial

https://github.com/AppMetrics/Health/issues/9

alhardy avatar Jun 14 '18 13:06 alhardy

health checks deprecated due to Microsoft implementation

alhardy avatar Jul 03 '20 00:07 alhardy