Documentation ¶
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
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CustomMetricName = "foo-metric" UnusedMetricName = "unused-metric" CustomMetricValue = int64(448) UnusedMetricValue = int64(446) // HPAPermissions is a ClusterRoleBinding that grants unauthenticated user permissions granted for // HPA for testing purposes, i.e. it should grant permission to read custom metrics. HPAPermissions = &rbac.ClusterRoleBinding{ ObjectMeta: metav1.ObjectMeta{ Name: "custom-metrics-reader", }, RoleRef: rbac.RoleRef{ APIGroup: "rbac.authorization.k8s.io", Kind: "ClusterRole", Name: "system:controller:horizontal-pod-autoscaler", }, Subjects: []rbac.Subject{ { APIGroup: "rbac.authorization.k8s.io", Kind: "Group", Name: "system:unauthenticated", }, }, } )
Functions ¶
func CleanupAdapter ¶ added in v1.9.0
func CleanupAdapter() error
CleanupAdapter deletes Custom Metrics - Stackdriver adapter deployments.
func CleanupDescriptors ¶ added in v1.9.0
CleanupDescriptors deletes descriptors for metrics: CustomMetricName and UnusedMetricName. TODO: Cleanup time series as well
func CreateAdapter ¶ added in v1.9.0
func CreateAdapter() error
CreateAdapter creates Custom Metrics - Stackdriver adapter.
func CreateDescriptors ¶ added in v1.9.0
CreateDescriptors creates descriptors for metrics: CustomMetricName and UnusedMetricName.
func StackdriverExporterDeployment ¶ added in v1.9.0
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.