Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yzs981130 committed Jul 6, 2020
1 parent d1d4721 commit 3142092
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Pod Lifecycle Logger

## documentation

通过定期轮询k8s中的活跃pod,再轮询k8s的metrics相关endpoint`apis/metrics.k8s.io/v1beta1/namespaces/default/pods`,获取到当前集群中所有活跃pods的CPU和memory使用情况,并通过与上一次记录比较,将更新的内容记录下来。最终持久化到log中。

## dependency

需要k8s具有`metrics.k8s.io`的metrics API
Expand All @@ -12,5 +16,5 @@

## image

`docker pull yzs981130/podlifecyclelogger:version-0.0.2`
`docker pull yzs981130/podlifecyclelogger:version-0.0.3`

0 comments on commit 3142092

Please sign in to comment.