puma-metrics 1.4.2 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +30 -0
- data/.github/workflows/{workflow.yml → test.yml} +1 -20
- data/CHANGELOG.md +11 -0
- data/Gemfile.lock +13 -13
- data/lib/puma/metrics/parser.rb +4 -0
- data/lib/puma/metrics/version.rb +1 -1
- data/puma-metrics.gemspec +2 -2
- metadata +6 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 22bee3aa4c7f95a7449d1486ce57455f1327120f943242534667e100405b777c
|
|
4
|
+
data.tar.gz: 24f7413bc4659cca27efcaf0ef6caa28bc10dda701e5827abae519daa744025a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 78ca8ec54469aa6fea47e08ccc01c8582573a13718d5e11d7ea4ee473a3045f06db30c1468b131e885ae5ab5a1638ca3b016fac04fbc6533c825959ff32361bc
|
|
7
|
+
data.tar.gz: c0c29c150d7e04fd3ba648e4d5ff0e4ad0dba2bbaede0d099a10ee302f5d55f890dbe6a7b9672306331d3f282fa6a9e27d18b173b224e32059e8c7b1256e137c
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: release
|
|
2
|
+
on:
|
|
3
|
+
workflow_run:
|
|
4
|
+
branches: [main]
|
|
5
|
+
types:
|
|
6
|
+
- completed
|
|
7
|
+
workflows: ['test']
|
|
8
|
+
jobs:
|
|
9
|
+
release:
|
|
10
|
+
if: github.repository == 'harmjanblok/puma-metrics'
|
|
11
|
+
name: Push gem to RubyGems.org
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
|
|
14
|
+
permissions:
|
|
15
|
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
|
16
|
+
contents: write # IMPORTANT: this permission is required for `rake release` to push the release tag
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
# Set up
|
|
20
|
+
- uses: actions/checkout@v5
|
|
21
|
+
with:
|
|
22
|
+
persist-credentials: false
|
|
23
|
+
- name: Set up Ruby
|
|
24
|
+
uses: ruby/setup-ruby@v1
|
|
25
|
+
with:
|
|
26
|
+
bundler-cache: true
|
|
27
|
+
ruby-version: ruby
|
|
28
|
+
|
|
29
|
+
# Release
|
|
30
|
+
- uses: rubygems/release-gem@v1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: test
|
|
2
2
|
on:
|
|
3
3
|
push:
|
|
4
4
|
branches: [main]
|
|
@@ -24,22 +24,3 @@ jobs:
|
|
|
24
24
|
strategy:
|
|
25
25
|
matrix:
|
|
26
26
|
ruby: ['3.2', '3.3', '3.4']
|
|
27
|
-
deploy:
|
|
28
|
-
if: github.ref == 'refs/heads/main'
|
|
29
|
-
name: to rubygems
|
|
30
|
-
needs: test
|
|
31
|
-
runs-on: ubuntu-latest
|
|
32
|
-
steps:
|
|
33
|
-
- uses: actions/checkout@master
|
|
34
|
-
- uses: ruby/setup-ruby@master
|
|
35
|
-
with:
|
|
36
|
-
ruby-version: 3.4
|
|
37
|
-
- env:
|
|
38
|
-
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
|
|
39
|
-
run: |
|
|
40
|
-
mkdir -p $HOME/.gem
|
|
41
|
-
touch $HOME/.gem/credentials
|
|
42
|
-
chmod 0600 $HOME/.gem/credentials
|
|
43
|
-
printf -- "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials
|
|
44
|
-
gem build *.gemspec
|
|
45
|
-
gem push *.gem
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
puma-metrics (1.
|
|
4
|
+
puma-metrics (1.5.0)
|
|
5
5
|
prometheus-client (>= 0.10)
|
|
6
|
-
puma (>= 6, != 7.0.0)
|
|
6
|
+
puma (>= 6.6.0, != 7.0.0)
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
@@ -13,31 +13,31 @@ GEM
|
|
|
13
13
|
childprocess (5.1.0)
|
|
14
14
|
logger (~> 1.5)
|
|
15
15
|
iniparse (1.5.0)
|
|
16
|
-
json (2.
|
|
16
|
+
json (2.16.0)
|
|
17
17
|
language_server-protocol (3.17.0.5)
|
|
18
18
|
lint_roller (1.1.0)
|
|
19
19
|
logger (1.7.0)
|
|
20
|
-
minitest (5.
|
|
21
|
-
nio4r (2.7.
|
|
20
|
+
minitest (5.26.2)
|
|
21
|
+
nio4r (2.7.5)
|
|
22
22
|
overcommit (0.68.0)
|
|
23
23
|
childprocess (>= 0.6.3, < 6)
|
|
24
24
|
iniparse (~> 1.4)
|
|
25
25
|
rexml (>= 3.3.9)
|
|
26
26
|
parallel (1.27.0)
|
|
27
|
-
parser (3.3.
|
|
27
|
+
parser (3.3.10.0)
|
|
28
28
|
ast (~> 2.4.1)
|
|
29
29
|
racc
|
|
30
|
-
prism (1.
|
|
30
|
+
prism (1.6.0)
|
|
31
31
|
prometheus-client (4.2.5)
|
|
32
32
|
base64
|
|
33
|
-
puma (7.0
|
|
33
|
+
puma (7.1.0)
|
|
34
34
|
nio4r (~> 2.0)
|
|
35
35
|
racc (1.8.1)
|
|
36
36
|
rainbow (3.1.1)
|
|
37
|
-
rake (13.3.
|
|
37
|
+
rake (13.3.1)
|
|
38
38
|
regexp_parser (2.11.3)
|
|
39
39
|
rexml (3.4.4)
|
|
40
|
-
rubocop (1.
|
|
40
|
+
rubocop (1.81.7)
|
|
41
41
|
json (~> 2.3)
|
|
42
42
|
language_server-protocol (~> 3.17.0.2)
|
|
43
43
|
lint_roller (~> 1.1.0)
|
|
@@ -45,10 +45,10 @@ GEM
|
|
|
45
45
|
parser (>= 3.3.0.2)
|
|
46
46
|
rainbow (>= 2.2.2, < 4.0)
|
|
47
47
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
48
|
-
rubocop-ast (>= 1.
|
|
48
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
49
49
|
ruby-progressbar (~> 1.7)
|
|
50
50
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
51
|
-
rubocop-ast (1.
|
|
51
|
+
rubocop-ast (1.48.0)
|
|
52
52
|
parser (>= 3.3.7.2)
|
|
53
53
|
prism (~> 1.4)
|
|
54
54
|
ruby-progressbar (1.13.0)
|
|
@@ -68,4 +68,4 @@ DEPENDENCIES
|
|
|
68
68
|
rubocop
|
|
69
69
|
|
|
70
70
|
BUNDLED WITH
|
|
71
|
-
2.
|
|
71
|
+
2.7.2
|
data/lib/puma/metrics/parser.rb
CHANGED
|
@@ -34,6 +34,10 @@ module Puma
|
|
|
34
34
|
docstring: 'Number of established but unaccepted connections in the backlog',
|
|
35
35
|
labels: [:index],
|
|
36
36
|
preset_labels: { index: 0 })
|
|
37
|
+
registry.gauge(:puma_busy_threads,
|
|
38
|
+
docstring: 'How saturated the worker threads are with requests',
|
|
39
|
+
labels: [:index],
|
|
40
|
+
preset_labels: { index: 0 })
|
|
37
41
|
registry.gauge(:puma_running,
|
|
38
42
|
docstring: 'Number of running worker threads',
|
|
39
43
|
labels: [:index],
|
data/lib/puma/metrics/version.rb
CHANGED
data/puma-metrics.gemspec
CHANGED
|
@@ -17,10 +17,10 @@ Gem::Specification.new do |spec|
|
|
|
17
17
|
|
|
18
18
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
19
19
|
|
|
20
|
-
spec.metadata['rubygems_mfa_required'] = '
|
|
20
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
|
21
21
|
|
|
22
22
|
spec.required_ruby_version = '>= 3.0'
|
|
23
23
|
|
|
24
24
|
spec.add_dependency 'prometheus-client', '>= 0.10'
|
|
25
|
-
spec.add_dependency 'puma', '>= 6', '!= 7.0.0'
|
|
25
|
+
spec.add_dependency 'puma', '>= 6.6.0', '!= 7.0.0'
|
|
26
26
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: puma-metrics
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Harm-Jan Blok
|
|
@@ -29,7 +29,7 @@ dependencies:
|
|
|
29
29
|
requirements:
|
|
30
30
|
- - ">="
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version:
|
|
32
|
+
version: 6.6.0
|
|
33
33
|
- - "!="
|
|
34
34
|
- !ruby/object:Gem::Version
|
|
35
35
|
version: 7.0.0
|
|
@@ -39,7 +39,7 @@ dependencies:
|
|
|
39
39
|
requirements:
|
|
40
40
|
- - ">="
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
|
-
version:
|
|
42
|
+
version: 6.6.0
|
|
43
43
|
- - "!="
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
45
|
version: 7.0.0
|
|
@@ -49,7 +49,8 @@ extensions: []
|
|
|
49
49
|
extra_rdoc_files: []
|
|
50
50
|
files:
|
|
51
51
|
- ".editorconfig"
|
|
52
|
-
- ".github/workflows/
|
|
52
|
+
- ".github/workflows/release.yml"
|
|
53
|
+
- ".github/workflows/test.yml"
|
|
53
54
|
- ".overcommit.yml"
|
|
54
55
|
- ".rubocop.yml"
|
|
55
56
|
- CHANGELOG.md
|
|
@@ -69,7 +70,7 @@ homepage: https://github.com/harmjanblok/puma-metrics
|
|
|
69
70
|
licenses:
|
|
70
71
|
- MIT
|
|
71
72
|
metadata:
|
|
72
|
-
rubygems_mfa_required: '
|
|
73
|
+
rubygems_mfa_required: 'true'
|
|
73
74
|
rdoc_options: []
|
|
74
75
|
require_paths:
|
|
75
76
|
- lib
|