Skip to content

For help, click the link below to get free database assistance or contact our experts for personalized support.

Create access roles

Roles are essential components of PMM’s access control system. They allow you to limit users’ access to specific metrics based on their responsibilities and permissions.

Before you begin

  • You must have administrator privileges to create roles. For more information, see Manage users.
  • Access control must be enabled in PMM settings

Create a new role

To create access roles in PMM:

  1. From the main menu, go to PMM Configuration > Settings > Advanced Settings and enable the Access control option.
  2. Go to Administration > Users and access > Access Roles.

    PMM Access Control - Create role

  3. Click Create.

  4. On the Create role page, enter the Role name and Role description.
  5. Configure metrics access by setting label selectors:

    • select a Label (e.g., “service_name”, “environment”)
    • choose an Operator (e.g., “=”, “!=”, “=~”)
    • enter the Value for the selected label

    If you want to add more than one label for a role, click + and select the values from the drop-down.

    For information on how the Prometheus selectors work, see Prometheus selectors.

  6. Review your selections, then click Create to finalize the role.