Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clouddetail/node-agent
https://github.com/clouddetail/node-agent
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/clouddetail/node-agent
- Owner: CloudDetail
- License: apache-2.0
- Created: 2024-08-09T01:08:04.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-10-28T04:01:49.000Z (2 months ago)
- Last Synced: 2024-10-28T05:26:58.713Z (2 months ago)
- Language: Go
- Size: 62.5 KB
- Stars: 1
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-agent
node-agent 用于导出应用和下游依赖的网络指标和应用程序启动时间指标
## 构建
```bash
docker build -t node-agent:latest -f ./docker/Dockerfile .
```## 部署
```bash
docker run -d --rm \
-e PROCESS_TYPE="java,python,node" \
-e PROCESS_TIME="true" \
-v /proc:/proc:ro \
--net=host --pid=host --privileged \
node-agent:latest
```## 配置环境变量
- PROCESS_TYPE: 监控的应用启动名称白名单,如java,python,node
- K8S_NAMESPACE_WHITELIST: k8s命名空间白名单, 如default,go-auto
- LRU_CACHE_SIZE 指标缓存大小,默认为50000
- PROCESS_TIME: 是否监控应用启动时间
- PID_SCAN: 更新进程pid信息的间隔时间,默认为1分钟
- PING_SCAN: 更新进程ping信息的间隔时间,默认为5s
- MY_NODE_NAME: 节点名称
- MY_NODE_IP: 节点IP
- FETCH_SOURCE_ADDR: 连接 metadata 获取 kubernetes 信息
- AUTH_TYPE && KUBE_CONFIG: 直接连接 kubernetes 获取信息