mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-08-08 04:06:31 +08:00
docker
This commit is contained in:
parent
9cc0825185
commit
700f1e0001
@ -144,9 +144,11 @@ services:
|
|||||||
# - ./components/prometheus_data:/prometheus
|
# - ./components/prometheus_data:/prometheus
|
||||||
container_name: prometheus
|
container_name: prometheus
|
||||||
ports:
|
ports:
|
||||||
- 10007:9090
|
- 9091:9091
|
||||||
depends_on:
|
depends_on:
|
||||||
- open_im_server
|
- open_im_server
|
||||||
|
command: --web.listen-address=:9091
|
||||||
|
network_mode: "host"
|
||||||
|
|
||||||
grafana:
|
grafana:
|
||||||
image: grafana/grafana
|
image: grafana/grafana
|
||||||
@ -158,7 +160,14 @@ services:
|
|||||||
# - ./components/grafana_data:/var/lib/grafana
|
# - ./components/grafana_data:/var/lib/grafana
|
||||||
container_name: grafana
|
container_name: grafana
|
||||||
ports:
|
ports:
|
||||||
- 10008:10008
|
- 10007:10007
|
||||||
depends_on:
|
depends_on:
|
||||||
- prometheus
|
- prometheus
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
|
|
||||||
|
node-exporter:
|
||||||
|
image: quay.io/prometheus/node-exporter
|
||||||
|
container_name: node-exporter
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- "9100:9100"
|
@ -6,7 +6,7 @@ datasources:
|
|||||||
type: prometheus
|
type: prometheus
|
||||||
access: proxy
|
access: proxy
|
||||||
orgId: 1
|
orgId: 1
|
||||||
url: http://127.0.0.1:10007
|
url: http://127.0.0.1:9091
|
||||||
basicAuth: false
|
basicAuth: false
|
||||||
isDefault: true
|
isDefault: true
|
||||||
version: 1
|
version: 1
|
||||||
|
@ -38,7 +38,7 @@ protocol = http
|
|||||||
http_addr =
|
http_addr =
|
||||||
|
|
||||||
# The http port to use
|
# The http port to use
|
||||||
http_port = 10008
|
http_port = 10007
|
||||||
|
|
||||||
# The public facing domain name used to access grafana from a browser
|
# The public facing domain name used to access grafana from a browser
|
||||||
domain = localhost
|
domain = localhost
|
||||||
|
@ -6,9 +6,13 @@ global:
|
|||||||
scrape_configs:
|
scrape_configs:
|
||||||
- job_name: 'prometheus'
|
- job_name: 'prometheus'
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['localhost:10007']
|
- targets: ['localhost:9091']
|
||||||
- job_name: 'openIM-server'
|
- job_name: 'openIM-server'
|
||||||
metrics_path: /cms/prometheus/metrics
|
metrics_path: /cms/prometheus/metrics
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['localhost:10006']
|
- targets: ['localhost:10006']
|
||||||
|
- job_name: 'node'
|
||||||
|
scrape_interval: 8s
|
||||||
|
static_configs:
|
||||||
|
- targets: ['localhost:9100']
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user