parser

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric interface {
	Observe(interface{}) error
	String() string
}

type NodeMetric

type NodeMetric struct {
	Path  string
	Gauge *prometheus.GaugeVec
}

func NewGcPoolCountMetric

func NewGcPoolCountMetric(pool string) *NodeMetric

func NewGcPoolTimeMetric

func NewGcPoolTimeMetric(pool string) *NodeMetric

func NewHeapMetric

func NewHeapMetric(t string) *NodeMetric

func NewMemPoolMetric

func NewMemPoolMetric(pool, t string) *NodeMetric

func NewNodeMetric

func NewNodeMetric(name string, desc string, path string) *NodeMetric

func NewRawMetric

func NewRawMetric(op string) *NodeMetric

func NewThreadPoolMetrics

func NewThreadPoolMetrics(pool string) []*NodeMetric

func NewTotalAndMillisMetrics

func NewTotalAndMillisMetrics(m string) []*NodeMetric

func (*NodeMetric) Observe

func (m *NodeMetric) Observe(object interface{}) error

func (*NodeMetric) String

func (m *NodeMetric) String() string

type NodeStatsJson

type NodeStatsJson struct {
	Nodes map[string]*json.RawMessage `json:"nodes"`
}

func NewNodeStatsJson

func NewNodeStatsJson(r io.Reader) (*NodeStatsJson, error)

type SirenLicenseMetric added in v0.8.0

type SirenLicenseMetric struct {
	Valid prometheus.Gauge
}

func NewSirenLicenseMetric added in v0.8.0

func NewSirenLicenseMetric() *SirenLicenseMetric

func (SirenLicenseMetric) Observe added in v0.8.0

func (m SirenLicenseMetric) Observe(object interface{}) error

func (SirenLicenseMetric) String added in v0.8.0

func (m SirenLicenseMetric) String() string

type SirenMemoryMetric

type SirenMemoryMetric struct {
	Peak  *prometheus.GaugeVec
	Limit *prometheus.GaugeVec
}

func NewSirenMemoryMetric

func NewSirenMemoryMetric() *SirenMemoryMetric

func (SirenMemoryMetric) Observe

func (m SirenMemoryMetric) Observe(object interface{}) error

func (SirenMemoryMetric) String

func (m SirenMemoryMetric) String() string

Jump to

Keyboard shortcuts

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