collectors

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KbToBytes = []string{"fsSize", "freeBlocks", "totalMetadata"}
)

Functions

func Mmdf

func Mmdf(fs string) (string, error)

func SliceContains

func SliceContains(slice []string, str string) bool

Types

type CESMetric added in v0.3.0

type CESMetric struct {
	Service string
	State   string
}

type Collector

type Collector interface {
	// Get new metrics and expose them via prometheus registry.
	Describe(ch chan<- *prometheus.Desc)
	Collect(ch chan<- prometheus.Metric)
}

func NewMmcesCollector added in v0.3.0

func NewMmcesCollector() Collector

func NewMmdfCollector

func NewMmdfCollector() Collector

func NewMmdiagCollector added in v0.3.0

func NewMmdiagCollector() Collector

func NewMmhealthCollector

func NewMmhealthCollector() Collector

func NewMmpmonCollector

func NewMmpmonCollector() Collector

func NewMountCollector

func NewMountCollector() Collector

func NewVerbsCollector

func NewVerbsCollector() Collector

type DFMetric

type DFMetric struct {
	FS                  string
	InodesUsed          int64
	InodesFree          int64
	InodesAllocated     int64
	InodesTotal         int64
	FSTotal             int64
	FSFree              int64
	FSFreePercent       int64
	MetadataTotal       int64
	MetadataFree        int64
	MetadataFreePercent int64
}

func Parse_mmdf

func Parse_mmdf(out string) (DFMetric, error)

type DiagMetric added in v0.3.0

type DiagMetric struct {
	WaitersCount int
}

type GPFSCollector

type GPFSCollector struct {
	sync.Mutex
	Collectors map[string]Collector
}

func NewGPFSCollector

func NewGPFSCollector() *GPFSCollector

type GPFSFilesystem

type GPFSFilesystem struct {
	Name       string
	Mountpoint string
}

type HealthMetric

type HealthMetric struct {
	Component  string
	EntityName string
	EntityType string
	Status     string
}

type MmcesCollector added in v0.3.0

type MmcesCollector struct {
	State *prometheus.Desc
}

func (*MmcesCollector) Collect added in v0.3.0

func (c *MmcesCollector) Collect(ch chan<- prometheus.Metric)

func (*MmcesCollector) Describe added in v0.3.0

func (c *MmcesCollector) Describe(ch chan<- *prometheus.Desc)

type MmdfCollector

type MmdfCollector struct {
	InodesUsed          *prometheus.Desc
	InodesFree          *prometheus.Desc
	InodesAllocated     *prometheus.Desc
	InodesTotal         *prometheus.Desc
	FSTotal             *prometheus.Desc
	FSFree              *prometheus.Desc
	FSFreePercent       *prometheus.Desc
	MetadataTotal       *prometheus.Desc
	MetadataFree        *prometheus.Desc
	MetadataFreePercent *prometheus.Desc
}

func (*MmdfCollector) Collect

func (c *MmdfCollector) Collect(ch chan<- prometheus.Metric)

func (*MmdfCollector) Describe

func (c *MmdfCollector) Describe(ch chan<- *prometheus.Desc)

type MmdiagCollector added in v0.3.0

type MmdiagCollector struct {
	WaitersCount *prometheus.Desc
}

func (*MmdiagCollector) Collect added in v0.3.0

func (c *MmdiagCollector) Collect(ch chan<- prometheus.Metric)

func (*MmdiagCollector) Describe added in v0.3.0

func (c *MmdiagCollector) Describe(ch chan<- *prometheus.Desc)

type MmhealthCollector

type MmhealthCollector struct {
	State *prometheus.Desc
}

func (*MmhealthCollector) Collect

func (c *MmhealthCollector) Collect(ch chan<- prometheus.Metric)

func (*MmhealthCollector) Describe

func (c *MmhealthCollector) Describe(ch chan<- *prometheus.Desc)

type MmpmonCollector

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

func (*MmpmonCollector) Collect

func (c *MmpmonCollector) Collect(ch chan<- prometheus.Metric)

func (*MmpmonCollector) Describe

func (c *MmpmonCollector) Describe(ch chan<- *prometheus.Desc)

type MountCollector

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

func (*MountCollector) Collect

func (c *MountCollector) Collect(ch chan<- prometheus.Metric)

func (*MountCollector) Describe

func (c *MountCollector) Describe(ch chan<- *prometheus.Desc)

type PerfMetrics

type PerfMetrics struct {
	FS           string
	NodeName     string
	ReadBytes    int64
	WriteBytes   int64
	Reads        int64
	Writes       int64
	Opens        int64
	Closes       int64
	ReadDir      int64
	InodeUpdates int64
}

type VerbsCollector

type VerbsCollector struct {
	Status *prometheus.Desc
}

func (*VerbsCollector) Collect

func (c *VerbsCollector) Collect(ch chan<- prometheus.Metric)

func (*VerbsCollector) Describe

func (c *VerbsCollector) Describe(ch chan<- *prometheus.Desc)

type VerbsMetrics

type VerbsMetrics struct {
	Status string
}

Jump to

Keyboard shortcuts

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