2023-05-23 22:24:55 +08:00
|
|
|
|
# chassis-agent
|
2023-05-23 21:02:07 +08:00
|
|
|
|
|
2023-05-23 22:24:55 +08:00
|
|
|
|
chassis 微服务基座依赖的服务
|
|
|
|
|
|
2023-07-13 11:41:15 +08:00
|
|
|
|
|
2023-05-25 13:54:12 +08:00
|
|
|
|
## 已整合
|
|
|
|
|
|
2023-05-24 01:56:08 +08:00
|
|
|
|
- Metrics
|
|
|
|
|
- Statsd
|
|
|
|
|
- Statsd-exporter
|
2023-07-13 11:41:15 +08:00
|
|
|
|
- Metrics Server
|
|
|
|
|
- Prometheus
|
|
|
|
|
- Grafana
|
2023-05-24 18:42:40 +08:00
|
|
|
|
- Logging
|
2023-05-25 13:55:13 +08:00
|
|
|
|
- Elasticsearch
|
|
|
|
|
- Logstash
|
|
|
|
|
- Kibana
|
|
|
|
|
- Fluentd
|
2023-07-13 12:01:08 +08:00
|
|
|
|
- Error Reporting
|
|
|
|
|
- Sentry
|
2023-05-29 16:46:03 +08:00
|
|
|
|
- Gateway
|
|
|
|
|
- APISIX
|
2023-05-29 16:10:41 +08:00
|
|
|
|
- MiddleWares
|
|
|
|
|
- RabbitMQ
|
|
|
|
|
- Mysql
|
|
|
|
|
- ……
|
2023-05-23 22:24:55 +08:00
|
|
|
|
|
2023-07-13 11:41:15 +08:00
|
|
|
|
|
2023-05-25 13:54:12 +08:00
|
|
|
|
## 启动 Metrics 相关服务
|
|
|
|
|
|
|
|
|
|
根据实际的nameko微服务去配置 statsd_mapping.yml
|
|
|
|
|
|
|
|
|
|
grafana 的配置在:./service_configs/admin_service/grafana/xxxx.json (根据具体nameko服务创建json文件)
|
|
|
|
|
|
|
|
|
|
启动服务的命令:
|
|
|
|
|
|
2023-05-30 17:12:58 +08:00
|
|
|
|
`docker-compose -f docker-compose-metrics.yml up -d --build`
|
2023-05-25 13:54:12 +08:00
|
|
|
|
|
|
|
|
|
|
2023-07-13 11:41:15 +08:00
|
|
|
|
## 启动 Metrics Server 相关服务
|
|
|
|
|
|
|
|
|
|
启动服务的命令:
|
|
|
|
|
|
|
|
|
|
`docker-compose -f docker-compose-metrics-server.yml up -d --build`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 启动 Tracing 相关服务
|
|
|
|
|
|
|
|
|
|
启动服务的命令:
|
|
|
|
|
|
|
|
|
|
`docker-compose -f docker-compose-tracing.yml up -d --build`
|
|
|
|
|
|
|
|
|
|
|
2023-05-25 13:54:12 +08:00
|
|
|
|
## 启动 Logging 相关服务
|
|
|
|
|
|
|
|
|
|
启动服务的命令:
|
|
|
|
|
|
2023-05-30 17:12:58 +08:00
|
|
|
|
`docker-compose -f docker-compose-logging.yml up -d --build`
|
2023-05-25 13:54:12 +08:00
|
|
|
|
|
|
|
|
|
|
2023-07-13 12:01:08 +08:00
|
|
|
|
## 启动 Error Reporting 相关服务
|
|
|
|
|
|
|
|
|
|
requirements
|
|
|
|
|
- Docker 19.03.6+
|
|
|
|
|
- Compose 1.28.0+
|
|
|
|
|
- 4 CPU Cores
|
|
|
|
|
- 8 GB RAM
|
|
|
|
|
- 20 GB Free Disk Space
|
|
|
|
|
|
|
|
|
|
启动服务的命令:
|
|
|
|
|
|
|
|
|
|
1. 拉取仓库 https://github.com/getsentry/self-hosted/tree/23.6.2
|
|
|
|
|
- 如果有设置需求,比如更改占用端口,编辑 .env 文件
|
|
|
|
|
2. 启动sentry,在仓库目录运行 ./install.sh
|
|
|
|
|
|
|
|
|
|
|
2023-05-29 16:46:03 +08:00
|
|
|
|
## 启动 APISIX
|
|
|
|
|
|
|
|
|
|
启动服务的命令:
|
|
|
|
|
|
2023-05-30 17:12:58 +08:00
|
|
|
|
`docker-compose -f docker-compose-apisix.yml up -d --build`
|
2023-05-29 16:46:03 +08:00
|
|
|
|
|
|
|
|
|
|
2023-05-29 16:10:41 +08:00
|
|
|
|
## 启动 RabbitMQ
|
|
|
|
|
|
|
|
|
|
启动服务的命令:
|
|
|
|
|
|
2023-05-30 17:12:58 +08:00
|
|
|
|
`docker-compose -f docker-compose-rabbitmq.yml up -d --build`
|
2023-05-29 16:10:41 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 启动 Mysql
|
|
|
|
|
|
|
|
|
|
启动服务的命令:
|
|
|
|
|
|
2023-05-30 17:12:58 +08:00
|
|
|
|
`docker-compose -f docker-compose-mysql.yml up -d --build`
|
2023-05-29 16:10:41 +08:00
|
|
|
|
|
|
|
|
|
|
2023-05-25 13:54:12 +08:00
|
|
|
|
## TODO
|
|
|
|
|
|
2023-07-13 11:41:15 +08:00
|
|
|
|
- Tracing
|
|
|
|
|
- Skywalking
|
|
|
|
|
- Prometheus Exporter
|
|
|
|
|
- rabbitmq_exporter
|
|
|
|
|
- node_exporter
|
|
|
|
|
- nginx_exporter
|
2023-06-06 16:14:45 +08:00
|
|
|
|
- 事务服务
|
|
|
|
|
- DTM
|