Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBadStatus = errors.New("bad status code")
)
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct { URI string // contains filtered or unexported fields }
func (*Collector) Collect ¶
func (c *Collector) Collect(ch chan<- prometheus.Metric)
Collect fetches the stats from configured logstash and delivers them as Prometheus metrics. It implements prometheus.Collector.
func (*Collector) Describe ¶
func (c *Collector) Describe(ch chan<- *prometheus.Desc)
Describe describes all the metrics ever exported by the logstash exporter. It implements prometheus.Collector.
type FilterPlugin ¶
type GCCollector ¶
type InputPlugin ¶
type JVM ¶
type JVM struct { Threads struct { Count int `json:"count"` } `json:"threads"` Mem struct { HeapUsedPercent int `json:"heap_used_percent"` HeapCommittedInBytes int `json:"heap_committed_in_bytes"` HeapUsedInBytes int `json:"heap_used_in_bytes"` Pools struct { Survivor JvmPool `json:"survivor"` Old JvmPool `json:"old"` Young JvmPool `json:"young"` } `json:"pools"` } `json:"mem"` GC struct { Collectors struct { Old GCCollector `json:"old"` Young GCCollector `json:"young"` } `json:"collectors"` } `json:"gc"` UptimeInMillis int `json:"uptime_in_millis"` }
type NodeStats ¶
type NodeStats struct { // Top level Host string `json:"host"` Version string `json:"version"` HttpAddress string `json:"http_address"` ID string `json:"id"` Name string `json:"name"` EphemeralID string `json:"ephemeral_id"` Status string `json:"status"` Pipeline PipelineConfig `json:"pipeline"` JVM JVM `json:"jvm"` Process Process `json:"process"` Event Event `json:"events"` Pipelines map[string]Pipeline `json:"pipelines"` }
type OutputPlugin ¶
type Pipeline ¶
type Pipeline struct { Event Event `json:"events"` Plugins struct { Inputs []InputPlugin `json:"inputs"` Filters []FilterPlugin `json:"filters"` Outputs []OutputPlugin `json:"outputs"` } `json:"plugins"` Queue struct { Type string `json:"type"` EventsCount int `json:"events_count"` QueueSizeInBytes int `json:"queue_size_in_bytes"` MaxQueueSizeInBytes int `json:"max_queue_size_in_bytes"` } `json:"queue"` }
type PipelineConfig ¶
type Process ¶
type Process struct { OpenFileDescriptors int `json:"open_file_descriptors"` PeakOpenFileDescriptors int `json:"peak_open_file_descriptors"` MaxFileDescriptors int `json:"max_file_descriptors"` Mem struct { TotalVirtualInBytes int `json:"total_virtual_in_bytes"` } `json:"mem"` CPU struct { TotalInMillis int `json:"total_in_millis"` Percent int `json:"percent"` LoadAverage struct { Load1 float64 `json:"1m"` Load5 float64 `json:"5m"` Load15 float64 `json:"15m"` } `json:"load_average"` } `json:"cpu"` }
Click to show internal directories.
Click to hide internal directories.