update README
This commit is contained in:
parent
fe5a0f71b9
commit
f4f49e114d
73
README.md
73
README.md
|
@ -1,14 +1,13 @@
|
||||||
# Categraf
|
# 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)
|
- [QuickStart](https://www.gitlink.org.cn/flashcat/categraf/wiki/QuickStart)
|
||||||
|
- [FAQ](https://www.gitlink.org.cn/flashcat/categraf/wiki/FAQ)
|
||||||
## Releases
|
- [Github Releases](https://github.com/flashcatcloud/categraf/releases)
|
||||||
|
- [Gitlink Releases](https://www.gitlink.org.cn/flashcat/categraf/releases)
|
||||||
[Releases](https://www.gitlink.org.cn/flashcat/categraf/releases)
|
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
|
@ -18,30 +17,51 @@ Categraf is a monitoring agent for nightingale/prometheus/m3db/victoriametrics/t
|
||||||
go build
|
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
|
## Pack
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
tar zcvf categraf.tar.gz categraf conf
|
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] [system](inputs/system)
|
||||||
- [x] [kernel](inputs/kernel)
|
- [x] [kernel](inputs/kernel)
|
||||||
|
@ -93,9 +113,6 @@ tar zcvf categraf.tar.gz categraf conf
|
||||||
- [ ] logging
|
- [ ] logging
|
||||||
- [ ] trace
|
- [ ] trace
|
||||||
|
|
||||||
## FAQ
|
|
||||||
|
|
||||||
[FAQ](https://www.gitlink.org.cn/flashcat/categraf/wiki)
|
|
||||||
|
|
||||||
## Thanks
|
## Thanks
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue