Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
func (*Collector) Collect ¶
func (c *Collector) Collect(ch chan<- prometheus.Metric)
func (*Collector) Describe ¶
func (c *Collector) Describe(ch chan<- *prometheus.Desc)
type Connection ¶
type Connection struct {
DB sql.NullString
User sql.NullString
Query sql.NullString
State sql.NullString
QueryStart sql.NullTime
BackendType sql.NullString
WaitEventType sql.NullString
BlockingPid sql.NullInt32
}
func (Connection) IsClientBackend ¶
func (c Connection) IsClientBackend() bool
func (Connection) QueryKey ¶
func (c Connection) QueryKey() QueryKey
type ConnectionKey ¶
type LatencySummary ¶
type LatencySummary struct {
// contains filtered or unexported fields
}
func NewLatencySummary ¶
func NewLatencySummary() *LatencySummary
func (*LatencySummary) Add ¶
func (s *LatencySummary) Add(totalTime float64, numberOfEvents uint64)
func (*LatencySummary) GetCalls ¶
func (s *LatencySummary) GetCalls() float64
func (*LatencySummary) GetSummaries ¶
func (s *LatencySummary) GetSummaries(percentiles ...float64) map[string]float64
func (*LatencySummary) GetTotalTime ¶
func (s *LatencySummary) GetTotalTime() float64
type QueryKey ¶
func (QueryKey) EqualByQueryPrefix ¶
type QuerySummary ¶
Click to show internal directories.
Click to hide internal directories.