Documentation ¶
Index ¶
- Constants
- func Alert(level, module, name string) error
- func AlertErr(module, name string)
- func AlertPanic(module, name string)
- func AlertWarn(module, name string)
- func Init(config Config)
- func PromHandler(handler http.Handler) gin.HandlerFunc
- func PrometheusBind(engine *gin.Engine, path string)
- func StartAgent(addr, path string)
- type Config
Constants ¶
View Source
const ( LevelWarning = "warn" LevelError = "error" LevelPanic = "panic" )
Variables ¶
This section is empty.
Functions ¶
func AlertPanic ¶
func AlertPanic(module, name string)
func PromHandler ¶
func PromHandler(handler http.Handler) gin.HandlerFunc
func PrometheusBind ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.