Documentation
¶
Index ¶
- type ClusterHealth
- type ClusterHealthResponse
- type NodeStatsBreakersResponse
- type NodeStatsFSDataResponse
- type NodeStatsFSResponse
- type NodeStatsHTTPResponse
- type NodeStatsIndicesCacheResponse
- type NodeStatsIndicesDocsResponse
- type NodeStatsIndicesFlushResponse
- type NodeStatsIndicesGetResponse
- type NodeStatsIndicesIndexingResponse
- type NodeStatsIndicesMergesResponse
- type NodeStatsIndicesRefreshResponse
- type NodeStatsIndicesResponse
- type NodeStatsIndicesSearchResponse
- type NodeStatsIndicesSegmentsResponse
- type NodeStatsIndicesStoreResponse
- type NodeStatsIndicesTranslogResponse
- type NodeStatsJVMBufferPoolResponse
- type NodeStatsJVMGCCollectorResponse
- type NodeStatsJVMGCResponse
- type NodeStatsJVMMemResponse
- type NodeStatsJVMResponse
- type NodeStatsNetworkResponse
- type NodeStatsNodeResponse
- type NodeStatsOSCPUResponse
- type NodeStatsOSMemResponse
- type NodeStatsOSResponse
- type NodeStatsOSSwapResponse
- type NodeStatsProcessCPUResponse
- type NodeStatsProcessMemResponse
- type NodeStatsProcessResponse
- type NodeStatsResponse
- type NodeStatsTCPResponse
- type NodeStatsThreadPoolPoolResponse
- type NodeStatsTransportResponse
- type Nodes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterHealth ¶
type ClusterHealth struct {
// contains filtered or unexported fields
}
func NewClusterHealth ¶
func (*ClusterHealth) Collect ¶
func (c *ClusterHealth) Collect(ch chan<- prometheus.Metric)
func (*ClusterHealth) Describe ¶
func (c *ClusterHealth) Describe(ch chan<- *prometheus.Desc)
type ClusterHealthResponse ¶
type ClusterHealthResponse struct {
ActivePrimaryShards int64 `json:"active_primary_shards"`
ActiveShards int64 `json:"active_shards"`
ClusterName string `json:"cluster_name"`
DelayedUnassignedShards int64 `json:"delayed_unassigned_shards"`
InitializingShards int64 `json:"initializing_shards"`
NumberOfDataNodes int64 `json:"number_of_data_nodes"`
NumberOfInFlightFetch int64 `json:"number_of_in_flight_fetch"`
NumberOfNodes int64 `json:"number_of_nodes"`
NumberOfPendingTasks int64 `json:"number_of_pending_tasks"`
RelocatingShards int64 `json:"relocating_shards"`
Status string `json:"status"`
TimedOut bool `json:"timed_out"`
UnassignedShards int64 `json:"unassigned_shards"`
}
ClusterHealthResponse is a representation of a Elasticsearch Cluster Health
type NodeStatsBreakersResponse ¶
type NodeStatsBreakersResponse struct {
EstimatedSize int64 `json:"estimated_size_in_bytes"`
LimitSize int64 `json:"limit_size_in_bytes"`
Overhead float64 `json:"overhead"`
Tripped int64 `json:"tripped"`
}
NodeStatsBreakersResponse is a representation of a statistics about the field data circuit breaker
type NodeStatsFSDataResponse ¶
type NodeStatsFSDataResponse struct {
Path string `json:"path"`
Mount string `json:"mount"`
Device string `json:"dev"`
Total int64 `json:"total_in_bytes"`
Free int64 `json:"free_in_bytes"`
Available int64 `json:"available_in_bytes"`
DiskReads int64 `json:"disk_reads"`
DiskWrites int64 `json:"disk_writes"`
DiskReadSize int64 `json:"disk_read_size_in_bytes"`
DiskWriteSize int64 `json:"disk_write_size_in_bytes"`
}
type NodeStatsFSResponse ¶
type NodeStatsFSResponse struct {
Timestamp int64 `json:"timestamp"`
Data []NodeStatsFSDataResponse `json:"data"`
}
NodeStatsFSResponse is a representation of a file system information, data path, free disk space, read/write stats
type NodeStatsHTTPResponse ¶
type NodeStatsIndicesCacheResponse ¶
type NodeStatsIndicesCacheResponse struct {
Evictions int64 `json:"evictions"`
MemorySize int64 `json:"memory_size_in_bytes"`
CacheCount int64 `json:"cache_count"`
CacheSize int64 `json:"cache_size"`
HitCount int64 `json:"hit_count"`
MissCount int64 `json:"miss_count"`
TotalCount int64 `json:"total_count"`
}
type NodeStatsIndicesGetResponse ¶
type NodeStatsIndicesGetResponse struct {
Total int64 `json:"total"`
Time int64 `json:"time_in_millis"`
ExistsTotal int64 `json:"exists_total"`
ExistsTime int64 `json:"exists_time_in_millis"`
MissingTotal int64 `json:"missing_total"`
MissingTime int64 `json:"missing_time_in_millis"`
Current int64 `json:"current"`
}
type NodeStatsIndicesIndexingResponse ¶
type NodeStatsIndicesIndexingResponse struct {
IndexTotal int64 `json:"index_total"`
IndexTime int64 `json:"index_time_in_millis"`
IndexCurrent int64 `json:"index_current"`
DeleteTotal int64 `json:"delete_total"`
DeleteTime int64 `json:"delete_time_in_millis"`
DeleteCurrent int64 `json:"delete_current"`
}
type NodeStatsIndicesMergesResponse ¶
type NodeStatsIndicesMergesResponse struct {
Current int64 `json:"current"`
CurrentDocs int64 `json:"current_docs"`
CurrentSize int64 `json:"current_size_in_bytes"`
Total int64 `json:"total"`
TotalDocs int64 `json:"total_docs"`
TotalSize int64 `json:"total_size_in_bytes"`
TotalTime int64 `json:"total_time_in_millis"`
}
type NodeStatsIndicesResponse ¶
type NodeStatsIndicesResponse struct {
Docs NodeStatsIndicesDocsResponse
Store NodeStatsIndicesStoreResponse
Indexing NodeStatsIndicesIndexingResponse
Merges NodeStatsIndicesMergesResponse
Get NodeStatsIndicesGetResponse
Search NodeStatsIndicesSearchResponse
FieldData NodeStatsIndicesCacheResponse `json:"fielddata"`
FilterCache NodeStatsIndicesCacheResponse `json:"filter_cache"`
QueryCache NodeStatsIndicesCacheResponse `json:"query_cache"`
RequestCache NodeStatsIndicesCacheResponse `json:"request_cache"`
Flush NodeStatsIndicesFlushResponse
Segments NodeStatsIndicesSegmentsResponse
Refresh NodeStatsIndicesRefreshResponse
Translog NodeStatsIndicesTranslogResponse
}
NodeStatsIndicesResponse is a representation of a indices stats (size, document count, indexing and deletion times, search times, field cache size, merges and flushes)
type NodeStatsIndicesSearchResponse ¶
type NodeStatsIndicesSearchResponse struct {
OpenContext int64 `json:"open_contexts"`
QueryTotal int64 `json:"query_total"`
QueryTime int64 `json:"query_time_in_millis"`
QueryCurrent int64 `json:"query_current"`
FetchTotal int64 `json:"fetch_total"`
FetchTime int64 `json:"fetch_time_in_millis"`
FetchCurrent int64 `json:"fetch_current"`
}
type NodeStatsJVMGCResponse ¶
type NodeStatsJVMGCResponse struct {
Collectors map[string]NodeStatsJVMGCCollectorResponse `json:"collectors"`
}
type NodeStatsJVMMemResponse ¶
type NodeStatsJVMResponse ¶
type NodeStatsJVMResponse struct {
BufferPools map[string]NodeStatsJVMBufferPoolResponse `json:"buffer_pools"`
GC NodeStatsJVMGCResponse `json:"gc"`
Mem NodeStatsJVMMemResponse `json:"mem"`
}
NodeStatsJVMResponse is a representation of a JVM stats, memory pool information, garbage collection, buffer pools, number of loaded/unloaded classes
type NodeStatsNetworkResponse ¶
type NodeStatsNetworkResponse struct {
TCP NodeStatsTCPResponse `json:"tcp"`
}
type NodeStatsNodeResponse ¶
type NodeStatsNodeResponse struct {
Name string `json:"name"`
Host string `json:"host"`
Timestamp int64 `json:"timestamp"`
TransportAddress string `json:"transport_address"`
Hostname string `json:"hostname"`
Indices NodeStatsIndicesResponse `json:"indices"`
OS NodeStatsOSResponse `json:"os"`
Network NodeStatsNetworkResponse `json:"network"`
FS NodeStatsFSResponse `json:"fs"`
ThreadPool map[string]NodeStatsThreadPoolPoolResponse `json:"thread_pool"`
JVM NodeStatsJVMResponse `json:"jvm"`
Breakers map[string]NodeStatsBreakersResponse `json:"breakers"`
Transport NodeStatsTransportResponse `json:"transport"`
Process NodeStatsProcessResponse `json:"process"`
}
type NodeStatsOSCPUResponse ¶
type NodeStatsOSMemResponse ¶
type NodeStatsOSResponse ¶
type NodeStatsOSResponse struct {
Timestamp int64 `json:"timestamp"`
Uptime int64 `json:"uptime_in_millis"`
// LoadAvg was an array of per-cpu values pre-2.0, and is a string in 2.0
// Leaving this here in case we want to implement parsing logic later
LoadAvg json.RawMessage `json:"load_average"`
CPU NodeStatsOSCPUResponse `json:"cpu"`
Mem NodeStatsOSMemResponse `json:"mem"`
Swap NodeStatsOSSwapResponse `json:"swap"`
}
NodeStatsOSResponse is a representation of a operating system stats, load average, mem, swap
type NodeStatsOSSwapResponse ¶
type NodeStatsProcessResponse ¶
type NodeStatsProcessResponse struct {
Timestamp int64 `json:"timestamp"`
OpenFD int64 `json:"open_file_descriptors"`
MaxFD int64 `json:"max_file_descriptors"`
CPU NodeStatsProcessCPUResponse `json:"cpu"`
Memory NodeStatsProcessMemResponse `json:"mem"`
}
NodeStatsProcessResponse is a representation of a process statistics, memory consumption, cpu usage, open file descriptors
type NodeStatsResponse ¶
type NodeStatsResponse struct {
ClusterName string `json:"cluster_name"`
Nodes map[string]NodeStatsNodeResponse
}
NodeStatsResponse is a representation of a Elasticsearch Node Stats
type NodeStatsTCPResponse ¶
type NodeStatsTCPResponse struct {
ActiveOpens int64 `json:"active_opens"`
PassiveOpens int64 `json:"passive_opens"`
CurrEstab int64 `json:"curr_estab"`
InSegs int64 `json:"in_segs"`
OutSegs int64 `json:"out_segs"`
RetransSegs int64 `json:"retrans_segs"`
EstabResets int64 `json:"estab_resets"`
AttemptFails int64 `json:"attempt_fails"`
InErrs int64 `json:"in_errs"`
OutRsts int64 `json:"out_rsts"`
}
type NodeStatsThreadPoolPoolResponse ¶
type NodeStatsThreadPoolPoolResponse struct {
Threads int64 `json:"threads"`
Queue int64 `json:"queue"`
Active int64 `json:"active"`
Rejected int64 `json:"rejected"`
Largest int64 `json:"largest"`
Completed int64 `json:"completed"`
}
NodeStatsThreadPoolPoolResponse is a representation of a statistics about each thread pool, including current size, queue and rejected tasks
type NodeStatsTransportResponse ¶
type NodeStatsTransportResponse struct {
ServerOpen int64 `json:"server_open"`
RxCount int64 `json:"rx_count"`
RxSize int64 `json:"rx_size_in_bytes"`
TxCount int64 `json:"tx_count"`
TxSize int64 `json:"tx_size_in_bytes"`
}
NodeStatsTransportResponse is a representation of a transport statistics about sent and received bytes in cluster communication