From f4f49e114df6f8b4620ffee81d07f91630ce4367 Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Fri, 24 Jun 2022 17:53:45 +0800 Subject: [PATCH] update README --- README.md | 73 ++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 45 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 47f9021..b5d5875 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,13 @@ # Categraf -Categraf is a monitoring agent for nightingale/prometheus/m3db/victoriametrics/thanos/influxdb/tdengine. +Categraf is a monitoring agent for nightingale / prometheus / m3db / victoriametrics / thanos / influxdb / tdengine. -## QuickStart +## Links -[QuickStart](https://www.gitlink.org.cn/flashcat/categraf/wiki) - -## Releases - -[Releases](https://www.gitlink.org.cn/flashcat/categraf/releases) +- [QuickStart](https://www.gitlink.org.cn/flashcat/categraf/wiki/QuickStart) +- [FAQ](https://www.gitlink.org.cn/flashcat/categraf/wiki/FAQ) +- [Github Releases](https://github.com/flashcatcloud/categraf/releases) +- [Gitlink Releases](https://www.gitlink.org.cn/flashcat/categraf/releases) ## Build @@ -18,30 +17,51 @@ Categraf is a monitoring agent for nightingale/prometheus/m3db/victoriametrics/t go build ``` -## Deploy categraf as daemonset - -```shell -edit k8s/categraf.yaml, replace NSERVER_SERVICE_WITH_PORT with service ip:port of nserver in your cluster, replace CATEGRAF_NAMESPACE with namespace value, then run: - -kubectl apply -n monitoring -f ks8/categraf.yaml -``` - -## Test - -```shell -./categraf --test - -# usage: -./categraf --help -``` - ## Pack ```shell tar zcvf categraf.tar.gz categraf conf ``` -## Plan + +## Run + +```shell +# test mode: just print metrics to stdout +./categraf --test + +# test system and mem plugins +./categraf --test --inputs system:mem + +# print usage message +./categraf --help + +# run +./categraf + +# run with specified config directory +./categraf --configs /path/to/conf-directory + +# only enable system and mem plugins +./categraf --inputs system:mem + +# use nohup to start categraf +nohup ./categraf &> stdout.log & +``` + + +## Deploy categraf as daemonset + +edit k8s/categraf.yaml, replace NSERVER_SERVICE_WITH_PORT with service ip:port of nserver in your cluster, replace CATEGRAF_NAMESPACE with namespace value, then run: + +```shell +kubectl apply -n monitoring -f ks8/categraf.yaml +``` + + +## Plugin + +Click on the links to see the README of each plugin. - [x] [system](inputs/system) - [x] [kernel](inputs/kernel) @@ -93,9 +113,6 @@ tar zcvf categraf.tar.gz categraf conf - [ ] logging - [ ] trace -## FAQ - -[FAQ](https://www.gitlink.org.cn/flashcat/categraf/wiki) ## Thanks