Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminCoresStatus ¶
type AdminCoresStatus struct { Status map[string]struct { Index struct { SizeInBytes int64 `json:"sizeInBytes"` NumDocs int64 `json:"numDocs"` MaxDoc int64 `json:"maxDoc"` DeletedDocs int64 `json:"deletedDocs"` } `json:"index"` } `json:"status"` }
AdminCoresStatus is an exported type that contains a response with information about Solr cores.
type Cache ¶
type Cache struct { Stats struct { CumulativeEvictions int64 `json:"cumulative_evictions"` CumulativeHitratio Hitratio `json:"cumulative_hitratio"` CumulativeHits int64 `json:"cumulative_hits"` CumulativeInserts int64 `json:"cumulative_inserts"` CumulativeLookups int64 `json:"cumulative_lookups"` Evictions int64 `json:"evictions"` Hitratio Hitratio `json:"hitratio"` Hits int64 `json:"hits"` Inserts int64 `json:"inserts"` Lookups int64 `json:"lookups"` Size int64 `json:"size"` WarmupTime int64 `json:"warmupTime"` } `json:"stats"` }
Cache is an exported type that contains cache metrics
type Core ¶
type Core struct { Stats struct { DeletedDocs int64 `json:"deletedDocs"` MaxDoc int64 `json:"maxDoc"` NumDocs int64 `json:"numDocs"` } `json:"stats"` }
Core is an exported type that contains Core metrics
type Hitratio ¶
type Hitratio interface{}
Hitratio is an helper interface so we can later on convert it to float64
type MBeansData ¶
type MBeansData struct { Headers ResponseHeader `json:"responseHeader"` SolrMbeans []json.RawMessage `json:"solr-mbeans"` }
MBeansData is an exported type that contains a response from Solr with metrics
type QueryHandler ¶
type QueryHandler struct { Stats struct { One5minRateReqsPerSecond float64 `json:"15minRateReqsPerSecond"` FiveMinRateReqsPerSecond float64 `json:"5minRateReqsPerSecond"` Seven5thPcRequestTime float64 `json:"75thPcRequestTime"` Nine5thPcRequestTime float64 `json:"95thPcRequestTime"` Nine99thPcRequestTime float64 `json:"999thPcRequestTime"` Nine9thPcRequestTime float64 `json:"99thPcRequestTime"` AvgRequestsPerSecond float64 `json:"avgRequestsPerSecond"` AvgTimePerRequest float64 `json:"avgTimePerRequest"` Errors int64 `json:"errors"` HandlerStart int64 `json:"handlerStart"` MedianRequestTime float64 `json:"medianRequestTime"` Requests int64 `json:"requests"` Timeouts int64 `json:"timeouts"` TotalTime float64 `json:"totalTime"` } `json:"stats"` }
QueryHandler is an exported type that contains query handler metrics
type ResponseHeader ¶
ResponseHeader is an exported type that contains a response metrics: QTime and Status
type Solr ¶
type Solr struct { Local bool Servers []string HTTPTimeout internal.Duration Cores []string // contains filtered or unexported fields }
Solr is a plugin to read stats from one or many Solr servers
func (*Solr) Description ¶
Description returns the plugin description.
func (*Solr) Gather ¶
func (s *Solr) Gather(acc telegraf.Accumulator) error
Gather reads the stats from Solr and writes it to the Accumulator.
func (*Solr) SampleConfig ¶
SampleConfig returns sample configuration for this plugin.
type UpdateHandler ¶
type UpdateHandler struct { Stats struct { Adds int64 `json:"adds"` AutocommitMaxDocs int64 `json:"autocommit maxDocs"` AutocommitMaxTime string `json:"autocommit maxTime"` Autocommits int64 `json:"autocommits"` Commits int64 `json:"commits"` CumulativeAdds int64 `json:"cumulative_adds"` CumulativeDeletesByID int64 `json:"cumulative_deletesById"` CumulativeDeletesByQuery int64 `json:"cumulative_deletesByQuery"` CumulativeErrors int64 `json:"cumulative_errors"` DeletesByID int64 `json:"deletesById"` DeletesByQuery int64 `json:"deletesByQuery"` DocsPending int64 `json:"docsPending"` Errors int64 `json:"errors"` ExpungeDeletes int64 `json:"expungeDeletes"` Optimizes int64 `json:"optimizes"` Rollbacks int64 `json:"rollbacks"` SoftAutocommits int64 `json:"soft autocommits"` } `json:"stats"` }
UpdateHandler is an exported type that contains update handler metrics