yabeda-schked 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/yabeda/schked.rb +3 -3
- data/lib/yabeda/schked/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d40b564d5254a6aac41e4ca7fe0a60833c64ae1c37c23dd1cb476e9ff0a016de
|
4
|
+
data.tar.gz: 200895576b86e3112d4b9bc5e014d20a0d07bf69b6e455be6ead60660d19ca41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de3510e3b707dedba79b3394bb6a665cac29b714cd48d6e49e64437dd7ced8dfbfe1a2b46c26e3b3d052deaf68e3d6381ca54cde21a97c545dac0fe79c6beeb5
|
7
|
+
data.tar.gz: 7fe651fa986ee49fbc6805ac2b1b0cb1c9b3875f61376d2c43169051db24259ec056fe9633d5321adef8d74d19ff9df5ded94c8e991b2046b7dc89fa0c8b46d4
|
data/CHANGELOG.md
CHANGED
@@ -7,8 +7,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## 0.1.1 (2021-04-05)
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
|
14
|
+
- Rename `job` attribute to `name` to fix prometheus reserved key error. [@skryukov]
|
15
|
+
|
10
16
|
## 0.1.0 (2021-04-03)
|
11
17
|
|
18
|
+
### Added
|
19
|
+
|
12
20
|
- Initial release of yabeda-schked gem. [@skryukov]
|
13
21
|
|
14
22
|
[@skryukov]: https://github.com/skryukov
|
data/lib/yabeda/schked.rb
CHANGED
@@ -26,19 +26,19 @@ module Yabeda
|
|
26
26
|
group :schked
|
27
27
|
|
28
28
|
counter :jobs_executed_total,
|
29
|
-
tags: %i[
|
29
|
+
tags: %i[name success],
|
30
30
|
comment: "A counter of the number of jobs executed."
|
31
31
|
|
32
32
|
histogram :job_execution_runtime,
|
33
33
|
comment: "A histogram of the job execution time.",
|
34
34
|
unit: :seconds,
|
35
35
|
per: :job,
|
36
|
-
tags: %i[
|
36
|
+
tags: %i[name success],
|
37
37
|
buckets: LONG_RUNNING_JOB_RUNTIME_BUCKETS
|
38
38
|
end
|
39
39
|
|
40
40
|
::Schked.config.register_callback(:after_finish) do |job|
|
41
|
-
labels = {success: !job.opts[:failed],
|
41
|
+
labels = {success: !job.opts[:failed], name: job_name(job)}
|
42
42
|
Yabeda.schked.job_execution_runtime.measure(labels, job.last_work_time.round(3))
|
43
43
|
Yabeda.schked.jobs_executed_total.increment(labels)
|
44
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yabeda-schked
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Svyatoslav Kryukov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yabeda
|