environment "FASTLY_API_TOKEN" => tokens["fastly"]
end
+prometheus_exporter "fastly_healthcheck" do
+ port 9696
+ scrape_interval "1m"
+ environment "FASTLY_API_TOKEN" => tokens["fastly"]
+end
+
prometheus_exporter "statuscake" do
port 9595
environment "STATUSCAKE_APIKEY" => tokens["statuscake"]
prometheus_version = "2.31.1"
alertmanager_version = "0.23.0"
-karma_version = "0.93"
+karma_version = "0.105"
directory "/opt/prometheus-server" do
owner "root"
name = exporter[:name]
address = exporter[:address]
sni = exporter[:sni]
+ scrape_interval = exporter[:scrape_interval]
metric_relabel = exporter[:metric_relabel] || []
else
name = key
address = exporter
sni = nil
+ scrape_interval = nil
metric_relabel = []
end
:address => address,
:sni => sni,
:instance => client.name.split(".").first,
+ :scrape_interval => scrape_interval,
:metric_relabel => metric_relabel
}
end
snmp_targets << {
:instance => instance,
:target => details[:address],
- :module => details[:module],
+ :modules => details[:modules],
:address => client[:prometheus][:addresses]["snmp"],
:labels => Array(details[:labels])
}