From aa8bdc7c6085e8d1f348fee95264dbea209bbbbc Mon Sep 17 00:00:00 2001 From: BryantHe Date: Thu, 25 May 2023 13:54:12 +0800 Subject: [PATCH] update readme --- README.md | 24 ++++++++++++++++++++++-- docker-compose-logging.yml | 2 +- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b7ec419..0606ab9 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,34 @@ chassis 微服务基座依赖的服务 -已整合 +## 已整合 + - Metrics - Statsd - Statsd-exporter - Logging - 整合 ELK -TODO: +## 启动 Metrics 相关服务 + +根据实际的nameko微服务去配置 statsd_mapping.yml + +grafana 的配置在:./service_configs/admin_service/grafana/xxxx.json (根据具体nameko服务创建json文件) + +启动服务的命令: + +`docker-compose -f docker-compose-metrics.yml up -d --build --remove-orphans` + + +## 启动 Logging 相关服务 + +启动服务的命令: + +`docker-compose -f docker-compose-logging.yml up -d --build --remove-orphans` + + +## TODO + - Metrics - 整合 Prometheus - 整合 Grafana diff --git a/docker-compose-logging.yml b/docker-compose-logging.yml index 4aca4db..38e0aa6 100644 --- a/docker-compose-logging.yml +++ b/docker-compose-logging.yml @@ -16,7 +16,7 @@ services: - "discovery.type=single-node" #单机模式启动 - "TZ=Asia/Shanghai" # 设置时区 - "ES_JAVA_OPTS=-Xms512m -Xmx512m" # 设置jvm内存大小 - - "xpack.security.enabled=false" + - "xpack.security.enabled=false" # 关闭 ssl/tls(必须) ports: - "9200:9200" expose: