chore: mertics update

This commit is contained in:
BryantHe 2023-07-13 11:41:15 +08:00
parent bad2b6e525
commit 8865bbaad9
8 changed files with 59 additions and 34 deletions

View File

@ -2,11 +2,15 @@
chassis 微服务基座依赖的服务
## 已整合
- Metrics
- Statsd
- Statsd-exporter
- Metrics Server
- Prometheus
- Grafana
- Logging
- Elasticsearch
- Logstash
@ -19,6 +23,7 @@ chassis 微服务基座依赖的服务
- Mysql
- ……
## 启动 Metrics 相关服务
根据实际的nameko微服务去配置 statsd_mapping.yml
@ -30,6 +35,20 @@ grafana 的配置在:./service_configs/admin_service/grafana/xxxx.json (根
`docker-compose -f docker-compose-metrics.yml up -d --build`
## 启动 Metrics Server 相关服务
启动服务的命令:
`docker-compose -f docker-compose-metrics-server.yml up -d --build`
## 启动 Tracing 相关服务
启动服务的命令:
`docker-compose -f docker-compose-tracing.yml up -d --build`
## 启动 Logging 相关服务
启动服务的命令:
@ -39,7 +58,6 @@ grafana 的配置在:./service_configs/admin_service/grafana/xxxx.json (根
## 启动 APISIX
启动服务的命令:
`docker-compose -f docker-compose-apisix.yml up -d --build`
@ -47,7 +65,6 @@ grafana 的配置在:./service_configs/admin_service/grafana/xxxx.json (根
## 启动 RabbitMQ
启动服务的命令:
`docker-compose -f docker-compose-rabbitmq.yml up -d --build`
@ -55,20 +72,20 @@ grafana 的配置在:./service_configs/admin_service/grafana/xxxx.json (根
## 启动 Mysql
启动服务的命令:
`docker-compose -f docker-compose-mysql.yml up -d --build`
## TODO
- Metrics
- Prometheus
- rabbitmq_exporter
- Grafana
- Tracing
- Skywalking
- Error Reporting
- Sentry
- Prometheus Exporter
- rabbitmq_exporter
- node_exporter
- nginx_exporter
- 事务服务
- DTM

View File

@ -0,0 +1,34 @@
version: "3"
services:
prometheus:
image: prom/prometheus:latest
container_name: 'prometheus'
hostname: 'prometheus'
restart: always
volumes:
- ./metrics_server/prometheus_conf/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9193:9090"
networks:
chassis_agent_metrics_server:
grafana:
image: grafana/grafana:latest
container_name: 'grafana'
hostname: 'grafana'
restart: always
ports:
- "3100:3000"
volumes:
- ./metrics_server/grafana_conf/provisioning:/etc/grafana/provisioning
# - ./metrics/grafana_conf/dashboards:/var/lib/grafana/dashboards
- ./metrics_server/grafana_conf/config/grafana.ini:/etc/grafana/grafana.ini
networks:
chassis_agent_metrics_server:
networks:
chassis_agent_metrics_server:
driver: bridge

View File

@ -28,32 +28,6 @@ services:
networks:
chassis_agent_metrics:
statsd-prometheus:
image: prom/prometheus:latest
container_name: 'statsd-prometheus'
hostname: 'statsd-prometheus'
restart: always
volumes:
- ./metrics/prometheus_conf/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9193:9090"
networks:
chassis_agent_metrics:
statsd-grafana:
image: grafana/grafana:latest
container_name: 'statsd-grafana'
hostname: 'statsd-grafana'
restart: always
ports:
- "3100:3000"
volumes:
- ./metrics/grafana_conf/provisioning:/etc/grafana/provisioning
# - ./metrics/grafana_conf/dashboards:/var/lib/grafana/dashboards
- ./metrics/grafana_conf/config/grafana.ini:/etc/grafana/grafana.ini
networks:
chassis_agent_metrics:
networks:
chassis_agent_metrics:
driver: bridge

View File