mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
prome
This commit is contained in:
parent
9842e5624e
commit
95910f5c17
@ -757,3 +757,4 @@ demo:
|
||||
|
||||
rtc:
|
||||
signalTimeout: 35
|
||||
|
||||
|
@ -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
|
13
docker-compose_cfg/datasource-compose.yaml
Normal file
13
docker-compose_cfg/datasource-compose.yaml
Normal 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
|
13
docker-compose_cfg/prometheus-compose.yml
Normal file
13
docker-compose_cfg/prometheus-compose.yml
Normal 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/']
|
||||
|
Loading…
x
Reference in New Issue
Block a user