mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 10:52:33 +08:00
fix deployments/templates/alertmanager.yml
This commit is contained in:
parent
ac8d60e9e7
commit
0d212f34fc
23
.env
23
.env
@ -30,11 +30,11 @@ MINIO_ENDPOINT=http://172.28.0.1:10005
|
|||||||
|
|
||||||
# Base URL for the application programming interface (API).
|
# Base URL for the application programming interface (API).
|
||||||
# Default: API_URL=http://172.28.0.1:10002
|
# Default: API_URL=http://172.28.0.1:10002
|
||||||
API_URL=http://172.28.0.1:10002
|
API_URL=http://125.124.195.201:10002
|
||||||
|
|
||||||
# Directory path for storing data files or related information.
|
# Directory path for storing data files or related information.
|
||||||
# Default: DATA_DIR=./
|
# Default: DATA_DIR=./
|
||||||
DATA_DIR=./
|
DATA_DIR=/root/open-im-server
|
||||||
|
|
||||||
# Choose the appropriate image address, the default is GITHUB image,
|
# Choose the appropriate image address, the default is GITHUB image,
|
||||||
# you can choose docker hub, for Chinese users can choose Ali Cloud
|
# you can choose docker hub, for Chinese users can choose Ali Cloud
|
||||||
@ -94,7 +94,7 @@ OPENIM_CHAT_NETWORK_ADDRESS=172.28.0.10
|
|||||||
# Address or hostname for the Prometheus network.
|
# Address or hostname for the Prometheus network.
|
||||||
# Default: PROMETHEUS_NETWORK_ADDRESS=172.28.0.11
|
# Default: PROMETHEUS_NETWORK_ADDRESS=172.28.0.11
|
||||||
PROMETHEUS_NETWORK_ADDRESS=172.28.0.11
|
PROMETHEUS_NETWORK_ADDRESS=172.28.0.11
|
||||||
|
|
||||||
# Address or hostname for the Grafana network.
|
# Address or hostname for the Grafana network.
|
||||||
# Default: GRAFANA_NETWORK_ADDRESS=172.28.0.12
|
# Default: GRAFANA_NETWORK_ADDRESS=172.28.0.12
|
||||||
GRAFANA_NETWORK_ADDRESS=172.28.0.12
|
GRAFANA_NETWORK_ADDRESS=172.28.0.12
|
||||||
@ -106,7 +106,10 @@ NODE_EXPORTER_NETWORK_ADDRESS=172.28.0.13
|
|||||||
# Address or hostname for the OpenIM admin network.
|
# Address or hostname for the OpenIM admin network.
|
||||||
# Default: OPENIM_ADMIN_NETWORK_ADDRESS=172.28.0.14
|
# Default: OPENIM_ADMIN_NETWORK_ADDRESS=172.28.0.14
|
||||||
OPENIM_ADMIN_FRONT_NETWORK_ADDRESS=172.28.0.14
|
OPENIM_ADMIN_FRONT_NETWORK_ADDRESS=172.28.0.14
|
||||||
|
|
||||||
|
# Address or hostname for the alertmanager network.
|
||||||
|
# Default: ALERT_MANAGER_NETWORK_ADDRESS=172.28.0.15
|
||||||
|
ALERT_MANAGER_NETWORK_ADDRESS=172.28.0.15
|
||||||
# ===============================================
|
# ===============================================
|
||||||
# = Component Extension Configuration =
|
# = Component Extension Configuration =
|
||||||
# ===============================================
|
# ===============================================
|
||||||
@ -222,8 +225,8 @@ PROMETHEUS_PORT=19090
|
|||||||
GRAFANA_ADDRESS=172.28.0.12
|
GRAFANA_ADDRESS=172.28.0.12
|
||||||
|
|
||||||
# Port on which Grafana service is running.
|
# Port on which Grafana service is running.
|
||||||
# Default: GRAFANA_PORT=3000
|
# Default: GRAFANA_PORT=13000
|
||||||
GRAFANA_PORT=3000
|
GRAFANA_PORT=13000
|
||||||
|
|
||||||
# ======================================
|
# ======================================
|
||||||
# ============ OpenIM Web ===============
|
# ============ OpenIM Web ===============
|
||||||
@ -300,9 +303,13 @@ NODE_EXPORTER_PORT=19100
|
|||||||
PROMETHEUS_PORT=19090
|
PROMETHEUS_PORT=19090
|
||||||
|
|
||||||
# Port for the grafana.
|
# Port for the grafana.
|
||||||
# Default: GRAFANA_PORT=3000
|
# Default: GRAFANA_PORT=13000
|
||||||
GRAFANA_PORT=3000
|
GRAFANA_PORT=13000
|
||||||
|
|
||||||
# Port for the admin front.
|
# Port for the admin front.
|
||||||
# Default: OPENIM_ADMIN_FRONT_PORT=11002
|
# Default: OPENIM_ADMIN_FRONT_PORT=11002
|
||||||
OPENIM_ADMIN_FRONT_PORT=11002
|
OPENIM_ADMIN_FRONT_PORT=11002
|
||||||
|
|
||||||
|
# Port for the alertmanager.
|
||||||
|
# Default: ALERT_MANAGER_PORT=19093
|
||||||
|
ALERT_MANAGER_PORT=19093
|
||||||
|
|||||||
@ -26,7 +26,7 @@ route:
|
|||||||
receivers:
|
receivers:
|
||||||
- name: email
|
- name: email
|
||||||
email_configs:
|
email_configs:
|
||||||
- to: {EMAIL_TO:-'alert@example.com'}
|
- to: '{EMAIL_TO:-'alert@example.com'}'
|
||||||
html: '{{ template "email.to.html" . }}'
|
html: '{{ template "email.to.html" . }}'
|
||||||
headers: { Subject: "[OPENIM-SERVER]Alarm" }
|
headers: { Subject: "[OPENIM-SERVER]Alarm" }
|
||||||
send_resolved: true
|
send_resolved: true
|
||||||
|
|||||||
@ -135,14 +135,14 @@ api:
|
|||||||
# minio.signEndpoint is minio public network address
|
# minio.signEndpoint is minio public network address
|
||||||
object:
|
object:
|
||||||
enable: "minio"
|
enable: "minio"
|
||||||
apiURL: "http://127.0.0.1:10002"
|
apiURL: "http://125.124.195.201:10002"
|
||||||
minio:
|
minio:
|
||||||
bucket: "openim"
|
bucket: "openim"
|
||||||
endpoint: "http://172.28.0.1:10005"
|
endpoint: "http://172.28.0.1:10005"
|
||||||
accessKeyID: "root"
|
accessKeyID: "root"
|
||||||
secretAccessKey: "openIM123"
|
secretAccessKey: "openIM123"
|
||||||
sessionToken: ''
|
sessionToken: ''
|
||||||
signEndpoint: "http://127.0.0.1:10005"
|
signEndpoint: "http://125.124.195.201:10005"
|
||||||
publicRead: false
|
publicRead: false
|
||||||
cos:
|
cos:
|
||||||
bucketURL: https://temp-1252357374.cos.ap-chengdu.myqcloud.com
|
bucketURL: https://temp-1252357374.cos.ap-chengdu.myqcloud.com
|
||||||
@ -198,7 +198,7 @@ rpcRegisterName:
|
|||||||
# Whether to output in json format
|
# Whether to output in json format
|
||||||
# Whether to include stack trace in logs
|
# Whether to include stack trace in logs
|
||||||
log:
|
log:
|
||||||
storageLocation: ../logs/
|
storageLocation: /root/open-im-server/logs/
|
||||||
rotationTime: 24
|
rotationTime: 24
|
||||||
remainRotationCount: 2
|
remainRotationCount: 2
|
||||||
remainLogLevel: 6
|
remainLogLevel: 6
|
||||||
@ -312,7 +312,7 @@ iosPush:
|
|||||||
# Timeout in seconds
|
# Timeout in seconds
|
||||||
# Whether to continue execution if callback fails
|
# Whether to continue execution if callback fails
|
||||||
callback:
|
callback:
|
||||||
url:
|
url: "http://125.124.195.201:8080/sdkName/callbackBeforeInviteJoinGroupCommand"
|
||||||
beforeSendSingleMsg:
|
beforeSendSingleMsg:
|
||||||
enable: false
|
enable: false
|
||||||
timeout: 5
|
timeout: 5
|
||||||
@ -368,13 +368,6 @@ callback:
|
|||||||
enable: false
|
enable: false
|
||||||
timeout: 5
|
timeout: 5
|
||||||
failedContinue: true
|
failedContinue: true
|
||||||
|
|
||||||
##TODO CALLBACK/
|
|
||||||
beforeInviteUserToGroup:
|
|
||||||
enable: true
|
|
||||||
timeout: 5
|
|
||||||
failedContinue: true
|
|
||||||
|
|
||||||
beforeSetGroupMemberInfo:
|
beforeSetGroupMemberInfo:
|
||||||
enable: false
|
enable: false
|
||||||
timeout: 5
|
timeout: 5
|
||||||
@ -383,14 +376,18 @@ callback:
|
|||||||
enable: false
|
enable: false
|
||||||
timeout: 5
|
timeout: 5
|
||||||
failedContinue: true
|
failedContinue: true
|
||||||
|
##TODO CALLBACK/
|
||||||
|
beforeInviteUserToGroup:
|
||||||
|
enable: true
|
||||||
|
timeout: 5
|
||||||
|
failedContinue: true
|
||||||
###################### Prometheus ######################
|
###################### Prometheus ######################
|
||||||
# Prometheus configuration for various services
|
# Prometheus configuration for various services
|
||||||
# The number of Prometheus ports per service needs to correspond to rpcPort
|
# The number of Prometheus ports per service needs to correspond to rpcPort
|
||||||
# The number of ports needs to be consistent with msg_transfer_service_num in script/path_info.sh
|
# The number of ports needs to be consistent with msg_transfer_service_num in script/path_info.sh
|
||||||
prometheus:
|
prometheus:
|
||||||
enable: false
|
enable: false
|
||||||
prometheusUrl: "https://openim.prometheus"
|
prometheusUrl: 172.28.0.1:13000
|
||||||
apiPrometheusPort: [20100]
|
apiPrometheusPort: [20100]
|
||||||
userPrometheusPort: [ 20110 ]
|
userPrometheusPort: [ 20110 ]
|
||||||
friendPrometheusPort: [ 20120 ]
|
friendPrometheusPort: [ 20120 ]
|
||||||
|
|||||||
@ -26,7 +26,7 @@ route:
|
|||||||
receivers:
|
receivers:
|
||||||
- name: email
|
- name: email
|
||||||
email_configs:
|
email_configs:
|
||||||
- to: ${ALERTMANAGER_EMAIL_TO}
|
- to: '${ALERTMANAGER_EMAIL_TO}'
|
||||||
html: '{{ template "email.to.html" . }}'
|
html: '{{ template "email.to.html" . }}'
|
||||||
headers: { Subject: "[OPENIM-SERVER]Alarm" }
|
headers: { Subject: "[OPENIM-SERVER]Alarm" }
|
||||||
send_resolved: true
|
send_resolved: true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user