bc-prometheus-ruby 0.2.2 → 0.2.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7081f867f75f68a045ba992b66ea70ae9c473141e2079cc2d89452dc3dffcaf1
|
4
|
+
data.tar.gz: 839bfb88dc3907a1a1c55435e977591c5d55466cfcb391b15f490676c89cd4c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8bb47973c270e3418be1a4321f68321995a5a7c53370c46e72aae41d485911d7111c67f792b341f662f4d2ae7fcba07bd338c0a0c142754a12ba9e7f38d5454
|
7
|
+
data.tar.gz: e0ed22cff1348fdf596a7bef4c3c9885ec63621b0be30e7b0bf699fbc159a27cbff9215c506429f4612ef00e3f3072ae297f87c4bd9531f3874c8e17e9de6fad
|
data/CHANGELOG.md
CHANGED
@@ -40,11 +40,11 @@ module Bigcommerce
|
|
40
40
|
# Collect resque metrics from input data
|
41
41
|
#
|
42
42
|
def collect_metrics(data:, labels: {})
|
43
|
-
metric(:workers_total).observe(
|
44
|
-
metric(:jobs_failed_total).observe(
|
45
|
-
metric(:jobs_pending_total).observe(
|
46
|
-
metric(:jobs_processed_total).observe(
|
47
|
-
metric(:queues_total).observe(
|
43
|
+
metric(:workers_total).observe(data['workers_total'], labels)
|
44
|
+
metric(:jobs_failed_total).observe(data['jobs_failed_total'], labels)
|
45
|
+
metric(:jobs_pending_total).observe(data['jobs_pending_total'], labels)
|
46
|
+
metric(:jobs_processed_total).observe(data['jobs_processed_total'], labels)
|
47
|
+
metric(:queues_total).observe(data['queues_total'], labels)
|
48
48
|
|
49
49
|
data['queues'].each do |name, size|
|
50
50
|
metric(:queue_sizes).observe(size, labels.merge(queue: name))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bc-prometheus-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shaun McCormick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|