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
This project is inspired by [kube-state-metrics](https://github.com/kubernetes/kube-state-metrics) and [kubectl](https://github.com/kubernetes/kubectl).
These samples values should be equal to the result of `kubectl describe node <node>`.
14
16
15
17
## Getting started
16
-
TODO: add docker image
17
18
18
-
### build manually
19
+
### Try in Minikube
20
+
Please ensure you have [minikube](https://github.com/kubernetes/minikube) installed.
21
+
22
+
Run with following commands in your terminal:
23
+
```
24
+
minikube start
25
+
kubectl apply -f deploy.yaml
26
+
```
27
+
28
+
### Run in Kubernetes
29
+
```bash
30
+
kubectl apply -f deploy.yaml
31
+
```
32
+
33
+
## Build
34
+
### build binary manually
19
35
```bash
20
36
go build .
21
37
```
22
38
23
-
# TODO
24
-
1. release with docker image
25
-
1. support custom k8s api server address
26
-
1. support mutiple arch docker iamges
39
+
### build docker image
40
+
```bash
41
+
docker build . -t <image>:<tag>
42
+
```
43
+
44
+
## Operating
45
+
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.
46
+
47
+
48
+
## TODO
49
+
1. support exposed node labels match given pattern
0 commit comments