-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from lessonnine/TNT-2741/parse-tcp-info
[TNT-2741] Parse TCP INFO binary data
- Loading branch information
Showing
15 changed files
with
253 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
puma-plugin-telemetry (1.1.0.alpha) | ||
puma-plugin-telemetry (1.1.0.beta) | ||
puma (>= 5.0) | ||
|
||
GEM | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
module Puma | ||
class Plugin | ||
module Telemetry | ||
VERSION = "1.1.0.alpha" | ||
VERSION = "1.1.0.beta" | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# frozen_string_literal: true | ||
|
||
@initial_delay = true | ||
|
||
app do |_env| | ||
sleep(2) if @initial_delay | ||
|
||
# there's only 1 thread, so it should be fine | ||
@initial_delay = false | ||
|
||
[200, {}, ["embedded app"]] | ||
end | ||
|
||
lowlevel_error_handler { |_err| [500, {}, ["error page"]] } | ||
|
||
threads 1, 1 | ||
plugin "telemetry" | ||
|
||
bind "unix://#{ENV["BIND_PATH"]}" | ||
bind "tcp://localhost:59292" | ||
|
||
Puma::Plugin::Telemetry.configure do |config| | ||
# Simple `key=value` formatter | ||
config.add_target :io, formatter: ->(t) { t.map { |r| r.join("=") }.join(" ") } | ||
config.frequency = 1 | ||
config.enabled = true | ||
|
||
# Check how `queue.backlog` from puma behaves | ||
config.puma_telemetry = ["queue.backlog"] | ||
|
||
# Delay first metric, so puma has time to bootup workers | ||
config.initial_delay = 2 | ||
|
||
config.socket_telemetry! | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.