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