Class: GovukPrometheusExporter::SinatraMiddleware
- Inherits:
-
PrometheusExporter::Middleware
- Object
- PrometheusExporter::Middleware
- GovukPrometheusExporter::SinatraMiddleware
- Defined in:
- lib/govuk_app_config/govuk_prometheus_exporter.rb
Instance Method Summary collapse
Instance Method Details
#default_labels(_env, _result) ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'lib/govuk_app_config/govuk_prometheus_exporter.rb', line 34 def default_labels(_env, _result) # The default prometheus exporter middleware uses the controller and # action as labels. These aren't meaningful in Sinatra applications, and # other options (such as request.path_info) have potentially very high # cardinality. For now, just accept that we can't be more specific than # the application / pod and don't provide any other labels {} end |