简体   繁体   English

Rails应用程序中的MongoDB监控服务

[英]MongoDB Monitoring Service in your rails application

I look https://mms.10gen.com/ But i dont get it how to use your app to it. 我看https://mms.10gen.com/但我不知道如何使用您的应用程序。 I mean how to connect your mongodb database link to MongoDB Monitoring Service? 我的意思是如何将您的mongodb数据库链接连接到MongoDB Monitoring Service? I am using Ruby on Rails and Mongodb in my project. 我在我的项目中使用Ruby on Rails和Mongodb。

The interface tells you step by step how to do it, but here is a tutorial link: http://mms.10gen.com/help/install.html . 该界面会逐步告诉您如何进行操作,但这是教程链接: http : //mms.10gen.com/help/install.html

Basically to explain it further, it does not run within your application; 基本上是为了进一步解释,它不会在您的应用程序中运行; it is not connected to your application in anyway. 它始终未连接到您的应用程序。 Imagine it as a separate program sitting on your DB server(s) transmitting data to MMS. 可以将其想象成一个单独的程序,该程序位于数据库服务器上,用于将数据传输到MMS。 This does mean of course that you will need to configure your firewall (or use localhost resolution for it like I do) to allow the program out bound traffic access to the MMS site. 当然,这确实意味着您将需要配置防火墙(或像我一样使用localhost解析),以允许程序对MMS站点进行出站流量访问。

A more technical explanation is that it is a Python agent that runs as a deamon on your machine. 更具技术性的解释是它是Python代理,它在您的计算机上作为守护进程运行。 It will automatically, once placed on a server, detect the cluster (unless your single server then it will just get the one server) and add it to the site. 一旦放置在服务器上,它将自动检测群集(除非您是单个服务器,否则它将只获得一个服务器)并将其添加到站点。 It may take a while (5 mins or so) for data to show up. 显示数据可能需要一段时间(约5分钟)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM