Sha256: 87bfe6e470d94fc358544f299127a4f646a1ade49338982a9467f023474560a9

Contents?: true

Size: 492 Bytes

Versions: 8

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 promethues counter that receives additional meta information for: `:code`, `:success` and `:timeout`.

- Creates a promethues histogram for response times in milliseconds.

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lhc-6.7.2 docs/interceptors/prometheus.md
lhc-6.7.1 docs/interceptors/prometheus.md
lhc-6.7.0 docs/interceptors/prometheus.md
lhc-6.6.0.zipkin.pre.03 docs/interceptors/prometheus.md
lhc-6.6.0.zipkin.pre.02 docs/interceptors/prometheus.md
lhc-6.6.0.zipkin.pre.01 docs/interceptors/prometheus.md
lhc-6.6.0.zipkin.pre docs/interceptors/prometheus.md
lhc-6.6.0 docs/interceptors/prometheus.md