aboutsummaryrefslogtreecommitdiff
path: root/lib/longboat/collector.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/longboat/collector.rb')
-rw-r--r--lib/longboat/collector.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/longboat/collector.rb b/lib/longboat/collector.rb
index adb20c3..c812b05 100644
--- a/lib/longboat/collector.rb
+++ b/lib/longboat/collector.rb
@@ -9,7 +9,7 @@ module Longboat
@metrics[name][labels] = {value: value, timestamp: timestamp}
end
- def metrics
+ def prometheus_metrics
res = ""
@metrics.each do |name, metric|
res << "#HELP #{name} #{metric[:help]}\n" unless metric[:help].nil?