File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,17 @@ promtail::scrape_configs_hash:
87
87
__path__: /var/log/messages
88
88
```
89
89
90
+ ##### Merging scrape configs in Hiera
91
+
92
+ ``` puppet
93
+ class profile::logging::promtail {
94
+ $_real_scrape_configs_hash = lookup('promtail_scrape_configs_hash', {merge => 'deep'})
95
+ class { 'promtail':
96
+ scrape_configs_hash => $_real_scrape_configs_hash,
97
+ }
98
+ }
99
+ ```
100
+
90
101
#### Parameters
91
102
92
103
The following parameters are available in the ` promtail ` class.
Original file line number Diff line number Diff line change 102
102
# host: "%{facts.networking.fqdn}"
103
103
# __path__: /var/log/messages
104
104
#
105
+ # @example Merging scrape configs in Hiera
106
+ # class profile::logging::promtail {
107
+ # $_real_scrape_configs_hash = lookup('promtail_scrape_configs_hash', {merge => 'deep'})
108
+ # class { 'promtail':
109
+ # scrape_configs_hash => $_real_scrape_configs_hash,
110
+ # }
111
+ # }
112
+ #
105
113
class promtail (
106
114
Enum[' running' , ' stopped' ] $service_ensure,
107
115
Hash $clients_config_hash,
You can’t perform that action at this time.
0 commit comments