From: Tom Hughes Date: Wed, 14 Jun 2023 18:11:59 +0000 (+0100) Subject: Run chrony_exporter for prometheus X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/c307ef550f5c5c6e7c8be3ad7d85d3815e0ed0ca Run chrony_exporter for prometheus --- diff --git a/cookbooks/ntp/metadata.rb b/cookbooks/ntp/metadata.rb index f80c8dbee..240e619f9 100644 --- a/cookbooks/ntp/metadata.rb +++ b/cookbooks/ntp/metadata.rb @@ -7,4 +7,5 @@ description "Installs and configures ntp as a client or server" version "0.8.2" supports "ubuntu" depends "munin" +depends "prometheus" depends "systemd" diff --git a/cookbooks/ntp/recipes/default.rb b/cookbooks/ntp/recipes/default.rb index 02c80bc01..3a9b0bb8b 100644 --- a/cookbooks/ntp/recipes/default.rb +++ b/cookbooks/ntp/recipes/default.rb @@ -63,6 +63,10 @@ end munin_plugin "chrony" +prometheus_exporter "chrony" do + port 9123 +end + # chrony occasionally marks all servers offline during a network outage. # force online all sources during a chef run execute "chronyc-online" do