Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joker1007/fluent-plugin-sidekiq_metric
https://github.com/joker1007/fluent-plugin-sidekiq_metric
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/joker1007/fluent-plugin-sidekiq_metric
- Owner: joker1007
- License: mit
- Created: 2017-10-16T12:35:18.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-17T05:30:46.000Z (about 7 years ago)
- Last Synced: 2024-10-01T23:47:10.071Z (about 1 month ago)
- Language: Ruby
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fluent-plugin-sidekiq_metric
[Fluentd](http://fluentd.org/) input plugin to collect sidekiq metrics.
## Output example
```json
{
"processed": 12,
"failed": 1,
"scheduled_size": 3,
"retry_size": 1,
"dead_size": 0,
"processes_size":1,
"default_queue_latency": 0,
"workers_size": 1,
"enqueued": 0
}
```If queue_names is set, output becomes following.
ex: `queue_names queue1, queue2````
{
"processed": 12,
"failed": 1,
"scheduled_size": 3,
"retry_size": 1,
"dead_size": 0,
"processes_size":1,
"default_queue_latency": 0,
"workers_size": 1,
"enqueued": 0,
"queue1_length": 1,
"queue2_length": 10
}
```## Installation
### RubyGems
```
$ gem install fluent-plugin-sidekiq_metric
```### Bundler
Add following line to your Gemfile:
```ruby
gem "fluent-plugin-sidekiq_metric"
```And then execute:
```
$ bundle
```## Configuration
### tag (string) (required)
Tag of the output events.
### redis_url (string) (required)
redis URL that sidekiq uses
### namespace (string) (optional)
config for redis-namespace
### password (string) (optional)
Password for redis authentication
### connect_opts (hash) (optional)
Other options for redis connection
Default value: `{}`.
### fetch_interval (time) (optional)
Interval for fetching to redis
Default value: `60`.
### queue_names (array) (optional)
Queue names for length aggregation per queue
Default value: `[]`.
You can copy and paste generated documents here.
## Config Example
```
@type sidekiq_metric
tag sidekiq
redis_url redis://redis:6379
fetch_interval 10s
queue_names default@type stdout
```
## Copyright
* Copyright(c) 2017- joker1007
* License
* MIT License