telemetry

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 7 Imported by: 0

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 Log

func Log(label Label, s string)

func RegisterResponser

func RegisterResponser()

func RegisterSpider

func RegisterSpider()

func RegisterStorer

func RegisterStorer()

func RunLoki

func RunLoki(uri string, logType string) chan error

func RunPrometheus

func RunPrometheus(addr string)

Types

type Label

type Label map[string]string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL