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
{{ message }}
This repository was archived by the owner on Jun 1, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+12-6
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ These services can all run on a single server by applying the base class. You a
20
20
to use the [included defined types](#profile-defined-types) to configure telegraf on each of your Puppet infrastructure components
21
21
(master,compilers, puppetdb, postgres server) and the metrics will be stored on another server
22
22
running grafana and influxdb. In environments where there is an existing grafana / influxdb
23
-
instance, the later option probably makes the most sense.
23
+
instance, the later option is recommended.
24
24
25
25
You have the option of collecting metrics using any or all of these methods:
26
26
@@ -30,7 +30,13 @@ You have the option of collecting metrics using any or all of these methods:
30
30
31
31
## Setup
32
32
33
-
### Upgrade note
33
+
### Upgrade notes, breaking changes in v2
34
+
35
+
The `puppet_metrics_dashboard::profile::postgres` class is now deprecated and you should use the `puppet_metrics_dashboard::profile::Master::postgres_access` class instead.
36
+
37
+
Parameters `telegraf_agent_interval` and `http_response_timeout` were previously integers but are now strings. The value should match a time interval, such as `5s`, `10m`, or `1h`.
38
+
39
+
`influxdb_urls` was previously a string, it should now be an array.
34
40
35
41
Previous versions of this module put several `[[inputs.httpjson]]` entries in
36
42
`/etc/telegraf/telegraf.conf`. These entries should be removed now as all
@@ -92,7 +98,7 @@ class { 'puppet_metrics_dashboard':
92
98
}
93
99
```
94
100
95
-
* This method requires enabling on the master side as described [here](https://puppet.com/docs/pe/2017.3/puppet_server_metrics/getting_started_with_graphite.html#enabling-puppet-server-graphite-support). The hostname(s) that you use in `master_list` should match the value(s) that you used for `metrics_server_id` in the `puppet_enterprise::profile::master` class.
101
+
* This method requires enabling on the master side as described [here](https://puppet.com/docs/pe/latest/puppet_server_metrics/getting_started_with_graphite.html#enabling-puppet-server-graphite-support). The hostname(s) that you use in `master_list` should match the value(s) that you used for `metrics_server_id` in the `puppet_enterprise::profile::master` class.
96
102
97
103
### Enable Telegraf, Graphite, and Archive (puppet_metrics)
98
104
@@ -123,12 +129,12 @@ _Note:_ Enabling SSL on Grafana will not allow for running on privileged ports s
123
129
This is required for collection of postgres metrics. The class should be applied to the master (or postgres server if using external postgres).
124
130
125
131
```
126
-
class { 'puppet_metrics_dashboard::profile::postgres':
127
-
grafana_host => 'grafana-server.example.com',
132
+
class { 'puppet_metrics_dashboard::profile::master::postgres_access':
133
+
telegraf_host => 'grafana-server.example.com',
128
134
}
129
135
```
130
136
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.
137
+
`telegraf_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 `telegraf_host` then the class outputs a warning.
# @summary This class is deprecated. Please use the Puppet_metrics_dashboard::Profile::Master::Postgres_access class.
2
+
#
3
+
# @param grafana_host
4
+
# The FQDN of the host where telegraf runs.
5
+
# Defaults to an empty string. You can explicitly set this parameter or the class attempts to lookup which host has the puppet_metrics_dashboard class applied in PuppetDB. If the parameter is not set and the lookup does not return anything we issue a warning.
fail('The Puppet_metrics_dashboard::Profile::Postgres class is deprecated. Please use the Puppet_metrics_dashboard::Profile::Master::Postgres_access instead.')
0 commit comments