Skip to content

Commit

Permalink
Run chrony_exporter for prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Jun 14, 2023
1 parent 70cd95b commit c307ef5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions cookbooks/ntp/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
version "0.8.2"
supports "ubuntu"
depends "munin"
depends "prometheus"
depends "systemd"
4 changes: 4 additions & 0 deletions cookbooks/ntp/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@

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
Expand Down

0 comments on commit c307ef5

Please sign in to comment.