Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GCStats ¶
type GCStats struct {
// Ruby2.0
Count json.Number `json:"count"`
HeapFinalNum json.Number `json:"heap_final_num"`
HeapFreeNum json.Number `json:"heap_free_num"`
HeapIncrement json.Number `json:"heap_increment"`
HeapLength json.Number `json:"heap_length"`
HeapLiveNum json.Number `json:"heap_live_num"`
HeapUsed json.Number `json:"heap_used"`
TotalAllocatedObject json.Number `json:"total_allocated_object"`
TotalFreedObject json.Number `json:"total_freed_object"`
// Added since Ruby2.1
HeapLiveSlot json.Number `json:"heap_live_slot"`
HeapFreeSlot json.Number `json:"heap_free_slot"`
HeapFinalSlot json.Number `json:"heap_final_slot"`
HeapSweptSlot json.Number `json:"heap_swept_slot"`
HeapEdenPageLength json.Number `json:"heap_eden_page_length"`
HeapTombPageLength json.Number `json:"heap_tomb_page_length"`
MallocIncrease json.Number `json:"malloc_increase"`
MallocLimit json.Number `json:"malloc_limit"`
MinorGcCount json.Number `json:"minor_gc_count"`
MajorGcCount json.Number `json:"major_gc_count"`
RememberedShadyObject json.Number `json:"remembered_shady_object"`
RememberedShadyObjectLimit json.Number `json:"remembered_shady_object_limit"`
OldObject json.Number `json:"old_object"`
OldObjectLimit json.Number `json:"old_object_limit"`
OldmallocIncrease json.Number `json:"oldmalloc_increase"`
OldmallocLimit json.Number `json:"oldmalloc_limit"`
// Added since Ruby2.2
HeapAllocatedPages json.Number `json:"heap_allocated_pages"`
HeapSortedLength json.Number `json:"heap_sorted_length"`
HeapAllocatablePages json.Number `json:"heap_allocatable_pages"`
HeapAvailableSlots json.Number `json:"heap_available_slots"`
HeapLiveSlots json.Number `json:"heap_live_slots"`
HeapFreeSlots json.Number `json:"heap_free_slots"`
HeapFinalSlots json.Number `json:"heap_final_slots"`
HeapMarkedSlots json.Number `json:"heap_marked_slots"`
HeapSweptSlots json.Number `json:"heap_swept_slots"`
HeapEdenPages json.Number `json:"heap_eden_pages"`
HeapTombPages json.Number `json:"heap_tomb_pages"`
TotalAllocatedPages json.Number `json:"total_allocated_pages"`
TotalFreedPages json.Number `json:"total_freed_pages"`
TotalAllocatedObjects json.Number `json:"total_allocated_objects"`
TotalFreedObjects json.Number `json:"total_freed_objects"`
MallocIncreaseBytes json.Number `json:"malloc_increase_bytes"`
MallocIncreaseBytesLimit json.Number `json:"malloc_increase_bytes_limit"`
RememberedWbUnprotectedObjects json.Number `json:"remembered_wb_unprotected_objects"`
RememberedWbUnprotectedObjectsLimit json.Number `json:"remembered_wb_unprotected_objects_limit"`
OldObjects json.Number `json:"old_objects"`
OldObjectsLimit json.Number `json:"old_objects_limit"`
OldmallocIncreaseBytes json.Number `json:"oldmalloc_increase_bytes"`
OldmallocIncreaseBytesLimit json.Number `json:"oldmalloc_increase_bytes_limit"`
}
GCStats is convered from /gc-stats json
type PumaPlugin ¶
type PumaPlugin struct {
Prefix string
Host string
Port string
Sock string
Token string
Single bool
WithGC bool
}
PumaPlugin mackerel plugin for Puma
func (PumaPlugin) FetchMetrics ¶
func (p PumaPlugin) FetchMetrics() (map[string]float64, error)
FetchMetrics interface for mackerelplugin
func (PumaPlugin) GraphDefinition ¶
func (p PumaPlugin) GraphDefinition() map[string]mp.Graphs
GraphDefinition interface for mackerelplugin
func (PumaPlugin) MetricKeyPrefix ¶
func (p PumaPlugin) MetricKeyPrefix() string
MetricKeyPrefix interface for PluginWithPrefix
type Stats ¶
type Stats struct {
Workers int `json:"workers"`
Phase int `json:"phase"`
BootedWorkers int `json:"booted_workers"`
OldWorkers int `json:"old_workers"`
WorkerStatus []struct {
Pid int `json:"pid"`
Index int `json:"index"`
Phase int `json:"phase"`
Booted bool `json:"booted"`
LastCheckin time.Time `json:"last_checkin"`
LastStatus struct {
Backlog int `json:"backlog"`
Running int `json:"running"`
PoolCapacity int `json:"pool_capacity"`
} `json:"last_status"`
} `json:"worker_status"`
// Single mode
Backlog int `json:"backlog"`
Running int `json:"running"`
PoolCapacity int `json:"pool_capacity"`
}
Stats is convered from /stats json
Click to show internal directories.
Click to hide internal directories.