Documentation ¶
Index ¶
- Constants
- func GetPrometheusHandler() http.Handler
- func GetPrometheusRegistry() *prometheus.Registry
- func NewLabelCounter(subsystem, name, help string, labels ...string) *prometheus.CounterVec
- func NewLabelGauge(subsystem, name, help string, labels ...string) *prometheus.GaugeVec
- func NewLabelSummary(subsystem, name, help string, labels ...string) *prometheus.SummaryVec
- func NewLabelTimer(subsystem, name, help string, labels ...string) *prometheus.HistogramVec
- func SinceInMicroseconds(start time.Time) float64
- type Unit
Constants ¶
View Source
const ( ActionCreateLabel = "create" ActionDeleteLabel = "delete" ActionRemoveLabel = "remove" ActionUpdateLabel = "update" ActionUpgradeLabel = "upgrade" ActionInfoLabel = "info" ActionListLabel = "list" ActionStatusLabel = "status" ActionStartLabel = "start" ActionStopLabel = "stop" ActionKillLabel = "kill" ActionRenameLabel = "rename" ActionRestartLabel = "restart" ActionRunLabel = "run" ActionPullLabel = "pull" ActionStatsLabel = "stats" ActionStatsListLabel = "stats_list" ActionPauseLabel = "pause" ActionUnpauseLabel = "unpause" )
Action labels for different pod/container/image operations.
Variables ¶
This section is empty.
Functions ¶
func GetPrometheusHandler ¶
GetPrometheusHandler return the prometheus handler.
func GetPrometheusRegistry ¶
func GetPrometheusRegistry() *prometheus.Registry
GetPrometheusRegistry return a resigtry of Prometheus.
func NewLabelCounter ¶
func NewLabelCounter(subsystem, name, help string, labels ...string) *prometheus.CounterVec
NewLabelCounter return a new CounterVec
func NewLabelGauge ¶
func NewLabelGauge(subsystem, name, help string, labels ...string) *prometheus.GaugeVec
NewLabelGauge return a new GaugeVec
func NewLabelSummary ¶
func NewLabelSummary(subsystem, name, help string, labels ...string) *prometheus.SummaryVec
NewLabelSummary return a new SummaryVec
func NewLabelTimer ¶
func NewLabelTimer(subsystem, name, help string, labels ...string) *prometheus.HistogramVec
NewLabelTimer return a new HistogramVec
func SinceInMicroseconds ¶
SinceInMicroseconds gets the time since the specified start in microseconds.
Types ¶
Click to show internal directories.
Click to hide internal directories.