Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RequestsCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "total_requests_count", }, []string{"handler"}) RequestsHitCache = prometheus.NewCounter(prometheus.CounterOpts{ Name: "requests_cache_hit_count", }) RequestsErrorCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "requests_error_count", }, []string{"handler"}) SpiderTaskCount = prometheus.NewCounter(prometheus.CounterOpts{ Name: "spider_task_count", }) SpiderErrorTaskCount = prometheus.NewCounter(prometheus.CounterOpts{ Name: "spider_error_task_count", }) )
View Source
var LogType = ""
View Source
var LoglokiIns = &loki.LokiClient{}
Functions ¶
func RegisterResponser ¶
func RegisterResponser()
func RegisterSpider ¶
func RegisterSpider()
func RegisterStorer ¶
func RegisterStorer()
func RunPrometheus ¶
func RunPrometheus(addr string)
Types ¶
Click to show internal directories.
Click to hide internal directories.