exporter

package
v0.0.0-...-70df4e6 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpHandler

func HttpHandler() http.Handler

HttpHandler used to handle metrics request you can use it like that

http.Handle("/metrics", exporter.HttpHandler)

because it depend on Keeper, so you should call this function after keeper start

Types

type ExecutorCollector

type ExecutorCollector struct {
	RunningTaskCount   int64
	SuccessTaskCount   uint64
	FailedTaskCount    uint64
	CompletedTaskCount uint64

	ParseElapsedMs   int64
	ParseFailedCount int64
}

ExecutorCollector

func (*ExecutorCollector) Collect

func (c *ExecutorCollector) Collect(ch chan<- prometheus.Metric)

Collect

func (*ExecutorCollector) Describe

func (c *ExecutorCollector) Describe(ch chan<- *prometheus.Desc)

Describe

func (*ExecutorCollector) Handle

func (c *ExecutorCollector) Handle(cxt context.Context, e goevent.Event)

Handle is goevent's handler

func (*ExecutorCollector) Topic

func (c *ExecutorCollector) Topic() []string

Topic is goevent's topic

type LeaderCollector

type LeaderCollector struct {
	DispatchElapsedMs   int64
	DispatchFailedCount int64
}

ExecutorCollector

func (*LeaderCollector) Collect

func (c *LeaderCollector) Collect(ch chan<- prometheus.Metric)

Collect

func (*LeaderCollector) Describe

func (c *LeaderCollector) Describe(ch chan<- *prometheus.Desc)

Describe

func (*LeaderCollector) Handle

func (c *LeaderCollector) Handle(cxt context.Context, e goevent.Event)

Handle is goevent's handler

func (*LeaderCollector) Topic

func (c *LeaderCollector) Topic() []string

Topic is goevent's topic

Jump to

Keyboard shortcuts

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