Documentation ¶
Overview ¶
Package metrics contains helpers for exposing operational metrics for the application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Flags = flag.Flags{ &flag.Boolean{ Name: "metrics-disabled", Usage: "Disables exporting prometheus metrics", EnvVar: "METRICS_DISABLED", Destination: &disabled, Hidden: true, }, &flag.String{ Name: "metrics-push-url", Usage: "URL of the prometheus push gateway, if set, metrics are pushed", EnvVar: "METRICS_PUSH_URL", Destination: &pushURL, Hidden: true, }, }
Flags contains all command-line flags that can be used to configure metrics.
Functions ¶
func AddSQLStats ¶
AddSQLStats exports prometheus metrics for the provided SQL database connection.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.