puma-metrics 1.4.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b752774b701f341f325b8d5535520944fd0a7fbc1e474ed64cc2c189b374a3b5
4
- data.tar.gz: 96e9922670abdc1305a6629d7aacc8c54df34acd3872981903481938889be425
3
+ metadata.gz: 22bee3aa4c7f95a7449d1486ce57455f1327120f943242534667e100405b777c
4
+ data.tar.gz: 24f7413bc4659cca27efcaf0ef6caa28bc10dda701e5827abae519daa744025a
5
5
  SHA512:
6
- metadata.gz: 228efa0bf952f77fb530673fbbf00dd8b20ed3f0cff9bfd5dc9d921e3ded3d8d16a60869e25d7da9c3c14d27963d70d7760a5bc6e92100d714a86d7568c81421
7
- data.tar.gz: 8ce2b97bcf2d9ac27b75acf7e1440bcaf40f47a1ca8188fa267b66fe2fbe75743ee58bafc3072a84cf67bae628e43db593909766269739e5101d1be14515ed00
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: steps
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
@@ -2,6 +2,23 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 1.5.0
6
+
7
+ Changes:
8
+
9
+ - Added support for puma 6.6.0 busy_threads stat
10
+ - Require puma 6.6.0 or newer
11
+
12
+ Housekeeping:
13
+
14
+ - Update dependencies
15
+
16
+ ## 1.4.2
17
+
18
+ Housekeeping:
19
+
20
+ - Relax constraint limit to puma 6, exclude 7.0.0
21
+
5
22
  ## 1.4.1
6
23
 
7
24
  Housekeeping:
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- puma-metrics (1.4.0)
4
+ puma-metrics (1.5.0)
5
5
  prometheus-client (>= 0.10)
6
- puma (~> 6)
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.13.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.25.5)
21
- nio4r (2.7.4)
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.9.0)
27
+ parser (3.3.10.0)
28
28
  ast (~> 2.4.1)
29
29
  racc
30
- prism (1.4.0)
30
+ prism (1.6.0)
31
31
  prometheus-client (4.2.5)
32
32
  base64
33
- puma (6.6.1)
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.0)
38
- regexp_parser (2.11.2)
39
- rexml (3.4.2)
40
- rubocop (1.80.2)
37
+ rake (13.3.1)
38
+ regexp_parser (2.11.3)
39
+ rexml (3.4.4)
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,16 +45,16 @@ 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.46.0, < 2.0)
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.46.0)
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)
55
- unicode-display_width (3.1.5)
56
- unicode-emoji (~> 4.0, >= 4.0.4)
57
- unicode-emoji (4.0.4)
55
+ unicode-display_width (3.2.0)
56
+ unicode-emoji (~> 4.1)
57
+ unicode-emoji (4.1.0)
58
58
 
59
59
  PLATFORMS
60
60
  ruby
@@ -68,4 +68,4 @@ DEPENDENCIES
68
68
  rubocop
69
69
 
70
70
  BUNDLED WITH
71
- 2.5.6
71
+ 2.7.2
@@ -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],
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Puma
4
4
  module Metrics
5
- VERSION = '1.4.1'
5
+ VERSION = '1.5.0'
6
6
  end
7
7
  end
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'] = 'false'
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'
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.1
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harm-Jan Blok
@@ -27,23 +27,30 @@ dependencies:
27
27
  name: puma
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
- - - "~>"
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 6.6.0
33
+ - - "!="
31
34
  - !ruby/object:Gem::Version
32
- version: '6'
35
+ version: 7.0.0
33
36
  type: :runtime
34
37
  prerelease: false
35
38
  version_requirements: !ruby/object:Gem::Requirement
36
39
  requirements:
37
- - - "~>"
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 6.6.0
43
+ - - "!="
38
44
  - !ruby/object:Gem::Version
39
- version: '6'
45
+ version: 7.0.0
40
46
  description: Puma plugin to export puma stats as prometheus metrics
41
47
  executables: []
42
48
  extensions: []
43
49
  extra_rdoc_files: []
44
50
  files:
45
51
  - ".editorconfig"
46
- - ".github/workflows/workflow.yml"
52
+ - ".github/workflows/release.yml"
53
+ - ".github/workflows/test.yml"
47
54
  - ".overcommit.yml"
48
55
  - ".rubocop.yml"
49
56
  - CHANGELOG.md
@@ -63,7 +70,7 @@ homepage: https://github.com/harmjanblok/puma-metrics
63
70
  licenses:
64
71
  - MIT
65
72
  metadata:
66
- rubygems_mfa_required: 'false'
73
+ rubygems_mfa_required: 'true'
67
74
  rdoc_options: []
68
75
  require_paths:
69
76
  - lib