Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 127eb6a

Browse files
author
suckatrash
committed
badsf
1 parent 3547542 commit 127eb6a

File tree

1 file changed

+21
-14
lines changed

1 file changed

+21
-14
lines changed

README.md

+21-14
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,16 @@
1313

1414
## Description
1515

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.
1718

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:
1926

2027
* Through telegraf, which polls several of Puppet's metrics endpoints (recommended)
2128
* 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':
7481
}
7582
```
7683

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-
8984
### Enable Graphite support
9085

9186
```
@@ -123,6 +118,18 @@ By default, this will create a set of certificates in `/etc/grafana` that are ba
123118

124119
_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)
125120

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+
126133
### Profile defined types
127134

128135
The module includes defined types that you can use with an existing grafana implementation. For example:

0 commit comments

Comments
 (0)