yabeda-schked 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +1 -0
- data/CHANGELOG.md +15 -0
- data/README.md +2 -2
- data/lib/yabeda/schked/version.rb +1 -1
- data/lib/yabeda/schked.rb +3 -3
- data/yabeda-schked-logo.png +0 -0
- data/yabeda-schked.gemspec +1 -1
- metadata +12 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c48ad18b5086f045518621966b5cc0e8dda7ed9d5e67a7a1a70449b64489173a
|
4
|
+
data.tar.gz: 289f8675e113fd3110ef82aaf6e64a1bf335df16952b75416c36faef071176e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d486abc724789fefc14ac2e7a8a1e531b84f95a3d0578bb2456db03bc05bcf2fc4e2642470988451c1a21b0b3a98391212ee85b59e769bbc75d03831cee76277
|
7
|
+
data.tar.gz: 3ef0b1d5daa1da8392012b30b542708bfeab2dd600182dd9c0a78942e415808c72314f477ac7ffdbdfa4856acbffe36eb007cda71fe8acb292744d212eef8406
|
data/.github/workflows/test.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -7,8 +7,23 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## 0.2.0 (2022-10-19)
|
11
|
+
|
12
|
+
### Added
|
13
|
+
|
14
|
+
- Schked 1.0 support. [@bibendi]
|
15
|
+
|
16
|
+
## 0.1.1 (2021-04-05)
|
17
|
+
|
18
|
+
### Fixed
|
19
|
+
|
20
|
+
- Rename `job` attribute to `name` to fix prometheus reserved key error. [@skryukov]
|
21
|
+
|
10
22
|
## 0.1.0 (2021-04-03)
|
11
23
|
|
24
|
+
### Added
|
25
|
+
|
12
26
|
- Initial release of yabeda-schked gem. [@skryukov]
|
13
27
|
|
14
28
|
[@skryukov]: https://github.com/skryukov
|
29
|
+
[@bibendi]: https://github.com/bibendi
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
+
# ![`Yabeda::Schked`](./yabeda-schked-logo.png)
|
2
|
+
|
1
3
|
[![Gem Version](https://badge.fury.io/rb/yabeda-schked.svg)](https://badge.fury.io/rb/yabeda-schked)
|
2
4
|
[![Build Status](https://github.com/yabeda-rb/yabeda-schked/actions/workflows/test.yml/badge.svg)](https://github.com/yabeda-rb/yabeda-schked/actions?query=branch%3Amaster)
|
3
5
|
|
4
|
-
# Yabeda::[Schked]
|
5
|
-
|
6
6
|
Built-in metrics for monitoring [Schked] recurring jobs out of the box! Part of the [yabeda] suite.
|
7
7
|
|
8
8
|
<a href="https://evilmartians.com/?utm_source=yabeda-schked&utm_campaign=project_page">
|
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
|
Binary file
|
data/yabeda-schked.gemspec
CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.required_ruby_version = ">= 2.4.0"
|
32
32
|
|
33
33
|
spec.add_dependency "yabeda", "~> 0.8"
|
34
|
-
spec.add_dependency "schked", "
|
34
|
+
spec.add_dependency "schked", ">= 0.3", "< 2"
|
35
35
|
|
36
36
|
spec.add_development_dependency "bundler", "~> 2.0"
|
37
37
|
spec.add_development_dependency "rake", "~> 13.0"
|
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.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Svyatoslav Kryukov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yabeda
|
@@ -28,16 +28,22 @@ dependencies:
|
|
28
28
|
name: schked
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0.3'
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '2'
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
|
-
- - "
|
41
|
+
- - ">="
|
39
42
|
- !ruby/object:Gem::Version
|
40
43
|
version: '0.3'
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '2'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: bundler
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -133,6 +139,7 @@ files:
|
|
133
139
|
- bin/setup
|
134
140
|
- lib/yabeda/schked.rb
|
135
141
|
- lib/yabeda/schked/version.rb
|
142
|
+
- yabeda-schked-logo.png
|
136
143
|
- yabeda-schked.gemspec
|
137
144
|
homepage: https://github.com/yabeda-rb/yabeda-schked
|
138
145
|
licenses:
|
@@ -156,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
163
|
- !ruby/object:Gem::Version
|
157
164
|
version: '0'
|
158
165
|
requirements: []
|
159
|
-
rubygems_version: 3.1.
|
166
|
+
rubygems_version: 3.1.6
|
160
167
|
signing_key:
|
161
168
|
specification_version: 4
|
162
169
|
summary: Export performance metrics for Schked
|