Menu Close

6.3. 启用 pmlogger 服务

必须启动并启用 pmlogger 服务,以记录本地计算机上的指标值。

这个步骤描述了如何启用 pmlogger 服务。

先决条件

步骤

  • 启动并启用 pmlogger 服务:

    # systemctl start pmlogger
    
    # systemctl enable pmlogger

验证步骤

  • 验证 pmlogger 服务是否已启用:

    # pcp
    
    Performance Co-Pilot configuration on workstation:
    
    platform: Linux workstation 4.18.0-80.el8.x86_64 #1 SMP Wed Mar 13 12:02:46 UTC 2019 x86_64
    hardware: 12 cpus, 2 disks, 1 node, 36023MB RAM
    timezone: CEST-2
    services: pmcd
    pmcd: Version 4.3.0-1, 8 agents, 1 client
    pmda: root pmcd proc xfs linux mmv kvm jbd2
    pmlogger: primary logger: /var/log/pcp/pmlogger/workstation/20190827.15.54

其他资源