File: RecordMetricsFromRemoteSystem.rst

package info (click to toggle)
pcp 7.0.5-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 252,916 kB
  • sloc: ansic: 1,478,844; sh: 177,285; xml: 160,462; cpp: 83,809; python: 24,349; perl: 18,303; yacc: 6,877; lex: 2,864; makefile: 2,694; awk: 165; fortran: 60; java: 52
file content (90 lines) | stat: -rw-r--r-- 2,384 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
.. _RecordMetricsFromRemoteSystem:

Record metrics from a remote system
###############################################

1. Setup instructions for client systems

   * Install required packages:

   .. code-block:: bash

      # dnf -y install pcp
   
   * Allow incoming connections on TCP/44321:

   .. code-block:: bash

      # firewall-cmd --permanent --zone=public --add-port=44321/tcp
      # firewall-cmd --reload

   * Ensure that PMCD talks to the outer world:

   .. code-block:: bash

      #  if grep -q ^PMCD_LOCAL /etc/sysconfig/pmcd; then
            sed -ie 's,PMCD_LOCAL.*,PMCD_LOCAL=0,' /etc/sysconfig/pmcd
         else
            echo 'PMCD_LOCAL=0' >>/etc/sysconfig/pmcd
         fi
      # grep ^PMCD_LOCAL /etc/sysconfig/pmcd
      PMCD_LOCAL=0

   * Restart & activate PMCD:

   .. code-block:: bash

      # systemctl restart pmcd
      # systemctl enable pmcd

2. Setup instructions for collector system

   * Install required packages:

   .. code-block:: bash

      # dnf -y install pcp-zeroconf


   * Create a default config for the clients:

   .. code-block:: bash

      # CLIENT='rhel7u8a'
      # pmlogconf /var/lib/pcp/config/pmlogger/config.$CLIENT

   * Optionally: execute again, to customize:

   .. code-block:: bash

      # pmlogconf /var/lib/pcp/config/pmlogger/config.$CLIENT

   * Create the controller config for the client:

   .. code-block:: bash

      # echo "$CLIENT.local n n PCP_ARCHIVE_DIR/$CLIENT.local" " -r -T30d -c config.$CLIENT" \
      >/etc/pcp/pmlogger/control.d/$CLIENT

   * Restart pmlogger:

   .. code-block:: bash

      # systemctl restart pmlogger

3. Verify data collection on collector system

   .. code-block:: bash

      # pcp

      Performance Co-Pilot configuration on rhel8u2a.local:
      platform: Linux rhel8u2a.local 4.18.0-167.el8.x86_64 #1 SMP Sun [..] 2019 x86_64
      hardware: 4 cpus, 1 disk, 1 node, 3938MB RAM
      timezone: CET-1
      services: pmcd
      pmcd: Version 5.0.2-1, 11 agents, 4 clients
      pmda: root pmcd proc pmproxy xfs linux nfsclient mmv kvm jbd2 dm
      pmlogger: primary logger: /var/log/pcp/pmlogger/rhel8u2a.local/20200317.05.32
      rhel7u8a: /var/log/pcp/pmlogger/rhel7u8a.local/20200317.06.20
      pmie: primary engine: /var/log/pcp/pmie/rhel8u2a.local/pmie.log