chore: mertics update
This commit is contained in:
parent
bad2b6e525
commit
8865bbaad9
33
README.md
33
README.md
|
@ -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
|
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue