environment "FASTLY_API_TOKEN" => tokens["fastly"]
end
+prometheus_exporter "statuscake" do
+ port 9595
+ environment "STATUSCAKE_APIKEY" => tokens["statuscake"]
+end
+
cache_dir = Chef::Config[:file_cache_path]
prometheus_version = "2.31.1"
snmp_targets << {
:instance => instance,
:target => details[:address],
- :module => details[:module],
+ :modules => details[:modules],
:address => client[:prometheus][:addresses]["snmp"],
:labels => Array(details[:labels])
}
service "prometheus"
dropin "executable"
exec_start "/opt/prometheus-server/prometheus/prometheus --config.file=/etc/prometheus/prometheus.yml --web.external-url=https://prometheus.openstreetmap.org/prometheus --storage.tsdb.path=/var/lib/prometheus/metrics2 --storage.tsdb.retention.time=30d"
+ timeout_stop_sec 300
notifies :restart, "service[prometheus]"
end