bc-prometheus-ruby 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/lib/bigcommerce/prometheus.rb +1 -0
- data/lib/bigcommerce/prometheus/server.rb +4 -3
- data/lib/bigcommerce/prometheus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c4c4c0a02b669f30bb1fe0577bff4f4ea621b071e196ef4da9cf6fbcaf3cdc2
|
4
|
+
data.tar.gz: 63df1c931c201e6553130283cbce1970b43cc1801c0522249b9a2661821c7f12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b248ce10ec9d1a7e2d836fed0ddac2a294fe93878aae36b9b43681359ce34199d558bb2ba1b82a1eeeba23b4db9f6f22d6085ff5c0c28e4118dcea55bcda689c
|
7
|
+
data.tar.gz: 3351143d764d3057000302c228f988b024a25bda4aa75c6afa5a38a858827e5f24552f70d471007a3c2f9f4ca7cc00dbb94a6fec8ce468ac8dbf253a896fc6e0
|
data/CHANGELOG.md
CHANGED
@@ -15,6 +15,7 @@
|
|
15
15
|
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
16
16
|
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
17
17
|
#
|
18
|
+
require 'bigcommerce/multitrap'
|
18
19
|
require 'net/http'
|
19
20
|
require 'prometheus_exporter'
|
20
21
|
require 'prometheus_exporter/server'
|
@@ -67,7 +67,8 @@ module Bigcommerce
|
|
67
67
|
yield
|
68
68
|
@run_thread.join
|
69
69
|
rescue StandardError => e
|
70
|
-
|
70
|
+
warn "[bigcommerce-prometheus] Server crashed: #{e.message}"
|
71
|
+
stop
|
71
72
|
end
|
72
73
|
|
73
74
|
##
|
@@ -77,9 +78,9 @@ module Bigcommerce
|
|
77
78
|
@server.stop!
|
78
79
|
@run_thread.kill
|
79
80
|
@running = false
|
80
|
-
|
81
|
+
STDOUT.puts "[bigcommerce-prometheus][#{@process_name}] Prometheus exporter cleanly shut down"
|
81
82
|
rescue ::StandardError => e
|
82
|
-
|
83
|
+
warn "[bigcommerce-prometheus][#{@process_name}] Failed to stop exporter: #{e.message}"
|
83
84
|
end
|
84
85
|
|
85
86
|
##
|