bc-prometheus-ruby 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 +5 -0
- data/README.md +1 -1
- data/bc-prometheus-ruby.gemspec +1 -0
- data/lib/bigcommerce/prometheus/server.rb +2 -2
- data/lib/bigcommerce/prometheus/version.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5981fa2cc9de83360716a878d9f1dd82c958eb39c44f0bbbe963923ffc0a52f0
|
4
|
+
data.tar.gz: bc3a367ccb46592a7202025eac89d45c376da0d68a3e1a377355a39a378c8af4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76d838f5a8740a6ab4dabf6f45f1d194ba6d5a5267622283dbd46102c11a1dd50bc47ab19826673d49eb21473e514ba2d5b2085982d57f1515ce7d2d79b6eed6
|
7
|
+
data.tar.gz: 99739ebe1afd9339d22836d58fcb162a69cb3064a41c7b7ace03e64901e425d1e77082c5453942eefbc3894891cfa8ddac5792e3ff9f3cd5a1a38a7a516fa0be
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,11 @@ Changelog for the bc-prometheus-ruby gem.
|
|
2
2
|
|
3
3
|
h3. Pending Release
|
4
4
|
|
5
|
+
h3. 0.1.1
|
6
|
+
|
7
|
+
- Add multitrap to more cleanly handle trap signals
|
8
|
+
- Use proc in signal handlers for consistent trap handling
|
9
|
+
|
5
10
|
h3. 0.1.0
|
6
11
|
|
7
12
|
- Replace WEBrick server from PrometheusExporter with Thin server implementation to reduce memory leakage
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# bc-prometheus-ruby - Drop-in Prometheus metrics
|
2
2
|
|
3
|
-
[![CircleCI](https://circleci.com/gh/bigcommerce/bc-prometheus-ruby.svg?style=svg&circle-token=fc3e2c4405a1f53a31e298f0ef981c2d0dfdee90)](https://circleci.com/gh/bigcommerce/bc-prometheus-ruby)
|
3
|
+
[![CircleCI](https://circleci.com/gh/bigcommerce/bc-prometheus-ruby.svg?style=svg&circle-token=fc3e2c4405a1f53a31e298f0ef981c2d0dfdee90)](https://circleci.com/gh/bigcommerce/bc-prometheus-ruby) [![Gem Version](https://badge.fury.io/rb/bc-prometheus-ruby.svg)](https://badge.fury.io/rb/bc-prometheus-ruby) [![Documentation](https://inch-ci.org/github/bigcommerce/bc-prometheus-ruby.svg?branch=master)](https://inch-ci.org/github/bigcommerce/bc-prometheus-ruby?branch=master)
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
data/bc-prometheus-ruby.gemspec
CHANGED
@@ -41,6 +41,7 @@ Gem::Specification.new do |spec|
|
|
41
41
|
spec.add_development_dependency 'rubocop', '>= 0.74'
|
42
42
|
spec.add_development_dependency 'simplecov', '>= 0.16'
|
43
43
|
|
44
|
+
spec.add_runtime_dependency 'multitrap', '~> 0.1'
|
44
45
|
spec.add_runtime_dependency 'prometheus_exporter', '~> 0.4'
|
45
46
|
spec.add_runtime_dependency 'thin', '~> 1.7'
|
46
47
|
end
|
@@ -108,8 +108,8 @@ module Bigcommerce
|
|
108
108
|
#
|
109
109
|
# :nocov:
|
110
110
|
def setup_signal_handlers
|
111
|
-
::Signal.trap('INT',
|
112
|
-
::Signal.trap('TERM',
|
111
|
+
::Signal.trap('INT', proc { stop })
|
112
|
+
::Signal.trap('TERM', proc { stop })
|
113
113
|
end
|
114
114
|
# :nocov:
|
115
115
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bc-prometheus-ruby
|
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
|
- Shaun McCormick
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0.16'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: multitrap
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0.1'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0.1'
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
140
|
name: prometheus_exporter
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|