coroot 简单试用

主要是体验下coroot ,基于虚拟机+docker-compose 混合模式

参考玩法

 

 

本次玩法

coroot server 以及prometheus 使用容器部署(docker-compose),因为内核原因原因,node-agent 基于了虚拟机,同时安装了,5.4 的内核

 

 

环境配置

  • docker-compose
version: "3"
services:
  coroot-server:
    image: ghcr.io/coroot/coroot:latest
    ports:
    - "8080:8080"
  prometheus:
    image: prom/prometheus
    volumes:
      - "./prometheus.yml:/etc/prometheus/prometheus.yml"
    ports:
      - "9090:9090"
  grafana:
    image: grafana/grafana
    ports:
      - "3000:3000"

prometheus.yml

scrape_configs:
  - job_name: coroot-node
    metrics_path: /metrics
    scrape_interval: 10s
    scrape_timeout: 10s
    static_configs:
      - targets: ['nodeip:9999']

效果

  • 启动
docker-compose up -d
  • coroot server 界面

首先配置prometheus server 信息

 

 


自动发现的服务效果

 

 


日志信息查看

 

 


网络信息查看

 

 

说明

通过体验coroot 还是很不错的,主要是使用简单,而且自动可以发现服务依赖,相比其他一些观测工具简洁不少,支持node,以及log 的处理,如果内核版本允许还是值得使用的

参考资料

https://coroot.com/
https://coroot.com/docs/metric-exporters/node-agent/overview
https://github.com/coroot/coroot-node-agent
https://github.com/coroot/coroot

posted on 2022-09-19 19:49  荣锋亮  阅读(219)  评论(0编辑  收藏  举报

导航