igorkasyanchuk / rails_performance

Monitor performance of you Rails applications (self-hosted and free)
https://www.railsjazz.com/
MIT License
1.06k stars 61 forks source link

Basic Incrementor Metrics #76

Open KoRMaK opened 9 months ago

KoRMaK commented 9 months ago

Hello, I wanted to ask if such a feature exists and suggest it if it doesn't, a feature to capture incrementor metrics and render them to some graphs in the rails performance dashboard.

Something like what this statsd client offers perhaps https://github.com/reinh/statsd

$statsd.increment 'some_custom_metric'
igorkasyanchuk commented 3 weeks ago

how do imagine this can be upgraded?

do you want something like RailsPerformance.metrics["some_metric"].increment ?

you want to upgrade it from your Rails code (controllers, jobs, etc)?

KoRMaK commented 1 week ago

Yep, thats what I was thinking and you are correct on where the calls would be invoked. It would also be nice to view it as a time-series graph inside the rails-performance dashboard, but that may be out of scope due to complexity, so just being able to see what the current value is inside of the dashboard would be nice.

igorkasyanchuk commented 1 week ago

I'll think about it