This repository has been archived by the owner on Jun 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
kube-state-metrics.go
36 lines (34 loc) · 2.38 KB
/
kube-state-metrics.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package v1beta1
type KubeStateMetrics struct {
Deploy bool `json:"deploy,omitempty"`
Prefix string `json:"prefix,omitempty"`
Namespace string `json:"namespace,omitempty"`
ReplicaCount int `json:"replicaCount,omitempty"`
Collectors *Collectors `json:"collectors,omitempty"`
}
type Collectors struct {
Certificatesigningrequests bool `json:"certificatesigningrequests,omitempty" yaml:"certificatesigningrequests"`
Configmaps bool `json:"configmaps,omitempty" yaml:"configmaps"`
Cronjobs bool `json:"cronjobs,omitempty" yaml:"cronjobs"`
Daemonsets bool `json:"daemonsets,omitempty" yaml:"daemonsets"`
Deployments bool `json:"deployments,omitempty" yaml:"deployments"`
Endpoints bool `json:"endpoints,omitempty" yaml:"endpoints"`
Horizontalpodautoscalers bool `json:"horizontalpodautoscalers,omitempty" yaml:"horizontalpodautoscalers"`
Ingresses bool `json:"ingresses,omitempty" yaml:"ingresses"`
Jobs bool `json:"jobs,omitempty" yaml:"jobs"`
Limitranges bool `json:"limitranges,omitempty" yaml:"limitranges"`
Namespaces bool `json:"namespaces,omitempty" yaml:"namespaces"`
Nodes bool `json:"nodes,omitempty" yaml:"nodes"`
Persistentvolumeclaims bool `json:"persistentvolumeclaims,omitempty" yaml:"persistentvolumeclaims"`
Persistentvolumes bool `json:"persistentvolumes,omitempty" yaml:"persistentvolumes"`
Poddisruptionbudgets bool `json:"poddisruptionbudgets,omitempty" yaml:"poddisruptionbudgets"`
Pods bool `json:"pods,omitempty" yaml:"pods"`
Replicasets bool `json:"replicasets,omitempty" yaml:"replicasets"`
Replicationcontrollers bool `json:"replicationcontrollers,omitempty" yaml:"replicationcontrollers"`
Resourcequotas bool `json:"resourcequotas,omitempty" yaml:"resourcequotas"`
Secrets bool `json:"secrets,omitempty" yaml:"secrets"`
Services bool `json:"services,omitempty" yaml:"services"`
Statefulsets bool `json:"statefulsets,omitempty" yaml:"statefulsets"`
Storageclasses bool `json:"storageclasses,omitempty" yaml:"storageclasses"`
Verticalpodautoscalers bool `json:"verticalpodautoscalers,omitempty" yaml:"verticalpodautoscalers"`
}