Skip to content

Commit

Permalink
Fix metrics labels.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Nov 21, 2018
1 parent 46ed007 commit 8c7f7c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/initializers/40-prometheus.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$prometheus = Prometheus::Client.registry

$metrics = {
ratelimit: $prometheus.gauge(:ratelimit, docstring: "Remaining ratelimit for external services.", labels: [:service]),
requests: $prometheus.counter(:requests, docstring: "Number of requests made to external services.", labels: [:service, :response_code]),
urls: $prometheus.counter(:urls, docstring: "Number of URLs resolved."),
ratelimit: $prometheus.gauge(:ratelimit, "Remaining ratelimit for external services."),
requests: $prometheus.counter(:requests, "Number of requests made to external services."),
urls: $prometheus.counter(:urls, "Number of URLs resolved."),
}

0 comments on commit 8c7f7c9

Please sign in to comment.