From 375adfa8f4ed8d96d9b0e4ab3844fa274f7ff234 Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Mon, 16 Mar 2020 10:35:52 +0000 Subject: Added automagic longboat_meta_raider_runtime metric --- lib/longboat/collector.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/longboat/collector.rb') diff --git a/lib/longboat/collector.rb b/lib/longboat/collector.rb index 765adee..10e2f84 100644 --- a/lib/longboat/collector.rb +++ b/lib/longboat/collector.rb @@ -25,6 +25,7 @@ module Longboat def prometheus_metrics res = "" @metrics.each do |name, metric| + res << ?\n unless res.empty? res << "#HELP #{name} #{metric[:help]}\n" unless metric[:help].nil? res << "#TYPE #{name} #{metric[:type]}\n" unless metric[:type].nil? -- cgit v1.2.1