openmetric

package
v0.0.0-...-f49aa48 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
}

func (*Logger) Log

func (l *Logger) Log(keyvals ...interface{}) error

type Manager

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

我们将 prometheus 的服务端集成进来(采集能力) 将我们的配置转成 prometheus 识别的配置 配置 remote storage 写到 gateway 本文件的大部分内容是 prometheus 初始化流程的简化版

func NewManager

func NewManager(ctm *collecttask.Manager) *Manager

func (*Manager) OnUpdate

func (m *Manager) OnUpdate(delta *collecttask.Delta)

func (*Manager) Start

func (m *Manager) Start()

func (*Manager) StartListen

func (m *Manager) StartListen()

func (*Manager) Stop

func (m *Manager) Stop()

type MyK8sConfig

type MyK8sConfig struct{}

func (*MyK8sConfig) Name

func (m *MyK8sConfig) Name() string

func (*MyK8sConfig) NewDiscoverer

func (m *MyK8sConfig) NewDiscoverer(options discovery.DiscovererOptions) (discovery.Discoverer, error)

type MyK8sDiscoverer

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

func (*MyK8sDiscoverer) Run

func (m *MyK8sDiscoverer) Run(ctx context.Context, up chan<- []*targetgroup.Group)

type Storage

type Storage struct {
}

func (*Storage) Appender

func (s *Storage) Appender(ctx context.Context) storage.Appender

Jump to

Keyboard shortcuts

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