Skip to content

Commit

Permalink
yabeda-prometheus compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
dsalahutdinov committed Mar 20, 2020
1 parent 4008188 commit 103db8c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions lib/yabeda/prometheus/exporter.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# frozen_string_literal: true

require 'yabeda/prometheus/mmap/exporter'

module Yabeda
module Prometheus
class Exporter < ::Yabeda::Prometheus::Mmap::Exporter
end
end
end
2 changes: 1 addition & 1 deletion lib/yabeda/prometheus/mmap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require 'prometheus/client'
require 'yabeda/prometheus/mmap/version'
require 'yabeda/prometheus/mmap/adapter'
require 'yabeda/prometheus/mmap/exporter'
require 'yabeda/prometheus/exporter'

module Yabeda
module Prometheus
Expand Down
2 changes: 1 addition & 1 deletion lib/yabeda/prometheus/mmap/adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def validate_metric!(metric)
raise ArgumentError, 'Prometheus require metrics to have comments'
end

Yabeda.register_adapter(:'prometheus-mmap', new)
Yabeda.register_adapter(:prometheus, new)
end
end
end
Expand Down

0 comments on commit 103db8c

Please sign in to comment.