metrics

package
v0.0.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

README

Метрики

Выпилить когда закроют https://st.yandex-team.ru/SOLOMON-3702

Documentation

Overview

Package metrics provides interface collecting performance metrics.

Index

Constants

View Source
const (
	SolomonMetricsChunkSize = 8000 // 10k is max as per docs: https://docs.yandex-team.ru/solomon/concepts/limits#quotas
)

Variables

This section is empty.

Functions

func NewDefaultPrometheusRegistry

func NewDefaultPrometheusRegistry() metrics.Registry

func NewPrometheusRegistryWithNameProcessor

func NewPrometheusRegistryWithNameProcessor() (*prometheus.Registry, metrics.Registry)

func NewRegistry

func NewRegistry() metrics.Registry

func RefineTags

func RefineTags(tags map[string]string) map[string]string

func WithNameProcessor

func WithNameProcessor(registry metrics.Registry, nameProcessor func(string) string) metrics.Registry

Types

type Ps

type Ps struct {
	// contains filtered or unexported fields
}

func NewPs

func NewPs(registry metrics.Registry) *Ps

func (*Ps) Run

func (p *Ps) Run()

type RegistryWrapper

type RegistryWrapper interface {
	Registry() metrics.Registry
}

type RuntimeStat

type RuntimeStat struct {
	// contains filtered or unexported fields
}

type Stat

type Stat struct {
	// contains filtered or unexported fields
}

type SysInfo

type SysInfo struct {
	CPU         float64
	Memory      float64
	Descriptors float64
}

func GetStat

func GetStat(pid int) (*SysInfo, error)

GetStat may return incomplete result (with some fields unfilled)

Jump to

Keyboard shortcuts

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