summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/puppet/reports/prometheus.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/puppet/reports/prometheus.rb b/lib/puppet/reports/prometheus.rb
index bf4473e..080cf35 100644
--- a/lib/puppet/reports/prometheus.rb
+++ b/lib/puppet/reports/prometheus.rb
@@ -66,6 +66,11 @@ Puppet::Reports.register_report(:prometheus) do
end
end
+ file.write("# HELP puppet_report metric_help\n")
+ metrics.each do |metric, data|
+ file.write("# HELP puppet_report_#{metric} metric_help\n")
+ end
+
file.write("# New metrics\n")
new_metrics.each do |k, v|
file.write("#{k} #{v}\n")