# limitations under the License.
#
+unified_mode true
+
default_action :create
property :exporter, :kind_of => String, :name_property => true
only_if { node[:prometheus][:mode] == "external" }
end
+ node.default[:prometheus][:addresses][new_resource.exporter] = listen_address
+
if new_resource.register_target
node.default[:prometheus][:exporters][new_resource.port] = {
:name => new_resource.exporter,