port

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsAdapter

type MetricsAdapter interface {
	// ConfigureContainer configures a container to monitor the metrics of Vertex.
	ConfigureContainer(uuid uuid.UUID) error

	// RegisterMetrics registers the metrics that can be monitored.
	RegisterMetrics(metrics []types.Metric)

	Set(metricID string, value interface{}, labels ...string)
	Inc(metricID string, labels ...string)
	Dec(metricID string, labels ...string)
}

type MetricsHandler

type MetricsHandler interface {
	Get(c *router.Context)
	InstallCollector(c *router.Context)
	InstallVisualizer(c *router.Context)
}

type MetricsService

type MetricsService interface {
	GetMetrics() []types.Metric
	ConfigureVisualizer(inst *containerstypes.Container) error
	InstallVisualizer(ctx context.Context, visualizer string) error
	ConfigureCollector(inst *containerstypes.Container) error
	InstallCollector(ctx context.Context, collector string) error
}

Jump to

Keyboard shortcuts

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