This commit is contained in:
wangchuxiao 2022-09-08 01:27:05 +08:00
parent 9842e5624e
commit 95910f5c17
4 changed files with 58 additions and 12 deletions

View File

@ -757,3 +757,4 @@ demo:
rtc:
signalTimeout: 35

View File

@ -112,18 +112,7 @@ services:
MINIO_ROOT_PASSWORD: key12345
restart: always
command: minio server /data --console-address ':9090'
#
# dtm:
# image: yedf/dtm
# ports:
# - 36789:36789
# - 36790:36790
# environment:
# STORE_DRIVER: mysql
# STORE_HOST: localhost
# STORE_USER: root
# STORE_PASSWORD: ''
# STORE_PORT: 3306
open_im_server:
image: openim/open_im_server:v2.3.1
@ -147,3 +136,33 @@ services:
options:
max-size: "1g"
max-file: "2"
prometheus:
image: prom/prometheus
volumes:
- ./docker-compose_cfg/prometheus-compose.yml:/etc/prometheus/prometheus.yml
container_name: prometheus
networks:
webnet:
aliases:
- "prometheus"
ports:
- "10007:9090"
depends_on:
- open_im_server
grafana:
image: grafana/grafana
volumes:
- ./grafana/dashboards/dashboard.json:/var/lib/grafana/dashboards/dashboard.json
- ./grafana/provisioning/dashboard.yaml:/etc/grafana/provisioning/dashboards/dashboard.yaml
- ./docker-compose_cfg/datasource-compose.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
container_name: grafana
networks:
webnet:
aliases:
- "grafana"
ports:
- "10008:3000"
depends_on:
- prometheus

View File

@ -0,0 +1,13 @@
#more datasource-compose.yaml
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: proxy
orgId: 1
url: http://127.0.0.1:10007
basicAuth: false
isDefault: true
version: 1
editable: true

View File

@ -0,0 +1,13 @@
#more prometheus-compose.yml
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:10007']
- job_name: 'openIM-server'
static_configs:
- targets: ['localhost:10006/cms/prometheus/']