TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How to Log API Usage Statistics?

6 点作者 aarreedd超过 3 年前
I am looking for a tool or service to track API usage on my website. I&#x27;m not exactly sure what to search for and the results are so over SEO&#x27;ed it&#x27;s impossible to figure out.<p>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.<p>Ideally below the graph there would be a list of the actual API requests, metadata, and responses.<p>I would also like a way to see the distribution of API response times.<p>I have looked at ELK stack, AWS CloudWatch Metrics, DataDog, PaperTrail, Sentry. None of these quite seem to do what I want.<p>Any suggestions?

3 条评论

jamesfinlayson超过 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.
wizwit999超过 3 年前
Check out <a href="https:&#x2F;&#x2F;www.moesif.com" rel="nofollow">https:&#x2F;&#x2F;www.moesif.com</a>, if youre interested in analytics. If you&#x27;re interested in the audit logging &#x2F;security angle, also check out <a href="https:&#x2F;&#x2F;apptrail.com" rel="nofollow">https:&#x2F;&#x2F;apptrail.com</a> (Disclaimer: founder).
ponyous超过 3 年前
prometheus + grafana is the standard stack we use for API timings and general API performance monitoring