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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c46bb1ff8d7455e04d0fbcea31d6b446692eb1ea61004ac805ee6e9a12b89990
4
- data.tar.gz: 7d7d1551d68b0c2554fc86c66b711aee0fdafe6c4129f336804b029a54105cc1
3
+ metadata.gz: d40b564d5254a6aac41e4ca7fe0a60833c64ae1c37c23dd1cb476e9ff0a016de
4
+ data.tar.gz: 200895576b86e3112d4b9bc5e014d20a0d07bf69b6e455be6ead60660d19ca41
5
5
  SHA512:
6
- metadata.gz: b175919a78b8b84e8bd8feb14ba7b9b36e232aaa82b1b4c4b44f1df5cbd8896447e7b473272332033dc4b251b1b8c00fa7fcae2387325ac8d929f2b1ee6cca11
7
- data.tar.gz: 5df540f797199de069dbecef60dcd8e57adcd148192729edff5c017ff7b0e360ee2a3d0c7f0346e5d709117aeaa5d4f06583101cda17733cea18e75bd63cd7bc
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[job success],
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[job success],
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], job: job_name(job)}
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Yabeda
4
4
  module Schked
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  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.0
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-03 00:00:00.000000000 Z
11
+ date: 2021-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yabeda