Class: Puma::Plugin::TelemetryToo::WorkerData
- Inherits:
-
Object
- Object
- Puma::Plugin::TelemetryToo::WorkerData
show all
- Includes:
- CommonData
- Defined in:
- lib/puma/plugin/telemetry_too/data.rb
Overview
Handles the case of non clustered mode, where workers isn't configured
Constant Summary
Constants included
from CommonData
CommonData::TELEMETRY_TO_METHODS
Instance Method Summary
collapse
Methods included from CommonData
#initialize, #metrics, #workers_booted, #workers_total
Instance Method Details
#queue_backlog ⇒ Object
57
58
59
|
# File 'lib/puma/plugin/telemetry_too/data.rb', line 57
def queue_backlog
@stats.fetch(:backlog, 0)
end
|
#queue_backlog_max ⇒ Object
69
70
71
|
# File 'lib/puma/plugin/telemetry_too/data.rb', line 69
def queue_backlog_max
@stats.fetch(:backlog_max, 0)
end
|
#queue_capacity ⇒ Object
61
62
63
|
# File 'lib/puma/plugin/telemetry_too/data.rb', line 61
def queue_capacity
@stats.fetch(:pool_capacity, 0)
end
|
#queue_reactor_max ⇒ Object
65
66
67
|
# File 'lib/puma/plugin/telemetry_too/data.rb', line 65
def queue_reactor_max
@stats.fetch(:reactor_max, 0)
end
|
#workers_max_threads ⇒ Object
45
46
47
|
# File 'lib/puma/plugin/telemetry_too/data.rb', line 45
def workers_max_threads
@stats.fetch(:max_threads, 0)
end
|
#workers_requests_count ⇒ Object
49
50
51
|
# File 'lib/puma/plugin/telemetry_too/data.rb', line 49
def workers_requests_count
@stats.fetch(:requests_count, 0)
end
|
#workers_spawned_threads ⇒ Object
53
54
55
|
# File 'lib/puma/plugin/telemetry_too/data.rb', line 53
def workers_spawned_threads
@stats.fetch(:running, 0)
end
|