Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Couchdb ¶
type Couchdb struct { OpenOsFiles General `json:"open_os_files"` OpenDatabases General `json:"open_databases"` AuthCacheHits General `json:"auth_cache_hits"` RequestTime General `json:"request_time"` DatabaseReads General `json:"database_reads"` DatabaseWrites General `json:"database_writes"` AuthCacheMisses General `json:"auth_cache_misses"` }
Couchdb type defines couchdb fields of the Server Metricset
type General ¶
type General struct {
Current float64 `json:"current"`
}
General type defines common fields of the Server Metricset
type Httpd ¶
type Httpd struct { ViewReads General `json:"view_reads"` BulkRequests General `json:"bulk_requests"` ClientsRequestingChanges General `json:"clients_requesting_changes"` TemporaryViewReads General `json:"temporary_view_reads"` Requests General `json:"requests"` }
Httpd type defines httpd fields of the Server Metricset
type HttpdRequestMethods ¶
type HttpdRequestMethods struct { Copy General `json:"COPY"` Head General `json:"HEAD"` Post General `json:"POST"` Delete General `json:"DELETE"` Get General `json:"GET"` Put General `json:"PUT"` }
HttpdRequestMethods type defines httpd requests methods fields of the Server Metricset
type HttpdStatusCodes ¶
type HttpdStatusCodes struct { Num200 General `json:"200"` Num201 General `json:"201"` Num202 General `json:"202"` Num301 General `json:"301"` Num304 General `json:"304"` Num400 General `json:"400"` Num401 General `json:"401"` Num403 General `json:"403"` Num404 General `json:"404"` Num405 General `json:"405"` Num409 General `json:"409"` Num412 General `json:"412"` Num500 General `json:"500"` }
HttpdStatusCodes type defines httpd status codes fields of the Server Metricset
type MetricSet ¶
type MetricSet struct { mb.BaseMetricSet // contains filtered or unexported fields }
MetricSet type defines all fields of the MetricSet
func (*MetricSet) Fetch ¶
func (m *MetricSet) Fetch(reporter mb.ReporterV2) error
Fetch methods implements the data gathering and data conversion to the right format. It publishes the event which is then forwarded to the output. In case of an error set the Error field of mb.Event or simply call report.Error().
type Server ¶
type Server struct { Httpd Httpd `json:"httpd"` HttpdRequestMethods HttpdRequestMethods `json:"httpd_request_methods"` HttpdStatusCodes HttpdStatusCodes `json:"httpd_status_codes"` Couchdb Couchdb `json:"couchdb"` }
Server type defines all fields of the Server Metricset