File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Lease Metrics
2
2
3
- | Metric name| Metric type | Labels/tags | Status |
4
- | ---------- | ----------- | ----------- | ----------- |
5
- | kube_lease_owner | Gauge | ` lease ` =< ; lease-name> ; <br > ` owner_kind ` =< ; onwer kind> ; <br > ` owner_name ` =< ; owner name> ; | EXPERIMENTAL |
6
- | kube_lease_renew_time | Gauge | ` lease ` =< ; lease-name> ; | EXPERIMENTAL |
3
+ | Metric name| Metric type | Labels/tags | Status |
4
+ | ---------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
5
+ | kube_lease_owner | Gauge | ` lease ` =< ; lease-name> ; <br > ` owner_kind ` =< ; onwer kind> ; <br > ` owner_name ` =< ; owner name> ; < br > ` namespace ` = & lt ; namespace & gt ; | EXPERIMENTAL |
6
+ | kube_lease_renew_time | Gauge | ` lease ` =< ; lease-name> ; < br > ` namespace ` = & lt ; namespace & gt ; | EXPERIMENTAL |
Original file line number Diff line number Diff line change @@ -107,10 +107,10 @@ func wrapLeaseFunc(f func(*coordinationv1.Lease) *metric.Family) func(interface{
107
107
func createLeaseListWatch (kubeClient clientset.Interface , _ string , _ string ) cache.ListerWatcher {
108
108
return & cache.ListWatch {
109
109
ListFunc : func (opts metav1.ListOptions ) (runtime.Object , error ) {
110
- return kubeClient .CoordinationV1 ().Leases ("kube-node-lease " ).List (context .TODO (), opts )
110
+ return kubeClient .CoordinationV1 ().Leases ("" ).List (context .TODO (), opts )
111
111
},
112
112
WatchFunc : func (opts metav1.ListOptions ) (watch.Interface , error ) {
113
- return kubeClient .CoordinationV1 ().Leases ("kube-node-lease " ).Watch (context .TODO (), opts )
113
+ return kubeClient .CoordinationV1 ().Leases ("" ).Watch (context .TODO (), opts )
114
114
},
115
115
}
116
116
}
You can’t perform that action at this time.
0 commit comments