You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-3
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
# Kube Node Metrics
2
+
[中文版](README-zh.md)
2
3
3
4
This project is inspired by [kube-state-metrics](https://github.com/kubernetes/kube-state-metrics) and [kubectl](https://github.com/kubernetes/kubectl).
4
5
@@ -16,6 +17,8 @@ These samples values should be equal to the result of `kubectl describe node <no
16
17
17
18
### Try in Minikube
18
19
Please ensure you have [minikube](https://github.com/kubernetes/minikube) installed.
20
+
21
+
Run with following commands in your terminal:
19
22
```
20
23
minikube start
21
24
kubectl apply -f deploy.yaml
@@ -26,7 +29,8 @@ kubectl apply -f deploy.yaml
26
29
kubectl apply -f deploy.yaml
27
30
```
28
31
29
-
### build manually
32
+
## Build
33
+
### build binary manually
30
34
```bash
31
35
go build .
32
36
```
@@ -36,6 +40,9 @@ go build .
36
40
docker build . -t <image>:<tag>
37
41
```
38
42
39
-
# TODO
40
-
1. support custom k8s api server address
43
+
## Operating
44
+
This exporter also exposed a metric `kube_node_metrics_last_full_sync_ok_time_seconds` which indicates the last full sync timestamp in seconds. You can create alert rule to monitor the exporter health with the expression `time() - kube_node_metrics_last_full_sync_ok_time_seconds > 300` and you will receive alert if the exporter is not sync sucessfully for 300 seconds.
45
+
46
+
47
+
## TODO
41
48
1. support exposed node labels match given pattern
0 commit comments