Documentation ¶
Index ¶
- func TrimSuffix(s, suffix string) string
- type Logstashbeat
- func (bt *Logstashbeat) Cleanup(b *beat.Beat) error
- func (bt *Logstashbeat) Config(b *beat.Beat) error
- func (bt *Logstashbeat) GetNodeJVM(u url.URL) (NodeJVM, error)
- func (bt *Logstashbeat) GetNodePipeline(u url.URL) (NodePipeline, error)
- func (bt *Logstashbeat) GetNodeStatsEvents(u url.URL) (NodeStatsEvents, error)
- func (bt *Logstashbeat) GetNodeStatsJVM(u url.URL) (NodeStatsJVM, error)
- func (bt *Logstashbeat) GetNodeStatsMem(u url.URL) (NodeStatsMem, error)
- func (bt *Logstashbeat) GetNodeStatsProcess(u url.URL) (NodeStatsProcess, error)
- func (bt *Logstashbeat) Run(b *beat.Beat) error
- func (bt *Logstashbeat) Setup(b *beat.Beat) error
- func (bt *Logstashbeat) Stop()
- type NodeJVM
- type NodePipeline
- type NodeStatsEvents
- type NodeStatsJVM
- type NodeStatsMem
- type NodeStatsProcess
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TrimSuffix ¶
Types ¶
type Logstashbeat ¶
type Logstashbeat struct { Node struct { Stats struct { // contains filtered or unexported fields } // contains filtered or unexported fields } // contains filtered or unexported fields }
func (*Logstashbeat) GetNodeJVM ¶
func (bt *Logstashbeat) GetNodeJVM(u url.URL) (NodeJVM, error)
func (*Logstashbeat) GetNodePipeline ¶
func (bt *Logstashbeat) GetNodePipeline(u url.URL) (NodePipeline, error)
func (*Logstashbeat) GetNodeStatsEvents ¶
func (bt *Logstashbeat) GetNodeStatsEvents(u url.URL) (NodeStatsEvents, error)
func (*Logstashbeat) GetNodeStatsJVM ¶
func (bt *Logstashbeat) GetNodeStatsJVM(u url.URL) (NodeStatsJVM, error)
func (*Logstashbeat) GetNodeStatsMem ¶
func (bt *Logstashbeat) GetNodeStatsMem(u url.URL) (NodeStatsMem, error)
func (*Logstashbeat) GetNodeStatsProcess ¶
func (bt *Logstashbeat) GetNodeStatsProcess(u url.URL) (NodeStatsProcess, error)
func (*Logstashbeat) Stop ¶
func (bt *Logstashbeat) Stop()
type NodeJVM ¶
type NodeJVM struct { Jvm struct { Start_time_in_millis uint64 `json:"start_time_in_millis"` Mem struct { Heap_init_in_bytes uint64 `json:"heap_init_in_bytes"` Heap_max_in_bytes uint64 `json:"heap_max_in_bytes"` Non_heap_init_in_bytes uint64 `json:"non_heap_init_in_bytes"` Non_heap_max_in_bytes uint64 `json:"non_heap_max_in_bytes"` } `json:"mem"` } `json:"jvm"` }
{ "host" : "localhost", "version" : "5.0.0-alpha4", "http_address" : "127.0.0.1:9600", "jvm" : { "pid" : 20351, "version" : "1.8.0_74", "vm_name" : "Java HotSpot(TM) 64-Bit Server VM", "vm_version" : "1.8.0_74", "vm_vendor" : "Oracle Corporation", "start_time_in_millis" : 1467367397367, "mem" : { "heap_init_in_bytes" : 268435456, "heap_max_in_bytes" : 1038876672, "non_heap_init_in_bytes" : 2555904, "non_heap_max_in_bytes" : 0 } } }
type NodePipeline ¶
type NodePipeline struct { Pipeline struct { Workers uint64 `json:"workers"` Batch_size uint64 `json:"batch_size"` Batch_delay uint64 `json:"batch_delay"` } `json:"pipeline"` }
{ "host" : "localhost", "version" : "5.0.0-alpha4", "http_address" : "127.0.0.1:9600", "pipeline" : { "workers" : 1, "batch_size" : 125, "batch_delay" : 5 } }
type NodeStatsEvents ¶
type NodeStatsEvents struct { Events struct { In uint64 `json:"in"` Filtered uint64 `json:"filtered"` Out uint64 `json:"out"` } `json:"events"` }
{ "host" : "localhost", "version" : "5.0.0-alpha4", "http_address" : "127.0.0.1:9600", "events" : { "in" : 3, "filtered" : 3, "out" : 3 } }
type NodeStatsJVM ¶
type NodeStatsJVM struct { JVM struct { Threads struct { Count uint64 `json:"count"` Peak_count uint64 `json:"peak_count"` } `json:"threads"` } `json:"jvm"` }
{ "host" : "localhost", "version" : "5.0.0-alpha4", "http_address" : "127.0.0.1:9600", "jvm" : { "threads" : { "count" : 19, "peak_count" : 22 } } }
type NodeStatsMem ¶
type NodeStatsMem struct { Mem struct { Heap_used_in_bytes uint64 `json:"heap_used_in_bytes"` Heap_used_percent uint64 `json:"heap_used_percent"` Heap_committed_in_bytes uint64 `json:"heap_committed_in_bytes"` Heap_max_in_bytes uint64 `json:"heap_max_in_bytes"` Non_heap_used_in_bytes uint64 `json:"non_heap_used_in_bytes"` Non_heap_committed_in_bytes uint64 `json:"non_heap_committed_in_bytes"` Pools struct { Young struct { Used_in_bytes uint64 `json:"used_in_bytes"` Max_in_bytes uint64 `json:"max_in_bytes"` Peak_used_in_bytes uint64 `json:"peak_used_in_bytes"` Peak_max_in_bytes uint64 `json:"peak_max_in_bytes"` Committed_in_bytes uint64 `json:"committed_in_bytes"` } `json:"young"` Survivor struct { Used_in_bytes uint64 `json:"used_in_bytes"` Max_in_bytes uint64 `json:"max_in_bytes"` Peak_used_in_bytes uint64 `json:"peak_used_in_bytes"` Peak_max_in_bytes uint64 `json:"peak_max_in_bytes"` Committed_in_bytes uint64 `json:"committed_in_bytes"` } `json:"survivor"` Old struct { Used_in_bytes uint64 `json:"used_in_bytes"` Max_in_bytes uint64 `json:"max_in_bytes"` Peak_used_in_bytes uint64 `json:"peak_used_in_bytes"` Peak_max_in_bytes uint64 `json:"peak_max_in_bytes"` Committed_in_bytes uint64 `json:"committed_in_bytes"` } `json:"old"` } `json:"pools"` } `json:"mem"` }
{ "host" : "localhost", "version" : "5.0.0-alpha4", "http_address" : "127.0.0.1:9600", "mem" : { "heap_used_in_bytes" : 276561168, "heap_used_percent" : 13, "heap_committed_in_bytes" : 519045120, "heap_max_in_bytes" : 2077753344, "non_heap_used_in_bytes" : 164040800, "non_heap_committed_in_bytes" : 173449216, "pools" : { "survivor" : { "peak_used_in_bytes" : 8912896, "used_in_bytes" : 11325176, "peak_max_in_bytes" : 34865152, "max_in_bytes" : 69730304, "committed_in_bytes" : 17825792 }, "old" : { "peak_used_in_bytes" : 99454200, "used_in_bytes" : 147187720, "peak_max_in_bytes" : 724828160, "max_in_bytes" : 1449656320, "committed_in_bytes" : 357957632 }, "young" : { "peak_used_in_bytes" : 71630848, "used_in_bytes" : 118048272, "peak_max_in_bytes" : 279183360, "max_in_bytes" : 558366720, "committed_in_bytes" : 143261696 } } } }
type NodeStatsProcess ¶
type NodeStatsProcess struct { Process struct { Peak_open_file_descriptors uint64 `json:"peak_open_file_descriptors"` Max_file_descriptors uint64 `json:"max_file_descriptors"` Open_file_descriptors uint64 `json:"open_file_descriptors"` Mem struct { Total_virtual_in_bytes uint64 `json:"total_virtual_in_bytes"` } `json:"mem"` Cpu struct { Total_in_millis uint64 `json:"total_in_millis"` Percent uint64 `json:"percent"` } `json:"cpu"` } `json:"process"` }
{ "host" : "localhost", "version" : "5.0.0-alpha4", "http_address" : "127.0.0.1:9600", "process" : { "open_file_descriptors" : 45, "peak_open_file_descriptors" : 49, "max_file_descriptors" : 4096, "mem" : { "total_virtual_in_bytes" : 4709322752 }, "cpu" : { "total_in_millis" : 57440000000, "percent" : 0 } } }
Click to show internal directories.
Click to hide internal directories.