yabeda-puma-plugin 0.5.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build-release.yml +32 -4
- data/.github/workflows/test.yml +17 -8
- data/CHANGELOG.md +61 -0
- data/Gemfile +5 -1
- data/README.md +44 -1
- data/docker-compose.yml +1 -1
- data/lib/puma/plugin/yabeda.rb +7 -7
- data/lib/puma/plugin/yabeda_prometheus.rb +59 -10
- data/lib/yabeda/puma/plugin/version.rb +1 -1
- data/yabeda-puma-plugin-logo.png +0 -0
- data/yabeda-puma-plugin.gemspec +3 -2
- metadata +25 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 162d9000d77164bd50dfb7745f5cccd24dd33fbc16924c1643b8403e0f4dcda8
|
4
|
+
data.tar.gz: 9933179275d105ac9f8e6b41c7e046f70b67df88a244dbbef62c6a37748720eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e49fe7f43fe1f8a68b2b221390ab77c4961b4f10776279d73e761580b193948a39c11d00913004f6cb9511398d603018e6ee07014faefb06c30328ddadeb992c
|
7
|
+
data.tar.gz: bdc45f4701f90333891c90f7d6657dafac35e171c636c68630a36571b9fc0e039654285b566a7b5b1bf4086ee88737ab40ebae8a1d05375566a32a296b2de8b9
|
@@ -21,16 +21,26 @@ jobs:
|
|
21
21
|
git fetch --tags --force # Really fetch annotated tag. See https://github.com/actions/checkout/issues/290#issuecomment-680260080
|
22
22
|
echo ::set-output name=version::${GITHUB_REF#refs/tags/v}
|
23
23
|
echo ::set-output name=subject::$(git for-each-ref $GITHUB_REF --format='%(contents:subject)')
|
24
|
+
# Extract changelog entries between this and previous version headers
|
25
|
+
escaped_version=$(echo ${GITHUB_REF#refs/tags/v} | sed -e 's/[]\/$*.^[]/\\&/g')
|
26
|
+
changelog=$(awk "BEGIN{inrelease=0} /## ${escaped_version}/{inrelease=1;next} /## [0-9]+\.[0-9]+\.[0-9]+/{inrelease=0;exit} {if (inrelease) print}" CHANGELOG.md)
|
24
27
|
# Multiline body for release. See https://github.community/t/set-output-truncates-multiline-strings/16852/5
|
25
28
|
BODY="$(git for-each-ref $GITHUB_REF --format='%(contents:body)')"
|
29
|
+
BODY="${BODY}"$'\n'"${changelog}"
|
26
30
|
BODY="${BODY//'%'/'%25'}"
|
27
31
|
BODY="${BODY//$'\n'/'%0A'}"
|
28
32
|
BODY="${BODY//$'\r'/'%0D'}"
|
29
33
|
echo "::set-output name=body::$BODY"
|
34
|
+
# Add pre-release option if tag name has any suffix after vMAJOR.MINOR.PATCH
|
35
|
+
if [[ ${GITHUB_REF#refs/tags/} =~ ^v[0-9]+\.[0-9]+\.[0-9]+.+ ]]; then
|
36
|
+
echo ::set-output name=prerelease::true
|
37
|
+
fi
|
30
38
|
- name: Build gem
|
31
39
|
run: gem build
|
40
|
+
- name: Calculate checksums
|
41
|
+
run: sha256sum yabeda-puma-plugin-${{ steps.tag.outputs.version }}.gem > SHA256SUM
|
32
42
|
- name: Check version
|
33
|
-
run: ls yabeda-puma-plugin-${{ steps.tag.outputs.version }}.gem
|
43
|
+
run: ls -l yabeda-puma-plugin-${{ steps.tag.outputs.version }}.gem
|
34
44
|
- name: Create Release
|
35
45
|
id: create_release
|
36
46
|
uses: actions/create-release@v1
|
@@ -41,9 +51,8 @@ jobs:
|
|
41
51
|
release_name: ${{ steps.tag.outputs.subject }}
|
42
52
|
body: ${{ steps.tag.outputs.body }}
|
43
53
|
draft: false
|
44
|
-
prerelease:
|
45
|
-
- name: Upload
|
46
|
-
id: upload-release-asset
|
54
|
+
prerelease: ${{ steps.tag.outputs.prerelease }}
|
55
|
+
- name: Upload built gem as release asset
|
47
56
|
uses: actions/upload-release-asset@v1
|
48
57
|
env:
|
49
58
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
@@ -52,3 +61,22 @@ jobs:
|
|
52
61
|
asset_path: yabeda-puma-plugin-${{ steps.tag.outputs.version }}.gem
|
53
62
|
asset_name: yabeda-puma-plugin-${{ steps.tag.outputs.version }}.gem
|
54
63
|
asset_content_type: application/x-tar
|
64
|
+
- name: Upload checksums as release asset
|
65
|
+
uses: actions/upload-release-asset@v1
|
66
|
+
env:
|
67
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
68
|
+
with:
|
69
|
+
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
70
|
+
asset_path: SHA256SUM
|
71
|
+
asset_name: SHA256SUM
|
72
|
+
asset_content_type: text/plain
|
73
|
+
- name: Publish to GitHub packages
|
74
|
+
env:
|
75
|
+
GEM_HOST_API_KEY: Bearer ${{ secrets.GITHUB_TOKEN }}
|
76
|
+
run: |
|
77
|
+
gem push yabeda-puma-plugin-${{ steps.tag.outputs.version }}.gem --host https://rubygems.pkg.github.com/${{ github.repository_owner }}
|
78
|
+
- name: Publish to RubyGems
|
79
|
+
env:
|
80
|
+
GEM_HOST_API_KEY: "${{ secrets.RUBYGEMS_API_KEY }}"
|
81
|
+
run: |
|
82
|
+
gem push yabeda-puma-plugin-${{ steps.tag.outputs.version }}.gem
|
data/.github/workflows/test.yml
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
name:
|
1
|
+
name: Tests
|
2
2
|
|
3
3
|
on:
|
4
4
|
pull_request:
|
@@ -10,23 +10,32 @@ on:
|
|
10
10
|
|
11
11
|
jobs:
|
12
12
|
test:
|
13
|
-
name:
|
14
|
-
|
13
|
+
name: 'Puma ${{ matrix.puma }} on Ruby ${{ matrix.ruby }}'
|
14
|
+
# Skip running tests for local pull requests (use push event instead), run only for foreign ones
|
15
|
+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login
|
15
16
|
runs-on: ubuntu-latest
|
16
17
|
strategy:
|
17
18
|
fail-fast: false
|
18
19
|
matrix:
|
19
20
|
include:
|
20
|
-
- ruby:
|
21
|
-
|
22
|
-
- ruby:
|
21
|
+
- ruby: "3.1"
|
22
|
+
puma: "6"
|
23
|
+
- ruby: "3.0"
|
24
|
+
puma: "5"
|
25
|
+
- ruby: "2.7"
|
26
|
+
puma: "5"
|
27
|
+
- ruby: "2.6"
|
28
|
+
puma: "4"
|
29
|
+
- ruby: "2.5"
|
30
|
+
puma: "4"
|
23
31
|
container:
|
24
32
|
image: ruby:${{ matrix.ruby }}
|
25
33
|
env:
|
26
34
|
CI: true
|
35
|
+
PUMA_VERSION: ${{ matrix.puma }}
|
27
36
|
steps:
|
28
|
-
- uses: actions/checkout@
|
29
|
-
- uses: actions/cache@
|
37
|
+
- uses: actions/checkout@v3
|
38
|
+
- uses: actions/cache@v3
|
30
39
|
with:
|
31
40
|
path: vendor/bundle
|
32
41
|
key: bundle-${{ matrix.ruby }}-${{ hashFiles('**/*.gemspec') }}-${{ hashFiles('**/Gemfile') }}
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
|
5
|
+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
6
|
+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
7
|
+
|
8
|
+
## 0.7.0 - 2022-10-24
|
9
|
+
|
10
|
+
### Added
|
11
|
+
|
12
|
+
- Puma 6.x support for `yabeda_prometheus` plugin. [@ollym][], [#25](https://github.com/yabeda-rb/yabeda-puma-plugin/pull/25)
|
13
|
+
- Support phased restarts with standalone Prometheus exporter. [@botimer][], [#23](https://github.com/yabeda-rb/yabeda-puma-plugin/pull/23)
|
14
|
+
- `on_prometheus_exporter_boot` hook in Puma config DSL. [@Envek][]
|
15
|
+
|
16
|
+
## 0.6.0 - 2021-02-05
|
17
|
+
|
18
|
+
### Changed
|
19
|
+
|
20
|
+
- “Most recent” aggregation mode specified for all gauge metrics. [@botimer], [#16](https://github.com/yabeda-rb/yabeda-puma-plugin/pull/16)
|
21
|
+
|
22
|
+
## 0.5.0 - 2020-11-13
|
23
|
+
|
24
|
+
### Changed
|
25
|
+
|
26
|
+
- Start Yabeda exporter on `on_booted` hook to support Puma 4.x daemon mode. [@Envek], [#14](https://github.com/yabeda-rb/yabeda-puma-plugin/pull/14)
|
27
|
+
|
28
|
+
## 0.4.0 - 2020-04-29
|
29
|
+
|
30
|
+
### Added
|
31
|
+
|
32
|
+
- `yabeda_prometheus` plugin to allow metrics export on separate port. [@jwhitcraft], [#11](https://github.com/yabeda-rb/yabeda-puma-plugin/pull/11)
|
33
|
+
|
34
|
+
## 0.3.0 - 2020-01-27
|
35
|
+
|
36
|
+
### Added
|
37
|
+
|
38
|
+
- Support for yabeda 0.2 (required by prometheus-client 1.0). [@Envek]
|
39
|
+
|
40
|
+
## 0.2.1 - 2019-12-16
|
41
|
+
|
42
|
+
### Fixed
|
43
|
+
|
44
|
+
- Fix undefined method in TCP socket. [@Neznauy], [#7](https://github.com/yabeda-rb/yabeda-puma-plugin/pull/7)
|
45
|
+
|
46
|
+
## 0.2.0 - 2019-12-12
|
47
|
+
|
48
|
+
### Added
|
49
|
+
|
50
|
+
- Support for TCP puma control panel url. [@dsalahutdinov]
|
51
|
+
|
52
|
+
## 0.1.0 - 2019-04-02
|
53
|
+
|
54
|
+
Initial release with basic metrics collection. [@dsalahutdinov]
|
55
|
+
|
56
|
+
[@ollym]: https://github.com/ollym "Oliver Morgan"
|
57
|
+
[@botimer]: https://github.com/botimer "Noah Botimer"
|
58
|
+
[@jwhitcraft]: https://github.com/jwhitcraft "Jon Whitcraft"
|
59
|
+
[@Neznauy]: https://github.com/Neznauy "Aleksandr Shlyakov"
|
60
|
+
[@Envek]: https://github.com/Envek "Andrey Novikov"
|
61
|
+
[@dsalahutdinov]: https://github.com/dsalahutdinov "Dmitry Salahutdinov"
|
data/Gemfile
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
source "https://rubygems.org"
|
2
2
|
|
3
|
-
gem 'prometheus-client'
|
4
3
|
gem 'yabeda-prometheus'
|
4
|
+
|
5
5
|
# Specify your gem's dependencies in yabeda-puma.gemspec
|
6
6
|
gemspec
|
7
|
+
|
8
|
+
puma_version = ENV.fetch("PUMA_VERSION", "~> 6.0")
|
9
|
+
puma_version = "~> #{puma_version}.0" if puma_version.match?(/^\d+$/)
|
10
|
+
gem "puma", puma_version
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
alt="Sponsored by Amplifr" src="https://amplifr-direct.s3-eu-west-1.amazonaws.com/social_images/image/37b580d9-3668-4005-8d5a-137de3a3e77c.png" />
|
4
4
|
</a>
|
5
5
|
|
6
|
-
# Yabeda::Puma::Plugin
|
6
|
+
# ![`Yabeda::Puma::Plugin`](./yabeda-puma-plugin-logo.png)
|
7
7
|
|
8
8
|
Built-in metrics for [Puma](https://github.com/puma/puma) web server monitoring out of the box! Part of the [yabeda](https://github.com/yabeda-rb/yabeda) suite.
|
9
9
|
|
@@ -43,6 +43,17 @@ plugin :yabeda
|
|
43
43
|
```
|
44
44
|
It will activate default puma control application working over the unix socket, and runs the `yabeda` puma plugin, for registering and collecting the metrics.
|
45
45
|
|
46
|
+
> **Note**
|
47
|
+
>
|
48
|
+
> In case if you're **not** using Rails, don't forget configure Yabeda manually either in your app initialization or in Puma configuration hook:
|
49
|
+
> ```ruby
|
50
|
+
> # config/puma.rb
|
51
|
+
> before_fork do
|
52
|
+
> Yabeda.configure!
|
53
|
+
> end
|
54
|
+
> ```
|
55
|
+
> See [yabeda usage](https://github.com/yabeda-rb/yabeda#usage) for more information.
|
56
|
+
|
46
57
|
### Exposing metrics
|
47
58
|
|
48
59
|
Some monitoring system agents (like NewRelic or DataDog) will send metrics automatically in the background. But for some of monitoring systems (like Prometheus) you have to explicitly set up metrics export.
|
@@ -134,6 +145,38 @@ docker-compose run app bundle exec rspec
|
|
134
145
|
|
135
146
|
Bug reports and pull requests are welcome on GitHub at https://github.com/yabeda-rb/yabeda-puma-plugin.
|
136
147
|
|
148
|
+
### Releasing
|
149
|
+
|
150
|
+
1. Bump version number in `lib/yabeda/puma/plugin/version.rb`
|
151
|
+
|
152
|
+
In case of pre-releases keep in mind [rubygems/rubygems#3086](https://github.com/rubygems/rubygems/issues/3086) and check version with command like `Gem::Version.new(Yabeda::VERSION).to_s`
|
153
|
+
|
154
|
+
2. Fill `CHANGELOG.md` with missing changes, add header with version and date.
|
155
|
+
|
156
|
+
3. Make a commit:
|
157
|
+
|
158
|
+
```sh
|
159
|
+
git add lib/yabeda/puma/plugin/version.rb CHANGELOG.md
|
160
|
+
version=$(ruby -r ./lib/yabeda/puma/plugin/version.rb -e "puts Gem::Version.new(Yabeda::Puma::Plugin::VERSION)")
|
161
|
+
git commit --message="${version}: " --edit
|
162
|
+
```
|
163
|
+
|
164
|
+
4. Create annotated tag:
|
165
|
+
|
166
|
+
```sh
|
167
|
+
git tag v${version} --annotate --message="${version}: " --edit --sign
|
168
|
+
```
|
169
|
+
|
170
|
+
5. Fill version name into subject line and (optionally) some description (list of changes will be taken from changelog and appended automatically)
|
171
|
+
|
172
|
+
6. Push it:
|
173
|
+
|
174
|
+
```sh
|
175
|
+
git push --follow-tags
|
176
|
+
```
|
177
|
+
|
178
|
+
7. GitHub Actions will create a new release, build and push gem into RubyGems! You're done!
|
179
|
+
|
137
180
|
## License
|
138
181
|
|
139
182
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/docker-compose.yml
CHANGED
data/lib/puma/plugin/yabeda.rb
CHANGED
@@ -15,15 +15,15 @@ Puma::Plugin.create do
|
|
15
15
|
Yabeda.configure do
|
16
16
|
group :puma
|
17
17
|
|
18
|
-
gauge :backlog, tags: %i[index], comment: 'Number of established but unaccepted connections in the backlog'
|
19
|
-
gauge :running, tags: %i[index], comment: 'Number of running worker threads'
|
20
|
-
gauge :pool_capacity, tags: %i[index], comment: 'Number of allocatable worker threads'
|
21
|
-
gauge :max_threads, tags: %i[index], comment: 'Maximum number of worker threads'
|
18
|
+
gauge :backlog, tags: %i[index], comment: 'Number of established but unaccepted connections in the backlog', aggregation: :most_recent
|
19
|
+
gauge :running, tags: %i[index], comment: 'Number of running worker threads', aggregation: :most_recent
|
20
|
+
gauge :pool_capacity, tags: %i[index], comment: 'Number of allocatable worker threads', aggregation: :most_recent
|
21
|
+
gauge :max_threads, tags: %i[index], comment: 'Maximum number of worker threads', aggregation: :most_recent
|
22
22
|
|
23
23
|
if clustered
|
24
|
-
gauge :workers, comment: 'Number of configured workers'
|
25
|
-
gauge :booted_workers, comment: 'Number of booted workers'
|
26
|
-
gauge :old_workers, comment: 'Number of old workers'
|
24
|
+
gauge :workers, comment: 'Number of configured workers', aggregation: :most_recent
|
25
|
+
gauge :booted_workers, comment: 'Number of booted workers', aggregation: :most_recent
|
26
|
+
gauge :old_workers, comment: 'Number of old workers', aggregation: :most_recent
|
27
27
|
end
|
28
28
|
|
29
29
|
collect do
|
@@ -14,6 +14,11 @@ module Puma
|
|
14
14
|
def prometheus_exporter_url(uri)
|
15
15
|
@options[:prometheus_exporter_url] = uri
|
16
16
|
end
|
17
|
+
|
18
|
+
def on_prometheus_exporter_boot(&block)
|
19
|
+
@options[:prometheus_exporter_boot_hooks] ||= []
|
20
|
+
@options[:prometheus_exporter_boot_hooks] << block
|
21
|
+
end
|
17
22
|
end
|
18
23
|
end
|
19
24
|
|
@@ -27,23 +32,67 @@ Puma::Plugin.create do
|
|
27
32
|
port = Integer(ENV.fetch('PROMETHEUS_EXPORTER_PORT', uri.port))
|
28
33
|
path = ENV.fetch('PROMETHEUS_EXPORTER_PATH', uri.path)
|
29
34
|
|
30
|
-
|
35
|
+
server = nil
|
36
|
+
logger = events
|
37
|
+
banner = "Yabeda Prometheus metrics exporter on http://#{host}:#{port}#{path}"
|
38
|
+
|
39
|
+
create_server = -> {
|
31
40
|
app = Yabeda::Prometheus::Exporter.rack_app(Yabeda::Prometheus::Exporter, path: path)
|
41
|
+
internal_events = Puma::Events.respond_to?(:null) ? Puma::Events.null : Puma::Events.new
|
42
|
+
server = Puma::Server.new app, internal_events, min_threads: 0, max_threads: 1
|
43
|
+
logger = server.respond_to?(:log_writer) ? server.log_writer : events
|
44
|
+
|
45
|
+
server.add_tcp_listener host, port
|
46
|
+
if server.respond_to?(:min_threads=)
|
47
|
+
server.min_threads = 0
|
48
|
+
server.max_threads = 1
|
49
|
+
end
|
32
50
|
|
33
|
-
|
34
|
-
|
35
|
-
|
51
|
+
internal_events.register(:state) do |state|
|
52
|
+
next unless state == :running
|
53
|
+
hooks = launcher.options.fetch(:prometheus_exporter_boot_hooks, [])
|
54
|
+
hooks.each(&:call)
|
55
|
+
end
|
36
56
|
|
37
|
-
|
38
|
-
|
57
|
+
[server, logger]
|
58
|
+
}
|
39
59
|
|
40
|
-
|
41
|
-
|
42
|
-
|
60
|
+
events.on_booted do
|
61
|
+
unless server&.running
|
62
|
+
server, logger = create_server.call
|
63
|
+
logger.log "* Starting #{banner}"
|
64
|
+
server.run
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# on_stopped and on_restart hooks were added in Puma 5.1 in https://github.com/puma/puma/commit/288a4cf756852a4837c77ee70d7fdcca1edb8e82
|
69
|
+
if events.respond_to?(:on_stopped) && events.respond_to?(:on_restart)
|
70
|
+
|
71
|
+
events.on_stopped do
|
72
|
+
unless server&.shutting_down?
|
73
|
+
logger.log "* Stopping #{banner}"
|
74
|
+
server.stop(true)
|
43
75
|
end
|
44
76
|
end
|
45
77
|
|
46
|
-
|
78
|
+
events.on_restart do
|
79
|
+
logger.log "* Restarting #{banner}"
|
80
|
+
server.stop(true)
|
81
|
+
server, logger = create_server.call
|
82
|
+
server.run
|
83
|
+
end
|
84
|
+
|
85
|
+
else
|
86
|
+
|
87
|
+
events.register(:state) do |state|
|
88
|
+
next unless %i[halt restart stop].include?(state)
|
89
|
+
|
90
|
+
metrics.stop(true) unless metrics.shutting_down?
|
91
|
+
next unless state == :restart
|
92
|
+
|
93
|
+
server, logger = create_server.call
|
94
|
+
server.run
|
95
|
+
end
|
47
96
|
end
|
48
97
|
end
|
49
98
|
end
|
Binary file
|
data/yabeda-puma-plugin.gemspec
CHANGED
@@ -21,12 +21,13 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
-
spec.add_runtime_dependency "yabeda", "~> 0.
|
24
|
+
spec.add_runtime_dependency "yabeda", "~> 0.5"
|
25
25
|
spec.add_runtime_dependency "puma"
|
26
26
|
spec.add_runtime_dependency "json"
|
27
27
|
|
28
28
|
spec.add_development_dependency "bundler"
|
29
29
|
spec.add_development_dependency "rake", "~> 13.0"
|
30
30
|
spec.add_development_dependency "rspec", "~> 3.0"
|
31
|
-
spec.add_development_dependency "rack"
|
31
|
+
spec.add_development_dependency "rack", "< 3"
|
32
|
+
spec.add_development_dependency "yabeda-prometheus", "~> 0.8"
|
32
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yabeda-puma-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Salahutdinov Dmitry
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yabeda
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.5'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.5'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: puma
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,16 +98,30 @@ dependencies:
|
|
98
98
|
name: rack
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - "<"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '3'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - "<"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '3'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: yabeda-prometheus
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.8'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.8'
|
111
125
|
description: Extends Yabeda metrics with puma web server values by using puma plugin
|
112
126
|
email:
|
113
127
|
- dsalahutdinov@gmail.com
|
@@ -119,6 +133,7 @@ files:
|
|
119
133
|
- ".github/workflows/test.yml"
|
120
134
|
- ".gitignore"
|
121
135
|
- ".rspec"
|
136
|
+
- CHANGELOG.md
|
122
137
|
- Gemfile
|
123
138
|
- LICENSE
|
124
139
|
- LICENSE.txt
|
@@ -136,6 +151,7 @@ files:
|
|
136
151
|
- lib/yabeda/puma/plugin/statistics/fetcher.rb
|
137
152
|
- lib/yabeda/puma/plugin/statistics/parser.rb
|
138
153
|
- lib/yabeda/puma/plugin/version.rb
|
154
|
+
- yabeda-puma-plugin-logo.png
|
139
155
|
- yabeda-puma-plugin.gemspec
|
140
156
|
homepage: http://github.com/yabeda-rb/yabeda-puma-plugin
|
141
157
|
licenses:
|
@@ -156,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
172
|
- !ruby/object:Gem::Version
|
157
173
|
version: '0'
|
158
174
|
requirements: []
|
159
|
-
rubygems_version: 3.1.
|
175
|
+
rubygems_version: 3.1.6
|
160
176
|
signing_key:
|
161
177
|
specification_version: 4
|
162
178
|
summary: Puma web server plugin for collecting puma metrics with Yabeda framework.
|