exporter

package
v0.0.0-...-f4276bb Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildMetric

func BuildMetric()

Types

type AppCollector

type AppCollector struct {
	OperateLogCount *prometheus.Desc
	// contains filtered or unexported fields
}

应用程序自定义监控指标采集器

var (
	C *AppCollector
)

func NewAppCollector

func NewAppCollector() *AppCollector

func (*AppCollector) Collect

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

数据的采集

func (*AppCollector) Describe

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

发送我们的指标元数据

func (*AppCollector) OperateLogCountInc

func (c *AppCollector) OperateLogCountInc()

控制这个值进行计数

Jump to

Keyboard shortcuts

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