metrics

package
Version: v0.0.0-...-4cca708 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	*manager.BaseManager
	// contains filtered or unexported fields
}

Manager the metrics manager

func NewManager

func NewManager(
	parentCtx context.Context,
	name string,
	connectivityManager connectivity.Manager,
	options *Options,
) *Manager

NewManager creates a new metrics manager for virtual node

func (*Manager) Close

func (m *Manager) Close()

Close the metrics manager

func (*Manager) HandleContainerMetrics

func (m *Manager) HandleContainerMetrics(w http.ResponseWriter, r *http.Request)

HandleContainerMetrics handle requests to collect metrics exported by cAdvisor

func (*Manager) HandleNodeMetrics

func (m *Manager) HandleNodeMetrics(w http.ResponseWriter, r *http.Request)

HandleNodeMetrics handle requests to collect metrics exported by node-exporter

func (*Manager) HandlePprof

func (m *Manager) HandlePprof(w http.ResponseWriter, r *http.Request)

func (*Manager) HandleProbesMetrics

func (m *Manager) HandleProbesMetrics(w http.ResponseWriter, r *http.Request)

func (*Manager) HandleResourceMetrics

func (m *Manager) HandleResourceMetrics(w http.ResponseWriter, r *http.Request)

func (*Manager) HandleStats

func (m *Manager) HandleStats(w http.ResponseWriter, r *http.Request)

handle root container stats

func (*Manager) HandleStatsContainer

func (m *Manager) HandleStatsContainer(w http.ResponseWriter, r *http.Request)

func (*Manager) HandleStatsSpec

func (m *Manager) HandleStatsSpec(w http.ResponseWriter, r *http.Request)

HandleStatsSpec

func (*Manager) HandleStatsSummary

func (m *Manager) HandleStatsSummary(w http.ResponseWriter, r *http.Request)

func (*Manager) HandleStatsSystemContainer

func (m *Manager) HandleStatsSystemContainer(w http.ResponseWriter, r *http.Request)

func (*Manager) Start

func (m *Manager) Start() error

Start the metrics manager

func (*Manager) UpdateMetrics

func (m *Manager) UpdateMetrics(forRuntime bool, metricsData []byte) error

UpdateMetrics cache the newly collected metrics

type Options

type Options struct {
	NodeMetrics    []conf.VirtualnodeNodeMetricsConfig
	RuntimeMetrics *aranyaapi.MetricsConfig
	GetOS          func() string
}

Jump to

Keyboard shortcuts

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