Sha256: fb5e3ae525a8cc093dbd5149b96ca2427f27b73484f67de4bab760a9c1f331f4

Contents?: true

Size: 749 Bytes

Versions: 2

Compression:

Stored size: 749 Bytes

Contents

# FluentLoggerStatistics

[![Build Status](https://travis-ci.org/itkq/fluent_logger_statistics.svg?branch=master)](https://travis-ci.org/itkq/fluent_logger_statistics)

## Usage
Middleware settings:
```ruby
Rails.configuration.middleware.use FluentLoggerStatistics::Middleware,
  '/endpoint/',
  {
    resource_name1: fluent_logger1, # instance of Fluent::Logger::FluentLogger
    resource_name2: fluent_logger2,
    ...
  }
```

After rails boots, then
```sh
$ curl http://rails-host/endpoint | jq .
{
  "resource_name1": {
    "buffer_bytesize": 0,
    "buffer_limit": 8388608,
    "buffer_usage_rate": 0
  },
  "resource_name2": {
    "buffer_bytesize": 236,
    "buffer_limit": 8388608,
    "buffer_usage_rate": 2.8133392333984375e-05
  }
}
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fluent_logger_statistics-0.4.0 README.md
fluent_logger_statistics-0.3.0 README.md