Skip to content

Commit aa9703b

Browse files
committed
Enable resolved prometheus exporter
1 parent 45fe31e commit aa9703b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cookbooks/networking/recipes/default.rb

+10
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,16 @@
331331
to "../run/systemd/resolve/stub-resolv.conf"
332332
end
333333

334+
gem_package "dbus-systemd" do
335+
gem_binary node[:ruby][:gem]
336+
end
337+
338+
prometheus_exporter "resolved" do
339+
port 10028
340+
user "systemd-resolve"
341+
restrict_address_families "AF_UNIX"
342+
end
343+
334344
hosts = { :inet => [], :inet6 => [] }
335345

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

0 commit comments

Comments
 (0)