monitoring

package
v0.0.0-...-4eadfbb Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CustomMetricName  = "foo-metric"
	UnusedMetricName  = "unused-metric"
	CustomMetricValue = int64(448)
	UnusedMetricValue = int64(446)
)

Functions

func CheckCadvisorHealthOnAllNodes

func CheckCadvisorHealthOnAllNodes(c clientset.Interface, timeout time.Duration)

func CleanupAdapter

func CleanupAdapter() error

CleanupAdapter deletes Custom Metrics - Stackdriver adapter deployments.

func CleanupDescriptors

func CleanupDescriptors(service *gcm.Service, projectId string)

CleanupDescriptors deletes descriptors for metrics: CustomMetricName and UnusedMetricName. TODO: Cleanup time series as well

func CreateAdapter

func CreateAdapter() error

CreateAdapter creates Custom Metrics - Stackdriver adapter.

func CreateDescriptors

func CreateDescriptors(service *gcm.Service, projectId string) error

CreateDescriptors creates descriptors for metrics: CustomMetricName and UnusedMetricName.

func Query

func Query(c clientset.Interface, query string) (*influxdb.Response, error)

Query sends a command to the server and returns the Response

func StackdriverExporterDeployment

func StackdriverExporterDeployment(name, namespace string, replicas int32, metricValue int64) *extensions.Deployment

StackdriverExporterDeployment is a Deployment of simple application that exports a metric of fixed value to Stackdriver in a loop.

func StackdriverExporterPod

func StackdriverExporterPod(podName, namespace, podLabel, metricName string, metricValue int64) *corev1.Pod

StackdriverExporterPod is a Pod of simple application that exports a metric of fixed value to Stackdriver in a loop.

Types

This section is empty.

Jump to

Keyboard shortcuts

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