2022-05-16 11:58:50 +08:00
|
|
|
# Categraf
|
2022-04-14 15:18:49 +08:00
|
|
|
|
2022-05-31 06:35:56 +08:00
|
|
|
Categraf is a monitoring agent for nightingale/prometheus/m3db/victoriametrics/thanos/influxdb/tdengine.
|
2022-04-14 15:18:49 +08:00
|
|
|
|
2022-05-31 06:33:13 +08:00
|
|
|
## QuickStart
|
|
|
|
|
|
|
|
[QuickStart](https://www.gitlink.org.cn/flashcat/categraf/wiki)
|
|
|
|
|
2022-05-30 13:43:58 +08:00
|
|
|
## Releases
|
|
|
|
|
|
|
|
[Releases](https://www.gitlink.org.cn/flashcat/categraf/releases)
|
|
|
|
|
2022-05-16 11:58:50 +08:00
|
|
|
## Build
|
2022-04-14 15:18:49 +08:00
|
|
|
|
|
|
|
```shell
|
2022-05-16 11:58:50 +08:00
|
|
|
# export GO111MODULE=on
|
|
|
|
# export GOPROXY=https://goproxy.cn
|
2022-04-14 15:18:49 +08:00
|
|
|
go build
|
|
|
|
```
|
2022-06-13 19:52:13 +08:00
|
|
|
|
2022-06-13 19:55:02 +08:00
|
|
|
## Deploy categraf as daemonset
|
2022-06-13 19:52:13 +08:00
|
|
|
|
|
|
|
```shell
|
2022-06-13 20:16:33 +08:00
|
|
|
edit k8s/damonset.sh, set dry_run to false and set namespace (default test), then
|
2022-06-13 19:52:13 +08:00
|
|
|
|
|
|
|
cd k8s && sh daemonset.sh install
|
|
|
|
```
|
2022-04-14 15:18:49 +08:00
|
|
|
|
2022-05-16 11:58:50 +08:00
|
|
|
## Test
|
|
|
|
|
|
|
|
```shell
|
|
|
|
./categraf --test
|
|
|
|
|
|
|
|
# usage:
|
|
|
|
./categraf --help
|
|
|
|
```
|
|
|
|
|
|
|
|
## Pack
|
2022-04-14 15:18:49 +08:00
|
|
|
|
|
|
|
```shell
|
|
|
|
tar zcvf categraf.tar.gz categraf conf
|
|
|
|
```
|
2022-04-17 11:05:12 +08:00
|
|
|
|
2022-05-24 20:07:07 +08:00
|
|
|
## Plan
|
2022-04-17 11:05:12 +08:00
|
|
|
|
2022-05-24 20:07:07 +08:00
|
|
|
- [x] system
|
|
|
|
- [x] kernel
|
|
|
|
- [x] kernel_vmstat
|
|
|
|
- [x] linux_sysctl_fs
|
|
|
|
- [x] cpu
|
|
|
|
- [x] mem
|
|
|
|
- [x] net
|
|
|
|
- [x] netstat
|
|
|
|
- [x] disk
|
|
|
|
- [x] diskio
|
|
|
|
- [x] ntp
|
|
|
|
- [x] processes
|
|
|
|
- [x] exec
|
|
|
|
- [x] ping
|
|
|
|
- [x] http_response
|
|
|
|
- [x] net_response
|
|
|
|
- [x] procstat
|
|
|
|
- [x] mysql
|
|
|
|
- [x] redis
|
|
|
|
- [x] oracle
|
|
|
|
- [x] rabbitmq
|
|
|
|
- [x] prometheus
|
|
|
|
- [x] tomcat
|
|
|
|
- [x] nvidia_smi
|
2022-06-01 11:58:12 +08:00
|
|
|
- [x] nginx_upstream_check
|
2022-05-02 15:35:01 +08:00
|
|
|
- [ ] k8s solution
|
|
|
|
- [ ] nginx vts
|
|
|
|
- [ ] mongodb
|
|
|
|
- [ ] rocketmq
|
|
|
|
- [ ] activemq
|
|
|
|
- [ ] kafka
|
|
|
|
- [ ] elasticsearch
|
|
|
|
- [ ] prometheus discovery
|
2022-06-01 11:58:12 +08:00
|
|
|
- [x] windows
|
2022-05-02 15:35:01 +08:00
|
|
|
- [ ] mssql
|
|
|
|
- [ ] iis
|
|
|
|
- [ ] weblogic
|
|
|
|
- [ ] was
|
|
|
|
- [ ] hadoop
|
|
|
|
- [ ] ad
|
|
|
|
- [ ] zookeeper
|
|
|
|
- [ ] statsd
|
|
|
|
- [ ] snmp
|
2022-06-01 11:58:12 +08:00
|
|
|
- [x] switch_legacy
|
2022-05-02 15:35:01 +08:00
|
|
|
- [ ] ipmi
|
|
|
|
- [ ] smartctl
|
|
|
|
- [ ] logging
|
|
|
|
- [ ] trace
|
2022-05-16 11:58:50 +08:00
|
|
|
|
2022-05-30 13:43:58 +08:00
|
|
|
## FAQ
|
|
|
|
|
|
|
|
[FAQ](https://www.gitlink.org.cn/flashcat/categraf/wiki)
|
|
|
|
|
2022-05-16 11:58:50 +08:00
|
|
|
## Thanks
|
|
|
|
|
|
|
|
Categraf is developed on the basis of Telegraf and Exporters. Thanks to the great open source community.
|