mithril
mithril copied to clipboard
Monitoring
There are a few options out there for performance monitoring in Elixir: https://appsignal.com/elixir/ https://pryin.io/
We should support monitoring in mithril. How should that look though? Should we just have another domain PerformanceMonitor or should we include error reporting and performance monitoring under the same Monitor domain?
I'd argue for the later as many of these services support both error reporting and performance monitoring and they do both fit under the same domain of reporting the health of your app to external services.
I vote for something like HealthMonitor.PerformanceReporting and HealthMonitor.ErrorReporting
And the cli args could be like so:
--error-reporting <option>-- GeneratesHealthMonitor.ErrorReportingalong with the appropriateoptionconfiguration (valid options:appsignal,honeybadger)--performance-reporting <option>-- GeneratesHealthMonitor.PerformanceReportingalong with the appropriateoptionconfiguration/instrumenters (valid options:appsignal,pryin)--health-monitoring <option>-- GeneratesHealthMonitor.ErrorReportingandHealthMonitor.PerformanceReportingalong with the appropriateoptionconfiguration/instrumenters. (valid options:appsignal)