Skip to content

Commit

Permalink
drop support for alertmanager < 0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMeier committed Jun 2, 2024
1 parent 2f3d762 commit c2b7acc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ or:

```puppet
class { 'prometheus::node_exporter':
version => '0.12.0',
version => '0.27.0',
collectors_disable => ['loadavg', 'mdadm'],
}
```
Expand Down
2 changes: 1 addition & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10958,7 +10958,7 @@ Data type: `Stdlib::Port`



Default value: `9090`
Default value: `9419`

##### <a name="-prometheus--rabbitmq_exporter--scrape_job_name"></a>`scrape_job_name`

Expand Down
12 changes: 2 additions & 10 deletions manifests/alertmanager.pp
Original file line number Diff line number Diff line change
Expand Up @@ -252,17 +252,9 @@
mode => '0755',
}

if( versioncmp($version, '0.12.0') == 1 ) {
$options = "--config.file=${prometheus::alertmanager::config_file} --storage.path=${prometheus::alertmanager::storage_path} ${prometheus::alertmanager::extra_options}"
} else {
$options = "-config.file=${prometheus::alertmanager::config_file} -storage.path=${prometheus::alertmanager::storage_path} ${prometheus::alertmanager::extra_options}"
}
$options = "--config.file=${prometheus::alertmanager::config_file} --storage.path=${prometheus::alertmanager::storage_path} ${prometheus::alertmanager::extra_options}"
} else {
if( versioncmp($prometheus::alertmanager::version, '0.12.0') == 1 ) {
$options = "--config.file=${prometheus::alertmanager::config_file} ${prometheus::alertmanager::extra_options}"
} else {
$options = "-config.file=${prometheus::alertmanager::config_file} ${prometheus::alertmanager::extra_options}"
}
$options = "--config.file=${prometheus::alertmanager::config_file} ${prometheus::alertmanager::extra_options}"
}

prometheus::daemon { $service_name:
Expand Down

0 comments on commit c2b7acc

Please sign in to comment.