monitor

package
v3.0.0-...-7237cd1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NormalStatus = uint32(0)
	PauseStatus  = uint32(1)
)
View Source
const InsertStatement = "insert into"

Variables

View Source
var (
	RestTotal *metrics.Gauge
	RestQuery *metrics.Gauge
	RestWrite *metrics.Gauge
	RestOther *metrics.Gauge

	RestSuccess      *metrics.Gauge
	RestQuerySuccess *metrics.Gauge
	RestWriteSuccess *metrics.Gauge
	RestOtherSuccess *metrics.Gauge

	RestFail      *metrics.Gauge
	RestQueryFail *metrics.Gauge
	RestWriteFail *metrics.Gauge
	RestOtherFail *metrics.Gauge

	RestInProcess      *metrics.Gauge
	RestQueryInProcess *metrics.Gauge
	RestWriteInProcess *metrics.Gauge
	RestOtherInProcess *metrics.Gauge
)

rest

View Source
var (
	WSTotal *metrics.Gauge
	WSQuery *metrics.Gauge
	WSWrite *metrics.Gauge
	WSOther *metrics.Gauge

	WSSuccess      *metrics.Gauge
	WSQuerySuccess *metrics.Gauge
	WSWriteSuccess *metrics.Gauge
	WSOtherSuccess *metrics.Gauge

	WSFail      *metrics.Gauge
	WSQueryFail *metrics.Gauge
	WSWriteFail *metrics.Gauge
	WSOtherFail *metrics.Gauge

	WSInProcess      *metrics.Gauge
	WSQueryInProcess *metrics.Gauge
	WSWriteInProcess *metrics.Gauge
	WSOtherInProcess *metrics.Gauge
)

Functions

func AllPaused

func AllPaused() bool

func InitKeeper

func InitKeeper()

func QueryPaused

func QueryPaused() bool

func RestRecordRequest

func RestRecordRequest(sql string) sqltype.SqlType

func RestRecordResult

func RestRecordResult(sqlType sqltype.SqlType, success bool)

func StartMonitor

func StartMonitor()

func StartUpload

func StartUpload()

func WSRecordRequest

func WSRecordRequest(sql string) sqltype.SqlType

func WSRecordResult

func WSRecordResult(sqlType sqltype.SqlType, success bool)

Types

type UploadData

type UploadData struct {
	Ts       int64          `json:"ts"`
	Metrics  map[string]int `json:"metrics"`
	Endpoint string         `json:"endpoint"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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