Apply changed configs to prometheus and alertmanager
This commit is contained in:
@@ -23,6 +23,14 @@ prometheus_job "node" do
|
||||
target "localhost:9100"
|
||||
end
|
||||
|
||||
with_run_context :root do
|
||||
execute "reload prometheus config" do
|
||||
command "systemctl reload prometheus.service"
|
||||
action :nothing
|
||||
subscribes :run, "template[/opt/prometheus/prometheus.yml]", :delayed
|
||||
end
|
||||
end
|
||||
|
||||
prometheus_service "prometheus" do
|
||||
cli_options({
|
||||
"config.file" => "/opt/prometheus/prometheus.yml",
|
||||
|
||||
Reference in New Issue
Block a user