如何监控Ruby on Rails网站的流量?
我有一个 ruby on Rails 应用程序,很高兴看到我每小时获得多少次点击。是否有一些简单的免费软件可以执行此操作,或者我是否必须开发自定义解决方案?谢谢!
I have a ruby on rails application and it would be nice to see how many hits I get per hour. Is there some simple free software to do this or do I have to develop a custom solution? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
Chartbeat 和 Clicky< /a> 是我使用过的两个“实时”分析工具。尽管我只使用过 clicky 的免费版本,但 Chartbeat 告诉您的信息还远多于我的记忆。
Chartbeat and Clicky are two "real-time" analytic tools I've used. Chartbeat tells you quite a bit more from what I remember, although I have only used the free version of clicky.
google-analytics?
其他选项:
您可以使用日志分析器,但您也会遇到一些延迟,因为大多数分析器应该是这样由类似 cron 的东西运行(并且信息不会像谷歌分析那样完整)
另一个选择是向您的 ApplicationController 添加一些 before_filter 并将信息写入数据库(信息也不会那么完整)或搜索具有此类功能的插件
google-analytics?
Other options:
You can use log analyzers but you also get some delay as most of them should be ran by something like cron (and info will not be as complete as with google analytics)
Another option is to add some before_filter to your ApplicationController and write info to db (info also will not be as complete) or search for plugin with such functionality
查看 Woopra。他们有一个 Java 应用程序,您可以下载并运行该应用程序,以非常直观的方式分析您的流量和访客。此外,您还可以在全球地图上看到显示即时访客的 ping 点。您安装一段 JavaScript 代码,然后访问您网站的用户将被跟踪,类似于谷歌的分析,但以更直接且在我看来有用的方式。
他们还有更多可用的功能,例如跟踪用户点击的页面进度等等。
Check out Woopra. They have a java application that you can download and run to analyze your traffic and visitors in a very visual manner. Also you can literally see ping dots on a global map showing instantaneous visitors. You install a piece of javascript code and then users visiting your site will be tracked similar to google's analytics, but in a more immediate and in my opinion useful manner.
There's a lot more features that they have available like tracking the page progression that a user clicks through, and others.
我非常喜欢 glTail.rb http://www.fudgie.org/
它位于 github 上:http://github.com/Fudge/gltail
最好的部分是,它是开源的,Ruby 的,而且免费。 :-D
I absolutely LOVE glTail.rb http://www.fudgie.org/
it's on github here: http://github.com/Fudge/gltail
Best part is, it's open source, Ruby, and free. :-D
市场上的大多数网络服务器都会保存详细的日志。
Most web servers on the market keep detailed logs.