sidekiq-influxdb 1.0.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.coveralls.yml +1 -0
- data/.rspec +1 -0
- data/.ruby-version +1 -1
- data/.travis.yml +12 -0
- data/CHANGELOG.md +34 -0
- data/CONTRIBUTING.md +20 -0
- data/Gemfile +0 -2
- data/LICENSE +21 -0
- data/Makefile +3 -0
- data/README.md +139 -44
- data/Rakefile +0 -1
- data/grafana_dashboard.json +1222 -0
- data/lib/sidekiq/influxdb.rb +2 -0
- data/lib/sidekiq/influxdb/version.rb +1 -1
- data/lib/sidekiq/metrics/queues.rb +41 -0
- data/lib/sidekiq/metrics/stats.rb +42 -0
- data/lib/sidekiq/middleware/server/influxdb.rb +55 -42
- data/sidekiq-influxdb.gemspec +2 -2
- metadata +26 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 16e8eb281a6977df828e98ca93c15c554c7cbb3cee209f8e1f0c708f41eeae0f
|
4
|
+
data.tar.gz: 781c1656c3f3ff13965ca34160c30e0647bfaba79a0568f1072c8947e92b05ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb6e296fc06c64045795560a9c9c0f06a79f0f1a8df7992cff4212086e54115cc6131e3dc9490c17c95ad8dfe46230ac15f4197aad88302b372b1cb9d963c6b7
|
7
|
+
data.tar.gz: e33436ebba2864a2bb58d8411af97ba1e382682fd746d6da7b48b88d8c2ccc24b071a29b9de1365979300a68a3f07e0c27f8404860b7705c199a35de4e2ffceb
|
data/.coveralls.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
repo_token: XaCJb7OLyYpeiDwmrm8xFal4PWZze5OyR
|
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--require ./spec/spec_helper.rb
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.0.0
|
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# Sidekiq-InfluxDB Changelog
|
2
|
+
|
3
|
+
## 1.4.1 (2021-04-20)
|
4
|
+
|
5
|
+
* Ruby 3 support
|
6
|
+
|
7
|
+
## 1.4.0 (2021-03-01)
|
8
|
+
|
9
|
+
* Added queue sizes collection class
|
10
|
+
* Added various Sidekiq internal statistics collection class
|
11
|
+
* Added Ruby 3.0
|
12
|
+
|
13
|
+
## 1.3.0 (2020-09-23)
|
14
|
+
|
15
|
+
* Dropped dependency on Bundler and Rake for development. The `gem` command is enough, really.
|
16
|
+
* Dropped **run-time** dependency on InfluxDB client. It was always possible to pass any object as client anyway.
|
17
|
+
* Added 100% test coverage with RSpec.
|
18
|
+
* Fixed and improved the "ignored classes" feature:
|
19
|
+
* It now correctly ignores job class names even if they come via ActiveJob (wrapped).
|
20
|
+
* It is now possible to pass either an array of class names or a single class name.
|
21
|
+
* It is now possible to pass either classes themselves or class names as strings.
|
22
|
+
* Fixed timestamps for minute and hour precisions
|
23
|
+
|
24
|
+
## 1.2.0 (2019-05-03)
|
25
|
+
|
26
|
+
* Support all InfluxDB time resolutions (added `ns`, `m`, `h`)
|
27
|
+
|
28
|
+
## 1.1.0 (2018-09-03)
|
29
|
+
|
30
|
+
* ActiveJob support added
|
31
|
+
|
32
|
+
## 1.0.0 (2018-08-08)
|
33
|
+
|
34
|
+
* Initial release
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# Sidekiq-InfluxDB
|
2
|
+
|
3
|
+
## Reference documentation
|
4
|
+
|
5
|
+
* [Sidekiq middleware](https://github.com/mperham/sidekiq/wiki/Middleware)
|
6
|
+
* [InfluxDB client](https://github.com/influxdata/influxdb-ruby)
|
7
|
+
|
8
|
+
## Contributing Guidelines
|
9
|
+
|
10
|
+
1. We welcome addition of useful Sidekiq metrics and optimisations of the existing ones.
|
11
|
+
1. All code should be covered by tests. This library is used in high load Sidekiq deployments. Failures are unacceptable.
|
12
|
+
1. Code should be easy for an average Rubyist to understand.
|
13
|
+
1. Each pull request should contain changes for a single goal.
|
14
|
+
1. All logic should be described in the README for users of the library in the most understandable and ready-to-use way.
|
15
|
+
1. This library uses an existing InfluxDB client object supplied by the user. It does not modify the client in any way.
|
16
|
+
1. It is better to write a little too many metrics than a little too few. It is good to let the user disable stuff they don't need.
|
17
|
+
1. It should work in as many Ruby versions as possible. People run a lot of old versions in production. Same for Sidekiq and InfluxDB.
|
18
|
+
1. RuboCop is not necessary and is not welcome in this project.
|
19
|
+
|
20
|
+
Thank you for your contributions!
|
data/Gemfile
CHANGED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Ilya Vassilevsky
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/Makefile
CHANGED
data/README.md
CHANGED
@@ -1,73 +1,103 @@
|
|
1
1
|
# Sidekiq::InfluxDB
|
2
2
|
|
3
|
-
[
|
3
|
+
[![Gem Version](https://img.shields.io/gem/v/sidekiq-influxdb.svg)](https://rubygems.org/gems/sidekiq-influxdb)
|
4
|
+
[![Travis CI](https://img.shields.io/travis/com/funbox/sidekiq-influxdb)](https://travis-ci.com/github/funbox/sidekiq-influxdb)
|
5
|
+
[![Coveralls](https://img.shields.io/coveralls/funbox/sidekiq-influxdb.svg)](https://coveralls.io/github/funbox/sidekiq-influxdb)
|
6
|
+
|
7
|
+
[Sidekiq](https://github.com/mperham/sidekiq/wiki) server middleware
|
8
|
+
that writes job lifecycle events as points to an [InfluxDB](http://docs.influxdata.com/influxdb/v1.3/) database.
|
9
|
+
Also includes classes that write global Sidekiq metrics and queue metrics.
|
4
10
|
|
5
11
|
## Installation
|
6
12
|
|
7
13
|
Add this gem to your application's `Gemfile`:
|
8
14
|
|
9
|
-
|
15
|
+
```bash
|
16
|
+
bundle add sidekiq-influxdb
|
17
|
+
```
|
10
18
|
|
11
19
|
## Usage
|
12
20
|
|
13
|
-
Sidekiq middleware
|
21
|
+
Add included middleware to your application's Sidekiq middleware stack.
|
22
|
+
The following examples assume that you already have an InfluxDB client object
|
23
|
+
in the `influxdb` variable.
|
24
|
+
This will create a middleware with all defaults (suitable for most deployments):
|
14
25
|
|
15
|
-
|
26
|
+
```ruby
|
27
|
+
# config/initializers/sidekiq.rb
|
16
28
|
|
17
|
-
|
29
|
+
require "sidekiq/middleware/server/influxdb"
|
18
30
|
|
19
|
-
|
31
|
+
Sidekiq.configure_server do |config|
|
32
|
+
config.server_middleware do |chain|
|
33
|
+
chain.add Sidekiq::Middleware::Server::InfluxDB, influxdb_client: influxdb
|
34
|
+
end
|
35
|
+
end
|
36
|
+
```
|
20
37
|
|
21
|
-
|
38
|
+
You can customize the middleware by passing more options:
|
22
39
|
|
23
40
|
```ruby
|
24
41
|
# config/initializers/sidekiq.rb
|
25
42
|
|
26
|
-
require "sidekiq/influxdb
|
43
|
+
require "sidekiq/middleware/server/influxdb"
|
27
44
|
|
28
45
|
Sidekiq.configure_server do |config|
|
29
46
|
config.server_middleware do |chain|
|
30
47
|
chain.add Sidekiq::Middleware::Server::InfluxDB,
|
31
|
-
influxdb_client:
|
32
|
-
series_name: 'sidekiq_jobs',
|
33
|
-
retention_policy:
|
34
|
-
start_events: true,
|
35
|
-
tags: {
|
36
|
-
except: [
|
48
|
+
influxdb_client: influxdb,
|
49
|
+
series_name: 'sidekiq_jobs', # This is the default one.
|
50
|
+
retention_policy: 'rp_name', # In case you want to write metrics to a non-default RP.
|
51
|
+
start_events: true, # Whether or not you want to know when jobs started. See `event` tag description below.
|
52
|
+
tags: {application: 'MyApp'}, # Anything you need on top. **Make sure that tag values have low cardinality!**
|
53
|
+
except: [UnimportantJob] # These job classes will be executed without sending any metrics.
|
37
54
|
end
|
38
55
|
end
|
39
56
|
```
|
40
57
|
|
41
|
-
|
58
|
+
This library assumes that you already have an InfluxDB client object set up the way you like.
|
59
|
+
It does not try to create one for you.
|
60
|
+
If that is not the case, you can learn how to create a client
|
61
|
+
in [InfluxDB client documentation](https://github.com/influxdata/influxdb-ruby#creating-a-client).
|
42
62
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
1511707465061000000 MyApp FooJob 1511707459.0186539 finish 51cc82fe75fbeba37b1ff18f default 8.046684265136719 6.042410135269165 2.0042741298675537
|
49
|
-
1511707467068000000 MyApp BarJob 1511707461.019835 start 3891f241ab84d3aba728822e default 6.049134016036987
|
50
|
-
1511707467068000000 MyApp BarJob 1511707461.019835 NoMethodError error 3891f241ab84d3aba728822e default 8.056788206100464 6.049134016036987 2.0076541900634766
|
63
|
+
**Warning:** This middleware is going to write _a lot_ of metrics.
|
64
|
+
Set up your InfluxDB client accordingly:
|
65
|
+
* either set `async: true` in the client's options to use its built-in batching feature,
|
66
|
+
* or install Telegraf, set up aggregation inside it, and set up InfluxDB client to send metrics to it,
|
67
|
+
* or both.
|
51
68
|
|
52
|
-
|
69
|
+
When you deploy this code, you will have the following series in your InfluxDB database:
|
53
70
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
71
|
+
```
|
72
|
+
> select * from sidekiq_jobs
|
73
|
+
name: sidekiq_jobs
|
74
|
+
time application class creation_time error event jid queue total waited worked
|
75
|
+
---- ----------- ----- ------------- ----- ----- --- ----- ----- ------ ------
|
76
|
+
1511707465061000000 MyApp FooJob 1511707459.0186539 start 51cc82fe75fbeba37b1ff18f default 6.042410135269165
|
77
|
+
1511707465061000000 MyApp FooJob 1511707459.0186539 finish 51cc82fe75fbeba37b1ff18f default 8.046684265136719 6.042410135269165 2.0042741298675537
|
78
|
+
1511707467068000000 MyApp BarJob 1511707461.019835 start 3891f241ab84d3aba728822e default 6.049134016036987
|
79
|
+
1511707467068000000 MyApp BarJob 1511707461.019835 NoMethodError error 3891f241ab84d3aba728822e default 8.056788206100464 6.049134016036987 2.0076541900634766
|
80
|
+
```
|
81
|
+
|
82
|
+
Tags (repetitive indexed data; for filtering and grouping by):
|
83
|
+
|
84
|
+
* `time` — standard InfluxDB timestamp. Precision of the supplied client is respected.
|
85
|
+
* `queue` — queue name.
|
86
|
+
* `class` — job class name. Classes from `except:` keyword argument are skipped (no data is sent to InfluxDB).
|
87
|
+
* `event` — what happened to the job at the specified `time`: `start`, `finish`, or `error`. If you initialize the middleware with `start_events: false`, there will be no `start` events.
|
88
|
+
* `error` — if `event=error`, this tag contains the exception class name.
|
89
|
+
* Your own tags from the initializer.
|
60
90
|
|
61
|
-
Values (unique
|
91
|
+
Values (unique non-indexed data; for aggregation):
|
62
92
|
|
63
|
-
* `jid` —
|
64
|
-
* `creation_time` —
|
93
|
+
* `jid` — unique job ID.
|
94
|
+
* `creation_time` — job creation time.
|
65
95
|
|
66
96
|
Values calculated by this gem (in seconds):
|
67
97
|
|
68
|
-
* `waited` —
|
69
|
-
* `worked` —
|
70
|
-
* `total` —
|
98
|
+
* `waited` — how long the job waited in the `queue` until Sidekiq got around to starting it.
|
99
|
+
* `worked` — how long it took to perform the job from start to finish or to an exception.
|
100
|
+
* `total` — how much time passed from job creation to finish. How long it took to do the job, in total.
|
71
101
|
|
72
102
|
This schema allows querying various job metrics effectively.
|
73
103
|
|
@@ -85,18 +115,83 @@ SELECT COUNT(jid) FROM sidekiq_jobs WHERE event = 'error' AND time > now() - 1d
|
|
85
115
|
|
86
116
|
Et cetera.
|
87
117
|
|
88
|
-
|
118
|
+
### Stats and Queues metrics
|
89
119
|
|
90
|
-
|
120
|
+
To collect metrics for task stats and queues, you need to run the following code periodically.
|
121
|
+
For example, you can use [Clockwork](https://rubygems.org/gems/clockwork) for that.
|
122
|
+
You can add settings like this to `clock.rb`:
|
91
123
|
|
92
|
-
|
124
|
+
```ruby
|
125
|
+
require "sidekiq/metrics/stats"
|
126
|
+
require "sidekiq/metrics/queues"
|
93
127
|
|
94
|
-
|
128
|
+
influx = InfluxDB::Client.new(options)
|
129
|
+
|
130
|
+
sidekiq_global_metrics = Sidekiq::Metrics::Stats.new(influxdb_client: influx)
|
131
|
+
sidekiq_queues_metrics = Sidekiq::Metrics::Queues.new(influxdb_client: influx)
|
132
|
+
|
133
|
+
every(1.minute, 'sidekiq_metrics') do
|
134
|
+
sidekiq_global_metrics.publish
|
135
|
+
sidekiq_queues_metrics.publish
|
136
|
+
end
|
137
|
+
```
|
95
138
|
|
96
|
-
|
139
|
+
For stats metrics:
|
97
140
|
|
98
|
-
|
141
|
+
```ruby
|
142
|
+
require "sidekiq/metrics/stats"
|
143
|
+
|
144
|
+
Sidekiq::Metrics::Stats.new(
|
145
|
+
influxdb_client: InfluxDB::Client.new(options), # REQUIRED
|
146
|
+
series_name: 'sidekiq_stats', # optional, default shown
|
147
|
+
retention_policy: nil, # optional, default nil
|
148
|
+
tags: {}, # optional, default {}
|
149
|
+
).publish
|
150
|
+
```
|
151
|
+
|
152
|
+
For queues metrics:
|
153
|
+
|
154
|
+
```ruby
|
155
|
+
require "sidekiq/metrics/queues"
|
156
|
+
|
157
|
+
Sidekiq::Metrics::Queues.new(
|
158
|
+
influxdb_client: InfluxDB::Client.new(options), # REQUIRED
|
159
|
+
series_name: 'sidekiq_queues', # optional, default shown
|
160
|
+
retention_policy: nil, # optional, default nil
|
161
|
+
tags: {}, # optional, default {}
|
162
|
+
).publish
|
163
|
+
```
|
164
|
+
|
165
|
+
When you run the code, you will have the following series in your InfluxDB database:
|
166
|
+
|
167
|
+
```
|
168
|
+
> select * from sidekiq_stats
|
169
|
+
name: sidekiq_stats
|
170
|
+
time size stat
|
171
|
+
---- ---- ----
|
172
|
+
1582502419000000000 9999 dead
|
173
|
+
1582502419000000000 0 workers
|
174
|
+
1582502419000000000 0 enqueued
|
175
|
+
1582502419000000000 23020182 processed
|
176
|
+
```
|
177
|
+
|
178
|
+
```
|
179
|
+
> select * from sidekiq_queues
|
180
|
+
name: sidekiq_queues
|
181
|
+
time queue size
|
182
|
+
---- ----- ----
|
183
|
+
1582502418000000000 default 0
|
184
|
+
1582502418000000000 queue_name_1 0
|
185
|
+
```
|
186
|
+
|
187
|
+
## Visualization
|
188
|
+
|
189
|
+
### Grafana
|
190
|
+
|
191
|
+
You can import a ready-made dashboard from [grafana_dashboard.json](grafana_dashboard.json).
|
192
|
+
|
193
|
+
## Development
|
99
194
|
|
100
|
-
|
195
|
+
See [Contributing Guidelines](CONTRIBUTING.md).
|
101
196
|
|
102
|
-
[![Sponsored by FunBox](https://funbox.ru/badges/
|
197
|
+
[![Sponsored by FunBox](https://funbox.ru/badges/sponsored_by_funbox_centered.svg)](https://funbox.ru)
|
data/Rakefile
CHANGED
@@ -0,0 +1,1222 @@
|
|
1
|
+
{
|
2
|
+
"annotations": {
|
3
|
+
"list": [
|
4
|
+
{
|
5
|
+
"builtIn": 1,
|
6
|
+
"datasource": "-- Grafana --",
|
7
|
+
"enable": true,
|
8
|
+
"hide": true,
|
9
|
+
"iconColor": "rgba(0, 211, 255, 1)",
|
10
|
+
"name": "Annotations & Alerts",
|
11
|
+
"type": "dashboard"
|
12
|
+
}
|
13
|
+
]
|
14
|
+
},
|
15
|
+
"editable": true,
|
16
|
+
"gnetId": null,
|
17
|
+
"graphTooltip": 0,
|
18
|
+
"id": 23,
|
19
|
+
"links": [],
|
20
|
+
"panels": [
|
21
|
+
{
|
22
|
+
"aliasColors": {},
|
23
|
+
"bars": false,
|
24
|
+
"dashLength": 10,
|
25
|
+
"dashes": false,
|
26
|
+
"datasource": "datasource_name",
|
27
|
+
"decimals": 0,
|
28
|
+
"editable": true,
|
29
|
+
"error": false,
|
30
|
+
"fieldConfig": {
|
31
|
+
"defaults": {
|
32
|
+
"custom": {},
|
33
|
+
"links": []
|
34
|
+
},
|
35
|
+
"overrides": []
|
36
|
+
},
|
37
|
+
"fill": 1,
|
38
|
+
"fillGradient": 0,
|
39
|
+
"grid": {},
|
40
|
+
"gridPos": {
|
41
|
+
"h": 8,
|
42
|
+
"w": 12,
|
43
|
+
"x": 0,
|
44
|
+
"y": 0
|
45
|
+
},
|
46
|
+
"hiddenSeries": false,
|
47
|
+
"id": 8,
|
48
|
+
"interval": "1m",
|
49
|
+
"isNew": true,
|
50
|
+
"legend": {
|
51
|
+
"alignAsTable": true,
|
52
|
+
"avg": false,
|
53
|
+
"current": true,
|
54
|
+
"hideEmpty": false,
|
55
|
+
"hideZero": false,
|
56
|
+
"max": true,
|
57
|
+
"min": false,
|
58
|
+
"rightSide": true,
|
59
|
+
"show": true,
|
60
|
+
"sideWidth": null,
|
61
|
+
"sort": "max",
|
62
|
+
"sortDesc": true,
|
63
|
+
"total": false,
|
64
|
+
"values": true
|
65
|
+
},
|
66
|
+
"lines": true,
|
67
|
+
"linewidth": 2,
|
68
|
+
"links": [],
|
69
|
+
"nullPointMode": "connected",
|
70
|
+
"percentage": false,
|
71
|
+
"pluginVersion": "7.1.5",
|
72
|
+
"pointradius": 5,
|
73
|
+
"points": false,
|
74
|
+
"renderer": "flot",
|
75
|
+
"seriesOverrides": [],
|
76
|
+
"spaceLength": 10,
|
77
|
+
"stack": false,
|
78
|
+
"steppedLine": false,
|
79
|
+
"targets": [
|
80
|
+
{
|
81
|
+
"alias": "$tag_queue",
|
82
|
+
"dsType": "influxdb",
|
83
|
+
"groupBy": [
|
84
|
+
{
|
85
|
+
"params": [
|
86
|
+
"$__interval"
|
87
|
+
],
|
88
|
+
"type": "time"
|
89
|
+
},
|
90
|
+
{
|
91
|
+
"params": [
|
92
|
+
"queue"
|
93
|
+
],
|
94
|
+
"type": "tag"
|
95
|
+
}
|
96
|
+
],
|
97
|
+
"measurement": "sidekiq_queues",
|
98
|
+
"orderByTime": "ASC",
|
99
|
+
"policy": "default",
|
100
|
+
"refId": "B",
|
101
|
+
"resultFormat": "time_series",
|
102
|
+
"select": [
|
103
|
+
[
|
104
|
+
{
|
105
|
+
"params": [
|
106
|
+
"size"
|
107
|
+
],
|
108
|
+
"type": "field"
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"params": [],
|
112
|
+
"type": "max"
|
113
|
+
}
|
114
|
+
]
|
115
|
+
],
|
116
|
+
"tags": []
|
117
|
+
}
|
118
|
+
],
|
119
|
+
"thresholds": [],
|
120
|
+
"timeFrom": null,
|
121
|
+
"timeRegions": [],
|
122
|
+
"timeShift": null,
|
123
|
+
"title": "Queue size",
|
124
|
+
"tooltip": {
|
125
|
+
"msResolution": false,
|
126
|
+
"shared": true,
|
127
|
+
"sort": 0,
|
128
|
+
"value_type": "cumulative"
|
129
|
+
},
|
130
|
+
"type": "graph",
|
131
|
+
"xaxis": {
|
132
|
+
"buckets": null,
|
133
|
+
"mode": "time",
|
134
|
+
"name": null,
|
135
|
+
"show": true,
|
136
|
+
"values": []
|
137
|
+
},
|
138
|
+
"yaxes": [
|
139
|
+
{
|
140
|
+
"decimals": 0,
|
141
|
+
"format": "short",
|
142
|
+
"label": null,
|
143
|
+
"logBase": 1,
|
144
|
+
"max": null,
|
145
|
+
"min": 0,
|
146
|
+
"show": true
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"format": "short",
|
150
|
+
"label": null,
|
151
|
+
"logBase": 1,
|
152
|
+
"max": null,
|
153
|
+
"min": null,
|
154
|
+
"show": false
|
155
|
+
}
|
156
|
+
],
|
157
|
+
"yaxis": {
|
158
|
+
"align": false,
|
159
|
+
"alignLevel": null
|
160
|
+
}
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"aliasColors": {},
|
164
|
+
"bars": false,
|
165
|
+
"dashLength": 10,
|
166
|
+
"dashes": false,
|
167
|
+
"datasource": "datasource_name",
|
168
|
+
"decimals": 0,
|
169
|
+
"description": "",
|
170
|
+
"editable": true,
|
171
|
+
"error": false,
|
172
|
+
"fieldConfig": {
|
173
|
+
"defaults": {
|
174
|
+
"custom": {},
|
175
|
+
"links": []
|
176
|
+
},
|
177
|
+
"overrides": []
|
178
|
+
},
|
179
|
+
"fill": 1,
|
180
|
+
"fillGradient": 0,
|
181
|
+
"grid": {},
|
182
|
+
"gridPos": {
|
183
|
+
"h": 8,
|
184
|
+
"w": 12,
|
185
|
+
"x": 12,
|
186
|
+
"y": 0
|
187
|
+
},
|
188
|
+
"hiddenSeries": false,
|
189
|
+
"id": 10,
|
190
|
+
"interval": "1m",
|
191
|
+
"isNew": true,
|
192
|
+
"legend": {
|
193
|
+
"alignAsTable": true,
|
194
|
+
"avg": false,
|
195
|
+
"current": true,
|
196
|
+
"hideEmpty": false,
|
197
|
+
"hideZero": false,
|
198
|
+
"max": true,
|
199
|
+
"min": true,
|
200
|
+
"rightSide": true,
|
201
|
+
"show": true,
|
202
|
+
"sideWidth": null,
|
203
|
+
"sort": "max",
|
204
|
+
"sortDesc": true,
|
205
|
+
"total": false,
|
206
|
+
"values": true
|
207
|
+
},
|
208
|
+
"lines": true,
|
209
|
+
"linewidth": 2,
|
210
|
+
"links": [],
|
211
|
+
"nullPointMode": "connected",
|
212
|
+
"percentage": false,
|
213
|
+
"pluginVersion": "7.1.5",
|
214
|
+
"pointradius": 5,
|
215
|
+
"points": false,
|
216
|
+
"renderer": "flot",
|
217
|
+
"seriesOverrides": [],
|
218
|
+
"spaceLength": 10,
|
219
|
+
"stack": false,
|
220
|
+
"steppedLine": false,
|
221
|
+
"targets": [
|
222
|
+
{
|
223
|
+
"alias": "$tag_stat",
|
224
|
+
"dsType": "influxdb",
|
225
|
+
"groupBy": [
|
226
|
+
{
|
227
|
+
"params": [
|
228
|
+
"$interval"
|
229
|
+
],
|
230
|
+
"type": "time"
|
231
|
+
},
|
232
|
+
{
|
233
|
+
"params": [
|
234
|
+
"stat"
|
235
|
+
],
|
236
|
+
"type": "tag"
|
237
|
+
}
|
238
|
+
],
|
239
|
+
"measurement": "sidekiq_stats",
|
240
|
+
"orderByTime": "ASC",
|
241
|
+
"policy": "default",
|
242
|
+
"refId": "A",
|
243
|
+
"resultFormat": "time_series",
|
244
|
+
"select": [
|
245
|
+
[
|
246
|
+
{
|
247
|
+
"params": [
|
248
|
+
"size"
|
249
|
+
],
|
250
|
+
"type": "field"
|
251
|
+
},
|
252
|
+
{
|
253
|
+
"params": [],
|
254
|
+
"type": "mean"
|
255
|
+
}
|
256
|
+
]
|
257
|
+
],
|
258
|
+
"tags": [
|
259
|
+
{
|
260
|
+
"key": "stat",
|
261
|
+
"operator": "<>",
|
262
|
+
"value": "processed"
|
263
|
+
},
|
264
|
+
{
|
265
|
+
"condition": "AND",
|
266
|
+
"key": "stat",
|
267
|
+
"operator": "<>",
|
268
|
+
"value": "processes_size"
|
269
|
+
},
|
270
|
+
{
|
271
|
+
"condition": "AND",
|
272
|
+
"key": "stat",
|
273
|
+
"operator": "<>",
|
274
|
+
"value": "workers_size"
|
275
|
+
}
|
276
|
+
]
|
277
|
+
}
|
278
|
+
],
|
279
|
+
"thresholds": [],
|
280
|
+
"timeFrom": null,
|
281
|
+
"timeRegions": [],
|
282
|
+
"timeShift": null,
|
283
|
+
"title": "Other statistics",
|
284
|
+
"tooltip": {
|
285
|
+
"msResolution": false,
|
286
|
+
"shared": true,
|
287
|
+
"sort": 0,
|
288
|
+
"value_type": "cumulative"
|
289
|
+
},
|
290
|
+
"type": "graph",
|
291
|
+
"xaxis": {
|
292
|
+
"buckets": null,
|
293
|
+
"mode": "time",
|
294
|
+
"name": null,
|
295
|
+
"show": true,
|
296
|
+
"values": []
|
297
|
+
},
|
298
|
+
"yaxes": [
|
299
|
+
{
|
300
|
+
"decimals": 0,
|
301
|
+
"format": "short",
|
302
|
+
"label": null,
|
303
|
+
"logBase": 1,
|
304
|
+
"max": null,
|
305
|
+
"min": null,
|
306
|
+
"show": true
|
307
|
+
},
|
308
|
+
{
|
309
|
+
"format": "short",
|
310
|
+
"label": null,
|
311
|
+
"logBase": 1,
|
312
|
+
"max": null,
|
313
|
+
"min": null,
|
314
|
+
"show": true
|
315
|
+
}
|
316
|
+
],
|
317
|
+
"yaxis": {
|
318
|
+
"align": false,
|
319
|
+
"alignLevel": null
|
320
|
+
}
|
321
|
+
},
|
322
|
+
{
|
323
|
+
"aliasColors": {
|
324
|
+
"dead_size": "semi-dark-red",
|
325
|
+
"failed": "semi-dark-yellow",
|
326
|
+
"processed": "semi-dark-green"
|
327
|
+
},
|
328
|
+
"bars": true,
|
329
|
+
"dashLength": 10,
|
330
|
+
"dashes": false,
|
331
|
+
"datasource": "datasource_name",
|
332
|
+
"decimals": 0,
|
333
|
+
"editable": true,
|
334
|
+
"error": false,
|
335
|
+
"fieldConfig": {
|
336
|
+
"defaults": {
|
337
|
+
"custom": {},
|
338
|
+
"links": []
|
339
|
+
},
|
340
|
+
"overrides": []
|
341
|
+
},
|
342
|
+
"fill": 1,
|
343
|
+
"fillGradient": 0,
|
344
|
+
"grid": {},
|
345
|
+
"gridPos": {
|
346
|
+
"h": 8,
|
347
|
+
"w": 12,
|
348
|
+
"x": 0,
|
349
|
+
"y": 8
|
350
|
+
},
|
351
|
+
"hiddenSeries": false,
|
352
|
+
"id": 58,
|
353
|
+
"interval": "1m",
|
354
|
+
"isNew": true,
|
355
|
+
"legend": {
|
356
|
+
"alignAsTable": true,
|
357
|
+
"avg": false,
|
358
|
+
"current": false,
|
359
|
+
"hideEmpty": false,
|
360
|
+
"hideZero": false,
|
361
|
+
"max": true,
|
362
|
+
"min": false,
|
363
|
+
"rightSide": true,
|
364
|
+
"show": true,
|
365
|
+
"sort": "total",
|
366
|
+
"sortDesc": true,
|
367
|
+
"total": true,
|
368
|
+
"values": true
|
369
|
+
},
|
370
|
+
"lines": false,
|
371
|
+
"linewidth": 2,
|
372
|
+
"links": [],
|
373
|
+
"nullPointMode": "connected",
|
374
|
+
"percentage": false,
|
375
|
+
"pluginVersion": "7.1.5",
|
376
|
+
"pointradius": 5,
|
377
|
+
"points": false,
|
378
|
+
"renderer": "flot",
|
379
|
+
"seriesOverrides": [],
|
380
|
+
"spaceLength": 10,
|
381
|
+
"stack": false,
|
382
|
+
"steppedLine": false,
|
383
|
+
"targets": [
|
384
|
+
{
|
385
|
+
"alias": "$tag_stat",
|
386
|
+
"dsType": "influxdb",
|
387
|
+
"groupBy": [
|
388
|
+
{
|
389
|
+
"params": [
|
390
|
+
"$interval"
|
391
|
+
],
|
392
|
+
"type": "time"
|
393
|
+
},
|
394
|
+
{
|
395
|
+
"params": [
|
396
|
+
"stat"
|
397
|
+
],
|
398
|
+
"type": "tag"
|
399
|
+
}
|
400
|
+
],
|
401
|
+
"measurement": "sidekiq_stats",
|
402
|
+
"orderByTime": "ASC",
|
403
|
+
"policy": "default",
|
404
|
+
"refId": "A",
|
405
|
+
"resultFormat": "time_series",
|
406
|
+
"select": [
|
407
|
+
[
|
408
|
+
{
|
409
|
+
"params": [
|
410
|
+
"size"
|
411
|
+
],
|
412
|
+
"type": "field"
|
413
|
+
},
|
414
|
+
{
|
415
|
+
"params": [],
|
416
|
+
"type": "max"
|
417
|
+
},
|
418
|
+
{
|
419
|
+
"params": [],
|
420
|
+
"type": "difference"
|
421
|
+
}
|
422
|
+
]
|
423
|
+
],
|
424
|
+
"tags": [
|
425
|
+
{
|
426
|
+
"key": "stat",
|
427
|
+
"operator": "=",
|
428
|
+
"value": "processed"
|
429
|
+
},
|
430
|
+
{
|
431
|
+
"condition": "OR",
|
432
|
+
"key": "stat",
|
433
|
+
"operator": "=",
|
434
|
+
"value": "failed"
|
435
|
+
},
|
436
|
+
{
|
437
|
+
"condition": "OR",
|
438
|
+
"key": "stat",
|
439
|
+
"operator": "=",
|
440
|
+
"value": "dead_size"
|
441
|
+
}
|
442
|
+
]
|
443
|
+
}
|
444
|
+
],
|
445
|
+
"thresholds": [],
|
446
|
+
"timeFrom": null,
|
447
|
+
"timeRegions": [],
|
448
|
+
"timeShift": null,
|
449
|
+
"title": "Processed, failed and dead",
|
450
|
+
"tooltip": {
|
451
|
+
"msResolution": false,
|
452
|
+
"shared": true,
|
453
|
+
"sort": 0,
|
454
|
+
"value_type": "cumulative"
|
455
|
+
},
|
456
|
+
"type": "graph",
|
457
|
+
"xaxis": {
|
458
|
+
"buckets": null,
|
459
|
+
"mode": "time",
|
460
|
+
"name": null,
|
461
|
+
"show": true,
|
462
|
+
"values": []
|
463
|
+
},
|
464
|
+
"yaxes": [
|
465
|
+
{
|
466
|
+
"decimals": 0,
|
467
|
+
"format": "short",
|
468
|
+
"label": null,
|
469
|
+
"logBase": 1,
|
470
|
+
"max": null,
|
471
|
+
"min": "0",
|
472
|
+
"show": true
|
473
|
+
},
|
474
|
+
{
|
475
|
+
"format": "short",
|
476
|
+
"label": null,
|
477
|
+
"logBase": 1,
|
478
|
+
"max": null,
|
479
|
+
"min": null,
|
480
|
+
"show": true
|
481
|
+
}
|
482
|
+
],
|
483
|
+
"yaxis": {
|
484
|
+
"align": false,
|
485
|
+
"alignLevel": null
|
486
|
+
}
|
487
|
+
},
|
488
|
+
{
|
489
|
+
"aliasColors": {},
|
490
|
+
"bars": true,
|
491
|
+
"dashLength": 10,
|
492
|
+
"dashes": false,
|
493
|
+
"datasource": "datasource_name",
|
494
|
+
"decimals": 0,
|
495
|
+
"fieldConfig": {
|
496
|
+
"defaults": {
|
497
|
+
"custom": {},
|
498
|
+
"links": []
|
499
|
+
},
|
500
|
+
"overrides": []
|
501
|
+
},
|
502
|
+
"fill": 1,
|
503
|
+
"fillGradient": 0,
|
504
|
+
"gridPos": {
|
505
|
+
"h": 8,
|
506
|
+
"w": 12,
|
507
|
+
"x": 12,
|
508
|
+
"y": 8
|
509
|
+
},
|
510
|
+
"hiddenSeries": false,
|
511
|
+
"id": 14,
|
512
|
+
"interval": "1m",
|
513
|
+
"legend": {
|
514
|
+
"alignAsTable": true,
|
515
|
+
"avg": false,
|
516
|
+
"current": true,
|
517
|
+
"hideEmpty": false,
|
518
|
+
"hideZero": true,
|
519
|
+
"max": true,
|
520
|
+
"min": true,
|
521
|
+
"rightSide": true,
|
522
|
+
"show": true,
|
523
|
+
"total": false,
|
524
|
+
"values": true
|
525
|
+
},
|
526
|
+
"lines": false,
|
527
|
+
"linewidth": 2,
|
528
|
+
"links": [],
|
529
|
+
"nullPointMode": "connected",
|
530
|
+
"percentage": false,
|
531
|
+
"pluginVersion": "7.1.5",
|
532
|
+
"pointradius": 1,
|
533
|
+
"points": false,
|
534
|
+
"renderer": "flot",
|
535
|
+
"seriesOverrides": [],
|
536
|
+
"spaceLength": 10,
|
537
|
+
"stack": false,
|
538
|
+
"steppedLine": false,
|
539
|
+
"targets": [
|
540
|
+
{
|
541
|
+
"alias": "$tag_stat",
|
542
|
+
"groupBy": [
|
543
|
+
{
|
544
|
+
"params": [
|
545
|
+
"$__interval"
|
546
|
+
],
|
547
|
+
"type": "time"
|
548
|
+
},
|
549
|
+
{
|
550
|
+
"params": [
|
551
|
+
"stat"
|
552
|
+
],
|
553
|
+
"type": "tag"
|
554
|
+
}
|
555
|
+
],
|
556
|
+
"measurement": "sidekiq_stats",
|
557
|
+
"orderByTime": "ASC",
|
558
|
+
"policy": "default",
|
559
|
+
"refId": "A",
|
560
|
+
"resultFormat": "time_series",
|
561
|
+
"select": [
|
562
|
+
[
|
563
|
+
{
|
564
|
+
"params": [
|
565
|
+
"size"
|
566
|
+
],
|
567
|
+
"type": "field"
|
568
|
+
},
|
569
|
+
{
|
570
|
+
"params": [],
|
571
|
+
"type": "max"
|
572
|
+
}
|
573
|
+
]
|
574
|
+
],
|
575
|
+
"tags": [
|
576
|
+
{
|
577
|
+
"key": "stat",
|
578
|
+
"operator": "=",
|
579
|
+
"value": "workers_size"
|
580
|
+
},
|
581
|
+
{
|
582
|
+
"condition": "OR",
|
583
|
+
"key": "stat",
|
584
|
+
"operator": "=",
|
585
|
+
"value": "processes_size"
|
586
|
+
}
|
587
|
+
]
|
588
|
+
}
|
589
|
+
],
|
590
|
+
"thresholds": [],
|
591
|
+
"timeFrom": null,
|
592
|
+
"timeRegions": [],
|
593
|
+
"timeShift": null,
|
594
|
+
"title": "Size processes and workers",
|
595
|
+
"tooltip": {
|
596
|
+
"shared": true,
|
597
|
+
"sort": 0,
|
598
|
+
"value_type": "individual"
|
599
|
+
},
|
600
|
+
"type": "graph",
|
601
|
+
"xaxis": {
|
602
|
+
"buckets": null,
|
603
|
+
"mode": "time",
|
604
|
+
"name": null,
|
605
|
+
"show": true,
|
606
|
+
"values": []
|
607
|
+
},
|
608
|
+
"yaxes": [
|
609
|
+
{
|
610
|
+
"decimals": 0,
|
611
|
+
"format": "short",
|
612
|
+
"label": null,
|
613
|
+
"logBase": 1,
|
614
|
+
"max": null,
|
615
|
+
"min": "0",
|
616
|
+
"show": true
|
617
|
+
},
|
618
|
+
{
|
619
|
+
"format": "short",
|
620
|
+
"label": null,
|
621
|
+
"logBase": 1,
|
622
|
+
"max": null,
|
623
|
+
"min": null,
|
624
|
+
"show": false
|
625
|
+
}
|
626
|
+
],
|
627
|
+
"yaxis": {
|
628
|
+
"align": false,
|
629
|
+
"alignLevel": null
|
630
|
+
}
|
631
|
+
},
|
632
|
+
{
|
633
|
+
"aliasColors": {},
|
634
|
+
"bars": true,
|
635
|
+
"dashLength": 10,
|
636
|
+
"dashes": false,
|
637
|
+
"datasource": "datasource_name",
|
638
|
+
"decimals": 0,
|
639
|
+
"fieldConfig": {
|
640
|
+
"defaults": {
|
641
|
+
"custom": {},
|
642
|
+
"links": []
|
643
|
+
},
|
644
|
+
"overrides": []
|
645
|
+
},
|
646
|
+
"fill": 1,
|
647
|
+
"fillGradient": 0,
|
648
|
+
"gridPos": {
|
649
|
+
"h": 8,
|
650
|
+
"w": 12,
|
651
|
+
"x": 0,
|
652
|
+
"y": 16
|
653
|
+
},
|
654
|
+
"hiddenSeries": false,
|
655
|
+
"id": 64,
|
656
|
+
"interval": "1m",
|
657
|
+
"legend": {
|
658
|
+
"alignAsTable": true,
|
659
|
+
"avg": false,
|
660
|
+
"current": false,
|
661
|
+
"hideEmpty": false,
|
662
|
+
"hideZero": false,
|
663
|
+
"max": true,
|
664
|
+
"min": false,
|
665
|
+
"rightSide": true,
|
666
|
+
"show": true,
|
667
|
+
"sideWidth": null,
|
668
|
+
"sort": "max",
|
669
|
+
"sortDesc": true,
|
670
|
+
"total": false,
|
671
|
+
"values": true
|
672
|
+
},
|
673
|
+
"lines": false,
|
674
|
+
"linewidth": 1,
|
675
|
+
"links": [],
|
676
|
+
"nullPointMode": "connected",
|
677
|
+
"percentage": false,
|
678
|
+
"pluginVersion": "7.1.5",
|
679
|
+
"pointradius": 5,
|
680
|
+
"points": false,
|
681
|
+
"renderer": "flot",
|
682
|
+
"seriesOverrides": [],
|
683
|
+
"spaceLength": 10,
|
684
|
+
"stack": false,
|
685
|
+
"steppedLine": false,
|
686
|
+
"targets": [
|
687
|
+
{
|
688
|
+
"alias": "$tag_class",
|
689
|
+
"groupBy": [
|
690
|
+
{
|
691
|
+
"params": [
|
692
|
+
"$interval"
|
693
|
+
],
|
694
|
+
"type": "time"
|
695
|
+
},
|
696
|
+
{
|
697
|
+
"params": [
|
698
|
+
"class"
|
699
|
+
],
|
700
|
+
"type": "tag"
|
701
|
+
}
|
702
|
+
],
|
703
|
+
"measurement": "sidekiq_jobs",
|
704
|
+
"orderByTime": "ASC",
|
705
|
+
"policy": "default",
|
706
|
+
"refId": "A",
|
707
|
+
"resultFormat": "time_series",
|
708
|
+
"select": [
|
709
|
+
[
|
710
|
+
{
|
711
|
+
"params": [
|
712
|
+
"waited"
|
713
|
+
],
|
714
|
+
"type": "field"
|
715
|
+
},
|
716
|
+
{
|
717
|
+
"params": [],
|
718
|
+
"type": "max"
|
719
|
+
}
|
720
|
+
]
|
721
|
+
],
|
722
|
+
"tags": []
|
723
|
+
}
|
724
|
+
],
|
725
|
+
"thresholds": [],
|
726
|
+
"timeFrom": null,
|
727
|
+
"timeRegions": [],
|
728
|
+
"timeShift": null,
|
729
|
+
"title": "Long waiting",
|
730
|
+
"tooltip": {
|
731
|
+
"shared": true,
|
732
|
+
"sort": 0,
|
733
|
+
"value_type": "individual"
|
734
|
+
},
|
735
|
+
"type": "graph",
|
736
|
+
"xaxis": {
|
737
|
+
"buckets": null,
|
738
|
+
"mode": "time",
|
739
|
+
"name": null,
|
740
|
+
"show": true,
|
741
|
+
"values": []
|
742
|
+
},
|
743
|
+
"yaxes": [
|
744
|
+
{
|
745
|
+
"decimals": 0,
|
746
|
+
"format": "s",
|
747
|
+
"label": "",
|
748
|
+
"logBase": 1,
|
749
|
+
"max": null,
|
750
|
+
"min": null,
|
751
|
+
"show": true
|
752
|
+
},
|
753
|
+
{
|
754
|
+
"format": "short",
|
755
|
+
"label": null,
|
756
|
+
"logBase": 1,
|
757
|
+
"max": null,
|
758
|
+
"min": null,
|
759
|
+
"show": false
|
760
|
+
}
|
761
|
+
],
|
762
|
+
"yaxis": {
|
763
|
+
"align": false,
|
764
|
+
"alignLevel": null
|
765
|
+
}
|
766
|
+
},
|
767
|
+
{
|
768
|
+
"aliasColors": {},
|
769
|
+
"bars": true,
|
770
|
+
"dashLength": 10,
|
771
|
+
"dashes": false,
|
772
|
+
"datasource": "datasource_name",
|
773
|
+
"decimals": 0,
|
774
|
+
"fieldConfig": {
|
775
|
+
"defaults": {
|
776
|
+
"custom": {},
|
777
|
+
"links": []
|
778
|
+
},
|
779
|
+
"overrides": []
|
780
|
+
},
|
781
|
+
"fill": 1,
|
782
|
+
"fillGradient": 0,
|
783
|
+
"gridPos": {
|
784
|
+
"h": 8,
|
785
|
+
"w": 12,
|
786
|
+
"x": 12,
|
787
|
+
"y": 16
|
788
|
+
},
|
789
|
+
"hiddenSeries": false,
|
790
|
+
"id": 66,
|
791
|
+
"interval": "1m",
|
792
|
+
"legend": {
|
793
|
+
"alignAsTable": true,
|
794
|
+
"avg": false,
|
795
|
+
"current": false,
|
796
|
+
"hideEmpty": false,
|
797
|
+
"hideZero": false,
|
798
|
+
"max": true,
|
799
|
+
"min": false,
|
800
|
+
"rightSide": true,
|
801
|
+
"show": true,
|
802
|
+
"sort": "max",
|
803
|
+
"sortDesc": true,
|
804
|
+
"total": false,
|
805
|
+
"values": true
|
806
|
+
},
|
807
|
+
"lines": false,
|
808
|
+
"linewidth": 1,
|
809
|
+
"links": [],
|
810
|
+
"nullPointMode": "connected",
|
811
|
+
"percentage": false,
|
812
|
+
"pluginVersion": "7.1.5",
|
813
|
+
"pointradius": 5,
|
814
|
+
"points": false,
|
815
|
+
"renderer": "flot",
|
816
|
+
"seriesOverrides": [],
|
817
|
+
"spaceLength": 10,
|
818
|
+
"stack": false,
|
819
|
+
"steppedLine": false,
|
820
|
+
"targets": [
|
821
|
+
{
|
822
|
+
"alias": "$tag_class",
|
823
|
+
"groupBy": [
|
824
|
+
{
|
825
|
+
"params": [
|
826
|
+
"$interval"
|
827
|
+
],
|
828
|
+
"type": "time"
|
829
|
+
},
|
830
|
+
{
|
831
|
+
"params": [
|
832
|
+
"class"
|
833
|
+
],
|
834
|
+
"type": "tag"
|
835
|
+
}
|
836
|
+
],
|
837
|
+
"measurement": "sidekiq_jobs",
|
838
|
+
"orderByTime": "ASC",
|
839
|
+
"policy": "default",
|
840
|
+
"refId": "A",
|
841
|
+
"resultFormat": "time_series",
|
842
|
+
"select": [
|
843
|
+
[
|
844
|
+
{
|
845
|
+
"params": [
|
846
|
+
"worked"
|
847
|
+
],
|
848
|
+
"type": "field"
|
849
|
+
},
|
850
|
+
{
|
851
|
+
"params": [],
|
852
|
+
"type": "max"
|
853
|
+
}
|
854
|
+
]
|
855
|
+
],
|
856
|
+
"tags": []
|
857
|
+
}
|
858
|
+
],
|
859
|
+
"thresholds": [],
|
860
|
+
"timeFrom": null,
|
861
|
+
"timeRegions": [],
|
862
|
+
"timeShift": null,
|
863
|
+
"title": "Long run",
|
864
|
+
"tooltip": {
|
865
|
+
"shared": true,
|
866
|
+
"sort": 0,
|
867
|
+
"value_type": "individual"
|
868
|
+
},
|
869
|
+
"type": "graph",
|
870
|
+
"xaxis": {
|
871
|
+
"buckets": null,
|
872
|
+
"mode": "time",
|
873
|
+
"name": null,
|
874
|
+
"show": true,
|
875
|
+
"values": []
|
876
|
+
},
|
877
|
+
"yaxes": [
|
878
|
+
{
|
879
|
+
"decimals": 0,
|
880
|
+
"format": "s",
|
881
|
+
"label": "",
|
882
|
+
"logBase": 1,
|
883
|
+
"max": null,
|
884
|
+
"min": null,
|
885
|
+
"show": true
|
886
|
+
},
|
887
|
+
{
|
888
|
+
"format": "short",
|
889
|
+
"label": null,
|
890
|
+
"logBase": 1,
|
891
|
+
"max": null,
|
892
|
+
"min": null,
|
893
|
+
"show": false
|
894
|
+
}
|
895
|
+
],
|
896
|
+
"yaxis": {
|
897
|
+
"align": false,
|
898
|
+
"alignLevel": null
|
899
|
+
}
|
900
|
+
},
|
901
|
+
{
|
902
|
+
"aliasColors": {},
|
903
|
+
"bars": true,
|
904
|
+
"dashLength": 10,
|
905
|
+
"dashes": false,
|
906
|
+
"datasource": "datasource_name",
|
907
|
+
"decimals": 0,
|
908
|
+
"fieldConfig": {
|
909
|
+
"defaults": {
|
910
|
+
"custom": {},
|
911
|
+
"links": []
|
912
|
+
},
|
913
|
+
"overrides": []
|
914
|
+
},
|
915
|
+
"fill": 1,
|
916
|
+
"fillGradient": 0,
|
917
|
+
"gridPos": {
|
918
|
+
"h": 8,
|
919
|
+
"w": 12,
|
920
|
+
"x": 0,
|
921
|
+
"y": 24
|
922
|
+
},
|
923
|
+
"hiddenSeries": false,
|
924
|
+
"id": 68,
|
925
|
+
"interval": "1m",
|
926
|
+
"legend": {
|
927
|
+
"alignAsTable": true,
|
928
|
+
"avg": false,
|
929
|
+
"current": false,
|
930
|
+
"hideEmpty": false,
|
931
|
+
"hideZero": false,
|
932
|
+
"max": true,
|
933
|
+
"min": false,
|
934
|
+
"rightSide": true,
|
935
|
+
"show": true,
|
936
|
+
"sideWidth": null,
|
937
|
+
"sort": "max",
|
938
|
+
"sortDesc": true,
|
939
|
+
"total": false,
|
940
|
+
"values": true
|
941
|
+
},
|
942
|
+
"lines": false,
|
943
|
+
"linewidth": 1,
|
944
|
+
"links": [],
|
945
|
+
"nullPointMode": "connected",
|
946
|
+
"percentage": false,
|
947
|
+
"pluginVersion": "7.1.5",
|
948
|
+
"pointradius": 5,
|
949
|
+
"points": false,
|
950
|
+
"renderer": "flot",
|
951
|
+
"seriesOverrides": [],
|
952
|
+
"spaceLength": 10,
|
953
|
+
"stack": true,
|
954
|
+
"steppedLine": false,
|
955
|
+
"targets": [
|
956
|
+
{
|
957
|
+
"alias": "$tag_class",
|
958
|
+
"groupBy": [
|
959
|
+
{
|
960
|
+
"params": [
|
961
|
+
"$interval"
|
962
|
+
],
|
963
|
+
"type": "time"
|
964
|
+
},
|
965
|
+
{
|
966
|
+
"params": [
|
967
|
+
"class"
|
968
|
+
],
|
969
|
+
"type": "tag"
|
970
|
+
}
|
971
|
+
],
|
972
|
+
"measurement": "sidekiq_jobs",
|
973
|
+
"orderByTime": "ASC",
|
974
|
+
"policy": "default",
|
975
|
+
"refId": "A",
|
976
|
+
"resultFormat": "time_series",
|
977
|
+
"select": [
|
978
|
+
[
|
979
|
+
{
|
980
|
+
"params": [
|
981
|
+
"total"
|
982
|
+
],
|
983
|
+
"type": "field"
|
984
|
+
},
|
985
|
+
{
|
986
|
+
"params": [],
|
987
|
+
"type": "count"
|
988
|
+
}
|
989
|
+
]
|
990
|
+
],
|
991
|
+
"tags": [
|
992
|
+
{
|
993
|
+
"key": "event",
|
994
|
+
"operator": "=",
|
995
|
+
"value": "finish"
|
996
|
+
}
|
997
|
+
]
|
998
|
+
}
|
999
|
+
],
|
1000
|
+
"thresholds": [],
|
1001
|
+
"timeFrom": null,
|
1002
|
+
"timeRegions": [],
|
1003
|
+
"timeShift": null,
|
1004
|
+
"title": "Completed",
|
1005
|
+
"tooltip": {
|
1006
|
+
"shared": true,
|
1007
|
+
"sort": 0,
|
1008
|
+
"value_type": "individual"
|
1009
|
+
},
|
1010
|
+
"type": "graph",
|
1011
|
+
"xaxis": {
|
1012
|
+
"buckets": null,
|
1013
|
+
"mode": "time",
|
1014
|
+
"name": null,
|
1015
|
+
"show": true,
|
1016
|
+
"values": []
|
1017
|
+
},
|
1018
|
+
"yaxes": [
|
1019
|
+
{
|
1020
|
+
"format": "short",
|
1021
|
+
"label": null,
|
1022
|
+
"logBase": 1,
|
1023
|
+
"max": null,
|
1024
|
+
"min": null,
|
1025
|
+
"show": true
|
1026
|
+
},
|
1027
|
+
{
|
1028
|
+
"format": "short",
|
1029
|
+
"label": null,
|
1030
|
+
"logBase": 1,
|
1031
|
+
"max": null,
|
1032
|
+
"min": null,
|
1033
|
+
"show": true
|
1034
|
+
}
|
1035
|
+
],
|
1036
|
+
"yaxis": {
|
1037
|
+
"align": false,
|
1038
|
+
"alignLevel": null
|
1039
|
+
}
|
1040
|
+
},
|
1041
|
+
{
|
1042
|
+
"aliasColors": {},
|
1043
|
+
"bars": true,
|
1044
|
+
"dashLength": 10,
|
1045
|
+
"dashes": false,
|
1046
|
+
"datasource": "datasource_name",
|
1047
|
+
"decimals": 0,
|
1048
|
+
"fieldConfig": {
|
1049
|
+
"defaults": {
|
1050
|
+
"custom": {},
|
1051
|
+
"links": []
|
1052
|
+
},
|
1053
|
+
"overrides": []
|
1054
|
+
},
|
1055
|
+
"fill": 1,
|
1056
|
+
"fillGradient": 0,
|
1057
|
+
"gridPos": {
|
1058
|
+
"h": 8,
|
1059
|
+
"w": 12,
|
1060
|
+
"x": 12,
|
1061
|
+
"y": 24
|
1062
|
+
},
|
1063
|
+
"hiddenSeries": false,
|
1064
|
+
"id": 70,
|
1065
|
+
"interval": "1m",
|
1066
|
+
"legend": {
|
1067
|
+
"alignAsTable": true,
|
1068
|
+
"avg": false,
|
1069
|
+
"current": false,
|
1070
|
+
"hideEmpty": false,
|
1071
|
+
"hideZero": false,
|
1072
|
+
"max": true,
|
1073
|
+
"min": false,
|
1074
|
+
"rightSide": true,
|
1075
|
+
"show": true,
|
1076
|
+
"sort": "total",
|
1077
|
+
"sortDesc": true,
|
1078
|
+
"total": true,
|
1079
|
+
"values": true
|
1080
|
+
},
|
1081
|
+
"lines": false,
|
1082
|
+
"linewidth": 1,
|
1083
|
+
"links": [],
|
1084
|
+
"nullPointMode": "connected",
|
1085
|
+
"percentage": false,
|
1086
|
+
"pluginVersion": "7.1.5",
|
1087
|
+
"pointradius": 5,
|
1088
|
+
"points": false,
|
1089
|
+
"renderer": "flot",
|
1090
|
+
"seriesOverrides": [],
|
1091
|
+
"spaceLength": 10,
|
1092
|
+
"stack": true,
|
1093
|
+
"steppedLine": false,
|
1094
|
+
"targets": [
|
1095
|
+
{
|
1096
|
+
"alias": "$tag_class",
|
1097
|
+
"groupBy": [
|
1098
|
+
{
|
1099
|
+
"params": [
|
1100
|
+
"$interval"
|
1101
|
+
],
|
1102
|
+
"type": "time"
|
1103
|
+
},
|
1104
|
+
{
|
1105
|
+
"params": [
|
1106
|
+
"class"
|
1107
|
+
],
|
1108
|
+
"type": "tag"
|
1109
|
+
}
|
1110
|
+
],
|
1111
|
+
"measurement": "sidekiq_jobs",
|
1112
|
+
"orderByTime": "ASC",
|
1113
|
+
"policy": "default",
|
1114
|
+
"refId": "A",
|
1115
|
+
"resultFormat": "time_series",
|
1116
|
+
"select": [
|
1117
|
+
[
|
1118
|
+
{
|
1119
|
+
"params": [
|
1120
|
+
"total"
|
1121
|
+
],
|
1122
|
+
"type": "field"
|
1123
|
+
},
|
1124
|
+
{
|
1125
|
+
"params": [],
|
1126
|
+
"type": "count"
|
1127
|
+
}
|
1128
|
+
]
|
1129
|
+
],
|
1130
|
+
"tags": [
|
1131
|
+
{
|
1132
|
+
"key": "event",
|
1133
|
+
"operator": "=",
|
1134
|
+
"value": "error"
|
1135
|
+
}
|
1136
|
+
]
|
1137
|
+
}
|
1138
|
+
],
|
1139
|
+
"thresholds": [],
|
1140
|
+
"timeFrom": null,
|
1141
|
+
"timeRegions": [],
|
1142
|
+
"timeShift": null,
|
1143
|
+
"title": "Fallen",
|
1144
|
+
"tooltip": {
|
1145
|
+
"shared": true,
|
1146
|
+
"sort": 0,
|
1147
|
+
"value_type": "individual"
|
1148
|
+
},
|
1149
|
+
"type": "graph",
|
1150
|
+
"xaxis": {
|
1151
|
+
"buckets": null,
|
1152
|
+
"mode": "time",
|
1153
|
+
"name": null,
|
1154
|
+
"show": true,
|
1155
|
+
"values": []
|
1156
|
+
},
|
1157
|
+
"yaxes": [
|
1158
|
+
{
|
1159
|
+
"decimals": 0,
|
1160
|
+
"format": "short",
|
1161
|
+
"label": null,
|
1162
|
+
"logBase": 1,
|
1163
|
+
"max": null,
|
1164
|
+
"min": "0",
|
1165
|
+
"show": true
|
1166
|
+
},
|
1167
|
+
{
|
1168
|
+
"format": "short",
|
1169
|
+
"label": null,
|
1170
|
+
"logBase": 1,
|
1171
|
+
"max": null,
|
1172
|
+
"min": null,
|
1173
|
+
"show": true
|
1174
|
+
}
|
1175
|
+
],
|
1176
|
+
"yaxis": {
|
1177
|
+
"align": false,
|
1178
|
+
"alignLevel": null
|
1179
|
+
}
|
1180
|
+
}
|
1181
|
+
],
|
1182
|
+
"refresh": "5s",
|
1183
|
+
"schemaVersion": 26,
|
1184
|
+
"style": "dark",
|
1185
|
+
"tags": [],
|
1186
|
+
"templating": {
|
1187
|
+
"list": []
|
1188
|
+
},
|
1189
|
+
"time": {
|
1190
|
+
"from": "now-6h",
|
1191
|
+
"to": "now"
|
1192
|
+
},
|
1193
|
+
"timepicker": {
|
1194
|
+
"refresh_intervals": [
|
1195
|
+
"5s",
|
1196
|
+
"10s",
|
1197
|
+
"30s",
|
1198
|
+
"1m",
|
1199
|
+
"5m",
|
1200
|
+
"15m",
|
1201
|
+
"30m",
|
1202
|
+
"1h",
|
1203
|
+
"2h",
|
1204
|
+
"1d"
|
1205
|
+
],
|
1206
|
+
"time_options": [
|
1207
|
+
"5m",
|
1208
|
+
"15m",
|
1209
|
+
"1h",
|
1210
|
+
"6h",
|
1211
|
+
"12h",
|
1212
|
+
"24h",
|
1213
|
+
"2d",
|
1214
|
+
"7d",
|
1215
|
+
"30d"
|
1216
|
+
]
|
1217
|
+
},
|
1218
|
+
"timezone": "browser",
|
1219
|
+
"title": "sidekiq",
|
1220
|
+
"uid": "w5BtVbsik2",
|
1221
|
+
"version": 15
|
1222
|
+
}
|