Documentation ¶
Index ¶
Constants ¶
View Source
const ( OPT_REAL_PERCENTILES = "real-percentiles" OPT_FLUSH_QRT = "flush" ERR_UNKNOWN_TABLE = "unknown-table" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QRT ¶
type QRT struct {
// contains filtered or unexported fields
}
func (*QRT) Help ¶
func (c *QRT) Help() blip.CollectorHelp
type QRTBucket ¶
QRTBucket : https://www.percona.com/doc/percona-server/5.6/diagnostics/response_time_distribution.html Represents a row from information_schema.Query_Response_Time
type QRTHistogram ¶
type QRTHistogram struct {
// contains filtered or unexported fields
}
QRTHistogram represents a histogram containing MySQLQRTBuckets. Where each bucket is a bin.
func NewQRTHistogram ¶
func NewQRTHistogram(buckets []QRTBucket) QRTHistogram
func (QRTHistogram) Percentile ¶
func (h QRTHistogram) Percentile(p float64) (value float64, actualPercentile float64)
Percentile for QRTHistogram p should be p/100 where p is requested percentile (example: 0.10 for 10th percentile) Percentile is defined as the weighted of the percentiles of the lowest bin that is greater than the requested percentile rank it returns the percentile value and the real percentile used
Click to show internal directories.
Click to hide internal directories.