README.md in sidekiq_prometheus-0.9.0 vs README.md in sidekiq_prometheus-0.9.1
- old
+ new
@@ -189,11 +189,11 @@
Registering a set of custom metrics is done by defining `custom_metrics` in the `configure` block:
```ruby
SidekiqPrometheus.configure do |config|
config.custom_metrics = [
- { name: :imported_records, type: :counter, :docstring: 'Count of successfully imported records' },
- { name: :failed_records, type: counter:, :docstring: 'Count of failed records' },
+ { name: :imported_records, type: :counter, docstring: 'Count of successfully imported records' },
+ { name: :failed_records, type: counter:, docstring: 'Count of failed records' },
]
end
```
Metrics can also be registered directly. This must done *after* `SidekiqPrometheus.configure` or `setup` has been run.