Skip to content

Commit

Permalink
Merge f4b773a into c59cbd1
Browse files Browse the repository at this point in the history
  • Loading branch information
shouichi committed Oct 23, 2019
2 parents c59cbd1 + f4b773a commit fb78a5f
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions lib/prometheus/middleware/collector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,11 @@ module Middleware
# By default metrics are registered on the global registry. Set the
# `:registry` option to use a custom registry.
#
# By default metrics all have the prefix "http_server". Set to something
# else if you like.
# By default metrics all have the prefix "http_server". Set
# `:metrics_prefix` to something else if you like.
#
# The request counter metric is broken down by code, method and path by
# default. Set the `:counter_label_builder` option to use a custom label
# builder.
#
# The request duration metric is broken down by method and path by default.
# Set the `:duration_label_builder` option to use a custom label builder.
#
# Label Builder functions will receive a Rack env and a status code, and must
# return a hash with the labels for that request. They must also accept an empty
# env, and return a hash with the correct keys. This is necessary to initialize
# the metrics with the correct set of labels.
# The request counter metric is broken down by code, method and path.
# The request duration metric is broken down by method and path.
class Collector
attr_reader :app, :registry

Expand Down

0 comments on commit fb78a5f

Please sign in to comment.