Class: Yabeda::Karafka::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/yabeda/karafka/base.rb

Class Method Summary collapse

Class Method Details

.register_metricsObject



7
8
9
10
11
12
13
14
15
# File 'lib/yabeda/karafka/base.rb', line 7

def register_metrics
  Yabeda.configure do
    group :karafka do
      counter :errors_total,
              tags: %i[type base_type error],
              comment: 'Total number of error'
    end
  end
end