Skip to content

Commit

Permalink
Enable resolved prometheus exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Nov 23, 2024
1 parent 45fe31e commit aa9703b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cookbooks/networking/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,16 @@
to "../run/systemd/resolve/stub-resolv.conf"
end

gem_package "dbus-systemd" do
gem_binary node[:ruby][:gem]
end

prometheus_exporter "resolved" do
port 10028
user "systemd-resolve"
restrict_address_families "AF_UNIX"
end

hosts = { :inet => [], :inet6 => [] }

search(:node, "networking:interfaces").collect do |n|
Expand Down

0 comments on commit aa9703b

Please sign in to comment.