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 ¶ added in v1.0.4
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 ¶ added in v1.0.4
func (c Connection) IsClientBackend() bool
func (Connection) QueryKey ¶ added in v1.0.4
func (c Connection) QueryKey() QueryKey
type ConnectionKey ¶ added in v1.0.4
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 ¶ added in v1.0.4
func (s *LatencySummary) GetCalls() float64
func (*LatencySummary) GetSummaries ¶ added in v1.0.4
func (s *LatencySummary) GetSummaries(percentiles ...float64) map[string]float64
func (*LatencySummary) GetTotalTime ¶ added in v1.0.4
func (s *LatencySummary) GetTotalTime() float64
type QueryKey ¶ added in v1.0.4
func (QueryKey) EqualByQueryPrefix ¶ added in v1.0.4
type QuerySummary ¶
Click to show internal directories.
Click to hide internal directories.