cloudhealthlmm

package
v0.0.0-...-fe13f99 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: Apache-2.0 Imports: 7 Imported by: 10

Documentation

Overview

cloudhealthlmm contains routines for writing cloudhealth data to lmm.

Index

Constants

View Source
const (
	CpuUsedPercentAvg = "CpuUsedPercentAvg"
	CpuUsedPercentMax = "CpuUsedPercentMax"
	CpuUsedPercentMin = "CpuUsedPercentMin"

	MemoryFreeBytesAvg = "MemoryFreeBytesAvg"
	MemoryFreeBytesMax = "MemoryFreeBytesMax"
	MemoryFreeBytesMin = "MemoryFreeBytesMin"

	MemorySizeBytesAvg = "MemorySizeBytesAvg"
	MemorySizeBytesMax = "MemorySizeBytesMax"
	MemorySizeBytesMin = "MemorySizeBytesMin"

	MemoryUsedPercentAvg = "MemoryUsedPercentAvg"
	MemoryUsedPercentMax = "MemoryUsedPercentMax"
	MemoryUsedPercentMin = "MemoryUsedPercentMin"

	FsSizeBytesAvg = "FsSizeBytesAvg"
	FsSizeBytesMax = "FsSizeBytesMax"
	FsSizeBytesMin = "FsSizeBytesMin"

	FsUsedBytesAvg = "FsUsedBytesAvg"
	FsUsedBytesMax = "FsUsedBytesMax"
	FsUsedBytesMin = "FsUsedBytesMin"

	FsUsedPercentAvg = "FsUsedPercentAvg"
	FsUsedPercentMax = "FsUsedPercentMax"
	FsUsedPercentMin = "FsUsedPercentMin"
)

Metric names used when writing to lmm

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Kafka  kafka.Config `yaml:"kafka"`  // standard lmm configuration
	Region string       `yaml:"region"` // like "us-east-1"
}

Config is the configuration for writing to cloudhealth data to lmm

func (*Config) Reset

func (c *Config) Reset()

func (*Config) UnmarshalYAML

func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error

type Writer

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

Writer writes cloudhealth data to lmm

func NewWriter

func NewWriter(c Config) (*Writer, error)

NewWriter returns a new Writer instance.

func (*Writer) Write

func (w *Writer) Write(snapshot *chpipeline.Snapshot) error

Write writes a snapshot to LMM

Jump to

Keyboard shortcuts

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