package monitoring
import "k8s.io/kubernetes/test/e2e/instrumentation/monitoring"
Index ¶
- Variables
- func CheckCadvisorHealthOnAllNodes(c clientset.Interface, timeout time.Duration)
- func CleanupAdapter() error
- func CleanupDescriptors(service *gcm.Service, projectId string)
- func CreateAdapter() error
- func CreateDescriptors(service *gcm.Service, projectId string) error
- func Query(c clientset.Interface, query string) (*influxdb.Response, error)
- func StackdriverExporterDeployment(name, namespace string, replicas int32, metricValue int64) *extensions.Deployment
- func StackdriverExporterPod(podName, namespace, podLabel, metricName string, metricValue int64) *corev1.Pod
Variables ¶
var ( CustomMetricName = "foo-metric" UnusedMetricName = "unused-metric" CustomMetricValue = int64(448) UnusedMetricValue = int64(446) )
Functions ¶
func CheckCadvisorHealthOnAllNodes ¶
func CleanupAdapter ¶
func CleanupAdapter() error
CleanupAdapter deletes Custom Metrics - Stackdriver adapter deployments.
func CleanupDescriptors ¶
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 ¶
CreateDescriptors creates descriptors for metrics: CustomMetricName and UnusedMetricName.
func Query ¶
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.
Source Files ¶
cadvisor.go custom_metrics_deployments.go custom_metrics_stackdriver.go influxdb.go metrics_grabber.go stackdriver.go
- Version
- v1.9.0-alpha.2
- Published
- Nov 1, 2017
- Platform
- js/wasm
- Imports
- 28 packages
- Last checked
- 9 minutes ago –
Tools for package owners.