Ask HN: How to Log API Usage Statistics?
3 コメント
In a previous job an ELK stack has done that, though I think that Filebeat was the missing step - it pulled all of that information out of nginx and application log files and fed it into an ELK stack.
Check out https://www.moesif.com, if youre interested in analytics. If you're interested in the audit logging /security angle, also check out https://apptrail.com (Disclaimer: founder).
prometheus + grafana is the standard stack we use for API timings and general API performance monitoring
I need to see a graph of the number of API requests over time and filter by user id, IP address, http response code, endpoint used, and resource requested.
Ideally below the graph there would be a list of the actual API requests, metadata, and responses.
I would also like a way to see the distribution of API response times.
I have looked at ELK stack, AWS CloudWatch Metrics, DataDog, PaperTrail, Sentry. None of these quite seem to do what I want.
Any suggestions?