Skip to content

Commit

Permalink
Reload Prometheus service instead of restarting
Browse files Browse the repository at this point in the history
Reloading the Prometheus service is sufficient for configuration or alert changes. Currently restarting the service is causing Prometheus to enter `crash-recovery` mode on a regular basis.
  • Loading branch information
nikosmeds authored May 25, 2017
1 parent 3b1ed94 commit 8498e29
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions manifests/run_service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@

if $prometheus::manage_service == true {
service { 'prometheus':
ensure => $prometheus::service_ensure,
name => $init_selector,
enable => $prometheus::service_enable,
ensure => $prometheus::service_ensure,
name => $init_selector,
enable => $prometheus::service_enable,
hasrestart => true,
restart => '/usr/bin/pkill -HUP prometheus',
}
}
}

0 comments on commit 8498e29

Please sign in to comment.