Managing users and groups in MMS console

In the previous recipe, we saw how to set up an MMS account and set up an MMS agent. In this recipe, we will throw some light on how to set up the groups and user access to the MMS console.

Getting ready

Refer to the previous recipe for setting up the agent and MMS account. This is the only prerequisite for this recipe.

How to do it…

  1. Start by going to Administration | Users on the left-hand side of the screen, as shown here:
    How to do it…

    Here, you can view the existing users and also add new users. On clicking the Add User (encircled in the top right corner of the preceding image) button, you should see the following popup window that allows you to add a new user:

    How to do it…

    The preceding screen will be used to add users. Take a note of the various available roles.

  2. Similarly, go to Administration | My Groups to view and add new groups by clicking on the Add Group button. In the text box, type the name of the group. Remember that the name of the group you enter should be available globally. The given name of the group should be unique across all users of MMS and not just your account.
  3. When a new group is created, it will be visible in the top left corner in a drop-down menu for all the groups, as shown here:
    How to do it…
  4. You can switch between the groups using this drop-down menu, which should show all the details and stats relevant to the selected group.

    Note

    Remember that a group once created cannot be deleted. So be careful while creating one.

How it works…

The tasks we did in the recipe are pretty straightforward and don't need a lot of explanation except for one question. When and why do we add a group? It is when we want to segregate our MongoDB instances by different environments or applications. There will be a different MMS agent running for each group. Creating a new group is necessary when we want to have separate monitoring groups for different environments of an application (Development, QA, Production, and so on), and each group has different privileges for the users. That is, the same agent cannot be used for two different groups. While configuring the MMS agent, we give it an API key unique to the group. To view the API key for the group, select the appropriate group from the drop-down menu at the top of the screen (if your user has access to only group, the drop-down menu won't be seen) and go to Administration | Group Settings as shown in the next screenshot. The Group ID and the API Key will both be shown on the top of the page.

How it works…

Note that not all user roles will see this option. For example, read-only users can only personalize their profile and most of the other options will not be visible.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset