Sha256: b9f0fe962fc69eae4dba1cb362e54986dec8515159c66b016f2ddd77229265b2
Contents?: true
Size: 492 Bytes
Versions: 21
Compression:
Stored size: 492 Bytes
Contents
# Prometheus Interceptor Logs basic request/response information to prometheus. ```ruby require 'prometheus/client' LHC::Prometheus.client = Prometheus::Client LHC::Prometheus.namespace = 'web_location_app' LHC.config.interceptors = [LHC::Prometheus] ``` ```ruby LHC.get('http://local.ch') ``` - Creates a prometheus counter that receives additional meta information for: `:code`, `:success` and `:timeout`. - Creates a prometheus histogram for response times in milliseconds.
Version data entries
21 entries across 21 versions & 1 rubygems