You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44-24Lines changed: 44 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -29,14 +29,27 @@ This module collects metrics provided by the status endpoints of Puppet Enterpri
29
29
30
30
Install this module with `puppet module install puppetlabs-puppet_metrics_collector` or add it to your Puppetfile.
31
31
32
-
To activate this module, classify your Primary Master (aka Master of Masters or MoM) with the `puppet_metrics_collector` class using your preferred classification method.
32
+
To activate this module, classify your Primary Master (aka Master of Masters or MoM) with the `puppet_metrics_collector` class using your preferred classification method. Below is an example when using the `site.pp`.
33
33
34
34
```
35
35
node 'master.example.com' {
36
36
include puppet_metrics_collector
37
37
}
38
38
```
39
39
40
+
Optionally, you can also gather some basic system metrics. Unlike the service metrics, this has to be enabled on each host you want metrics from, and the resulting data will be only on that host. Do not include the top level puppet_metrics_collector on anything other than the master as it will collect the same data as the one on the master. This functionality depends on sysstat.
This module automatically configures the hosts it queries by querying PuppetDB for PE Infrastructure Hosts. If there is an error with automatic configuration of hosts, refer to [Manual Configuration of Hosts](#manual-configuration-of-hosts).
@@ -95,11 +108,18 @@ Optional String: Allows you to override the command that is run to gather metric
95
108
96
109
### Grepping Metrics
97
110
111
+
The metrics come in a JSON hash on one line. In order to convert the metric files into a pretty format, they can be processed with `python -m json.tool` like below.
Since the metrics are compressed every night, you can only search metrics for the current day. To search older metrics, decompress the compressed files into a subdirectory of `/tmp` and run from inside that directory.
@@ -110,36 +130,36 @@ Since the metrics are compressed every night, you can only search metrics for th
0 commit comments