prometheus_exporter "fastly_healthcheck" do
port 9696
+ scrape_interval "1m"
environment "FASTLY_API_TOKEN" => tokens["fastly"]
end
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