|
13 | 13 |
|
14 | 14 | ## Description
|
15 | 15 |
|
16 |
| -This module is used to configure grafana, telegraf, and influxdb to consume metrics from Puppet services. |
| 16 | +This module is used to configure grafana and influxdb to consume metrics from Puppet services. |
| 17 | +By default the metrics collection is done by another service called telegraf. |
17 | 18 |
|
18 |
| -You have the option of getting metrics from any or all of three of these methods: |
| 19 | +These services can all run on a single server by applying the base class. You also have the option |
| 20 | +to use the [included defined types](#profile-defined-types) to configure telegraf on each of your Puppet infrastructure components |
| 21 | +(master,compilers, puppetdb, postgres server) and the metrics will be stored on another server |
| 22 | +running grafana and influxdb. In environments where there is an existing grafana / influxdb |
| 23 | +instance, the later option probably makes the most sense. |
| 24 | + |
| 25 | +You have the option of collecting metrics using any or all of these methods: |
19 | 26 |
|
20 | 27 | * Through telegraf, which polls several of Puppet's metrics endpoints (recommended)
|
21 | 28 | * Through Archive files from the [puppetlabs/puppet_metrics_collector](https://forge.puppet.com/puppetlabs/puppet_metrics_collector) module
|
@@ -74,18 +81,6 @@ class { 'puppet_metrics_dashboard':
|
74 | 81 | }
|
75 | 82 | ```
|
76 | 83 |
|
77 |
| -### Allow access to PE-managed postgres nodes with the following class: |
78 |
| - |
79 |
| -This is required for collection of postgres metrics. The class should be applied to the master (or postgres server if using external postgres). |
80 |
| - |
81 |
| -``` |
82 |
| -class { 'puppet_metrics_dashboard::profile::postgres': |
83 |
| - grafana_host => 'grafana-server.example.com', |
84 |
| -} |
85 |
| -``` |
86 |
| - |
87 |
| -`grafana_host` is optional. If you do not specify it, the class will look for a node with the `puppet_metrics_dashboard` class applied in PuppetDB and use the `certname` of the first host returned. If the PuppetDB lookup fails and you do not specify `grafana_host` then the class outputs a warning. |
88 |
| - |
89 | 84 | ### Enable Graphite support
|
90 | 85 |
|
91 | 86 | ```
|
@@ -123,6 +118,18 @@ By default, this will create a set of certificates in `/etc/grafana` that are ba
|
123 | 118 |
|
124 | 119 | _Note:_ Enabling SSL on Grafana will not allow for running on privileged ports such as `443`. To enable this capability you can use the suggestions documented in [this Grafana documentation](http://docs.grafana.org/installation/configuration/#http-port)
|
125 | 120 |
|
| 121 | +### Allow access to PE-managed postgres nodes with the following class: |
| 122 | + |
| 123 | +This is required for collection of postgres metrics. The class should be applied to the master (or postgres server if using external postgres). |
| 124 | + |
| 125 | +``` |
| 126 | +class { 'puppet_metrics_dashboard::profile::postgres': |
| 127 | + grafana_host => 'grafana-server.example.com', |
| 128 | +} |
| 129 | +``` |
| 130 | + |
| 131 | +`grafana_host` is optional. If you do not specify it, the class will look for a node with the `puppet_metrics_dashboard` class applied in PuppetDB and use the `certname` of the first host returned. If the PuppetDB lookup fails and you do not specify `grafana_host` then the class outputs a warning. |
| 132 | + |
126 | 133 | ### Profile defined types
|
127 | 134 |
|
128 | 135 | The module includes defined types that you can use with an existing grafana implementation. For example:
|
|
0 commit comments