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 map[string]interface{} `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 { SolrMbeans []json.RawMessage `json:"solr-mbeans"` Headers ResponseHeader `json:"responseHeader"` }
MBeansData is an exported type that contains a response from Solr with metrics
type QueryHandler ¶
type QueryHandler struct {
Stats interface{} `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 { Username string Password string Servers []string Cores []string HTTPTimeout internal.Duration Local bool // 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) SampleConfig ¶
SampleConfig returns sample configuration for this plugin.
type UpdateHandler ¶
type UpdateHandler struct { Stats struct { AutocommitMaxTime string `json:"autocommit maxTime"` Adds int64 `json:"adds"` AutocommitMaxDocs int64 `json:"autocommit maxDocs"` 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