promtop

package
v0.0.0-...-2b2b6e7 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dashboard

func Dashboard(d Cache)

Types

type Cache

type Cache struct {
	Data
	// contains filtered or unexported fields
}

func (*Cache) GetInstances

func (c *Cache) GetInstances() []string

func (*Cache) MaxInstanceNameLen

func (c *Cache) MaxInstanceNameLen() int

func (*Cache) NumberOfInstances

func (c *Cache) NumberOfInstances() int

type Data

type Data interface {
	GetCpu(string) []float64
	GetInstances() []string
}

type NodeExporterData

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

func (*NodeExporterData) GetCpu

func (n *NodeExporterData) GetCpu(instance string) []float64

func (*NodeExporterData) GetInstances

func (n *NodeExporterData) GetInstances() []string

type PrometheusData

type PrometheusData struct {
}

func (*PrometheusData) GetCpu

func (p *PrometheusData) GetCpu(instance string) []float64

func (*PrometheusData) GetInstances

func (p *PrometheusData) GetInstances() []string

Jump to

Keyboard shortcuts

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