Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PromErrorsTotal = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "clair_pgsql_errors_total", Help: "Number of errors that PostgreSQL requests generated.", }, []string{"request"}) PromCacheHitsTotal = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "clair_pgsql_cache_hits_total", Help: "Number of cache hits that the PostgreSQL backend did.", }, []string{"object"}) PromCacheQueriesTotal = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "clair_pgsql_cache_queries_total", Help: "Number of cache queries that the PostgreSQL backend did.", }, []string{"object"}) PromQueryDurationMilliseconds = prometheus.NewHistogramVec(prometheus.HistogramOpts{ Name: "clair_pgsql_query_duration_milliseconds", Help: "Time it takes to execute the database query.", }, []string{"query", "subquery"}) PromConcurrentLockVAFV = prometheus.NewGauge(prometheus.GaugeOpts{ Name: "clair_pgsql_concurrent_lock_vafv_total", Help: "Number of transactions trying to hold the exclusive Vulnerability_Affects_Feature lock.", }) )
Functions ¶
func ObserveQueryTime ¶
monitoring.ObserveQueryTime computes the time elapsed since `start` to represent the query time. 1. `query` is a pgSession function name. 2. `subquery` is a specific query or a batched query. 3. `start` is the time right before query is executed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.