文档

​
​

Development

User Acquisition

Monetization

工业

Self-Hosted Deployment

Amazon Web Services

Microsoft Azure

On premises

vpctl

Self-Hosted Deployment

此页面不支持所选语言。
​
​
Self-Hosted Deployment
  • Overview
  • Amazon Web Services
    • Release notes
    • Installation
      • Infrastructure overview
      • Prerequisites
      • Deployment
      • Postdeployment
        • Set up the identity subsystem
        • Set up backups for Percona Server for MongoDB
        • Set up Percona Monitoring and Management
        • Migrate data to Percona Server for MongoDB
      • Security
      • Costs
    • Maintenance
  • Microsoft Azure
  • On premises
  • Administration
  • Security
  • vpctl
  1. Self-Hosted Deployment (previously called Unity Virtual Private Cloud)
  2. Self-Hosted Deployment in Amazon Web Services
  3. Installation

Set up Percona Monitoring and Management

Set up the monitoring of your database infrastructure
阅读时间2 分钟
最后更新于 1 个月前

To use Percona Monitoring and Management (PMM) to monitor your database infrastructure, complete the procedure in this section to integrate Percona Server for MongoDB (PSMDB) with PMM.

Prerequisites

Before you deploy PMM, ensure that this setup is complete:
  • When deploying Self-Hosted Deployment, you have enabled PMM, that is, you have set the
    enable_percona_monitoring
    setting to true in the Terraform variables file.
  • The resources
    ClusterRole
    and
    ClusterRoleBinding
    exist in the Kubernetes cluster.

1. Expose the PMM web interface

To expose the PMM web interface, complete these steps:
  1. Create an Ingress resource for the PMM web interface in your Kubernetes cluster.
  2. Add a DNS record that points to the PMM service in your DNS provider, for example, Route 53.
  3. Ensure that the PMM service is accessible through the configured domain name.

2. Access the PMM web interface

To access the PMM web interface, complete these steps:
  1. Go to the PMM web interface using your configured domain name.
  2. Sign in with the
    admin
    username. To retrieve the password, run this command:
    kubectl get secret pmm-admin-password -o jsonpath="{.data.GF_SECURITY_ADMIN_PASSWORD}" | base64 --decode

3. Create a token to integrate PSMDB with PMM

To integrate PSMDB with PMM, create a token in PMM:
  1. In the PMM web interface, go to Administration > Service Accounts.
  2. Select Add Service Account.
  3. Enter a descriptive name for the service account, choose Admin role and then select Create.
  4. Select Add service account Token.
  5. Copy the generated API key, and then save it to a secure location.
  6. Update the Terraform variable
    psmdb_pmm_server_token
    with the API key in your configuration file.
    The entry must have this format:
    psmdb_pmm_server_token = "<YOUR_PMM_TOKEN>"
  7. To apply the changes, run this command:
    cd aws/terraformmake apply-us-east-1

4. Validate the metrics collection

To validate that the metrics collection is working correctly, complete these verification steps:
  1. Ensure that there are no access errors. To check the PSMDB pod logs, run this command:
    kubectl logs psmdb-db-rs0-0 -c pmm-client
  2. To verify that the metrics are being collected in the PMM web interface, consult the MongoDB metrics in the MongoDB section.

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。

  • 在本页上
    • Prerequisites

    • 1. Expose the PMM web interface

    • 2. Access the PMM web interface

    • 3. Create a token to integrate PSMDB with PMM

    • 4. Validate the metrics collection


报告此页面的问题