From 0d09b4117ccdd56fa63e7ddb119fb18b9740b83c Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong (cubxxw)" <3293172751nss@gmail.com> Date: Tue, 2 Apr 2024 10:42:01 +0800 Subject: [PATCH] feat: optimize config --- config/openim-msggateway.yml | 16 ++++++++++++++++ config/openim-msgtransfer.yml | 17 ++++++++++++++++- config/openim-push.yml | 15 +++++++++++++++ config/openim-rpc-auth.yml | 15 +++++++++++++++ config/openim-rpc-conversation.yml | 15 +++++++++++++++ config/openim-rpc-friend.yml | 15 +++++++++++++++ config/openim-rpc-group.yml | 15 +++++++++++++++ config/openim-rpc-msg.yml | 15 +++++++++++++++ config/openim-rpc-third.yml | 16 ++++++++++++++++ config/openim-rpc-user.yml | 16 ++++++++++++++++ 10 files changed, 154 insertions(+), 1 deletion(-) diff --git a/config/openim-msggateway.yml b/config/openim-msggateway.yml index 3e62c9a29..70a6a275e 100644 --- a/config/openim-msggateway.yml +++ b/config/openim-msggateway.yml @@ -4,3 +4,19 @@ longConnSvr: openImMessageGatewayPort: [ 10140 ] websocketMaxMsgLen: 4096 websocketTimeout: 10 +prometheus: + enable: true + grafanaUrl: http://127.0.0.1:13000/ + apiPrometheusPort: [20100] + userPrometheusPort: [ 20110 ] + friendPrometheusPort: [ 20120 ] + messagePrometheusPort: [ 20130 ] + messageGatewayPrometheusPort: [ 20140 ] + groupPrometheusPort: [ 20150 ] + authPrometheusPort: [ 20160 ] + pushPrometheusPort: [ 20170 ] + conversationPrometheusPort: [ 20230 ] + rtcPrometheusPort: [ 21300 ] + thirdPrometheusPort: [ 21301 ] + messageTransferPrometheusPort: [ 21400, 21401, 21402, 21403 ] # List of ports + diff --git a/config/openim-msgtransfer.yml b/config/openim-msgtransfer.yml index a3c254e28..edfc0e414 100644 --- a/config/openim-msgtransfer.yml +++ b/config/openim-msgtransfer.yml @@ -1 +1,16 @@ -# msgtransfer \ No newline at end of file +# msgtransfer +prometheus: + enable: true + grafanaUrl: http://127.0.0.1:13000/ + apiPrometheusPort: [20100] + userPrometheusPort: [ 20110 ] + friendPrometheusPort: [ 20120 ] + messagePrometheusPort: [ 20130 ] + messageGatewayPrometheusPort: [ 20140 ] + groupPrometheusPort: [ 20150 ] + authPrometheusPort: [ 20160 ] + pushPrometheusPort: [ 20170 ] + conversationPrometheusPort: [ 20230 ] + rtcPrometheusPort: [ 21300 ] + thirdPrometheusPort: [ 21301 ] + messageTransferPrometheusPort: [ 21400, 21401, 21402, 21403 ] # List of ports diff --git a/config/openim-push.yml b/config/openim-push.yml index b067924aa..089df88be 100644 --- a/config/openim-push.yml +++ b/config/openim-push.yml @@ -14,3 +14,18 @@ push: masterSecret: '' pushUrl: '' pushIntent: '' +prometheus: + enable: true + grafanaUrl: http://127.0.0.1:13000/ + apiPrometheusPort: [20100] + userPrometheusPort: [ 20110 ] + friendPrometheusPort: [ 20120 ] + messagePrometheusPort: [ 20130 ] + messageGatewayPrometheusPort: [ 20140 ] + groupPrometheusPort: [ 20150 ] + authPrometheusPort: [ 20160 ] + pushPrometheusPort: [ 20170 ] + conversationPrometheusPort: [ 20230 ] + rtcPrometheusPort: [ 21300 ] + thirdPrometheusPort: [ 21301 ] + messageTransferPrometheusPort: [ 21400, 21401, 21402, 21403 ] # List of ports diff --git a/config/openim-rpc-auth.yml b/config/openim-rpc-auth.yml index ec264ae37..6ba1e91d8 100644 --- a/config/openim-rpc-auth.yml +++ b/config/openim-rpc-auth.yml @@ -5,3 +5,18 @@ rpcPort: openImAuthPort: [ 10160 ] rpcRegisterName: openImAuthName: Auth +prometheus: + enable: true + grafanaUrl: http://127.0.0.1:13000/ + apiPrometheusPort: [20100] + userPrometheusPort: [ 20110 ] + friendPrometheusPort: [ 20120 ] + messagePrometheusPort: [ 20130 ] + messageGatewayPrometheusPort: [ 20140 ] + groupPrometheusPort: [ 20150 ] + authPrometheusPort: [ 20160 ] + pushPrometheusPort: [ 20170 ] + conversationPrometheusPort: [ 20230 ] + rtcPrometheusPort: [ 21300 ] + thirdPrometheusPort: [ 21301 ] + messageTransferPrometheusPort: [ 21400, 21401, 21402, 21403 ] # List of ports diff --git a/config/openim-rpc-conversation.yml b/config/openim-rpc-conversation.yml index 62e7f35c1..40e988bd0 100644 --- a/config/openim-rpc-conversation.yml +++ b/config/openim-rpc-conversation.yml @@ -5,3 +5,18 @@ rpcPort: openImConversationPort: [ 10180 ] rpcRegisterName: openImConversationName: Conversation +prometheus: + enable: true + grafanaUrl: http://127.0.0.1:13000/ + apiPrometheusPort: [20100] + userPrometheusPort: [ 20110 ] + friendPrometheusPort: [ 20120 ] + messagePrometheusPort: [ 20130 ] + messageGatewayPrometheusPort: [ 20140 ] + groupPrometheusPort: [ 20150 ] + authPrometheusPort: [ 20160 ] + pushPrometheusPort: [ 20170 ] + conversationPrometheusPort: [ 20230 ] + rtcPrometheusPort: [ 21300 ] + thirdPrometheusPort: [ 21301 ] + messageTransferPrometheusPort: [ 21400, 21401, 21402, 21403 ] # List of ports diff --git a/config/openim-rpc-friend.yml b/config/openim-rpc-friend.yml index c45c9c95f..12de99fee 100644 --- a/config/openim-rpc-friend.yml +++ b/config/openim-rpc-friend.yml @@ -5,3 +5,18 @@ rpcPort: openImFriendPort: [ 10120 ] rpcRegisterName: openImFriendName: Friend +prometheus: + enable: true + grafanaUrl: http://127.0.0.1:13000/ + apiPrometheusPort: [20100] + userPrometheusPort: [ 20110 ] + friendPrometheusPort: [ 20120 ] + messagePrometheusPort: [ 20130 ] + messageGatewayPrometheusPort: [ 20140 ] + groupPrometheusPort: [ 20150 ] + authPrometheusPort: [ 20160 ] + pushPrometheusPort: [ 20170 ] + conversationPrometheusPort: [ 20230 ] + rtcPrometheusPort: [ 21300 ] + thirdPrometheusPort: [ 21301 ] + messageTransferPrometheusPort: [ 21400, 21401, 21402, 21403 ] # List of ports diff --git a/config/openim-rpc-group.yml b/config/openim-rpc-group.yml index e7825502c..0e4325771 100644 --- a/config/openim-rpc-group.yml +++ b/config/openim-rpc-group.yml @@ -5,3 +5,18 @@ rpcPort: openImGroupPort: [ 10150 ] rpcRegisterName: openImGroupName: Group +prometheus: + enable: true + grafanaUrl: http://127.0.0.1:13000/ + apiPrometheusPort: [20100] + userPrometheusPort: [ 20110 ] + friendPrometheusPort: [ 20120 ] + messagePrometheusPort: [ 20130 ] + messageGatewayPrometheusPort: [ 20140 ] + groupPrometheusPort: [ 20150 ] + authPrometheusPort: [ 20160 ] + pushPrometheusPort: [ 20170 ] + conversationPrometheusPort: [ 20230 ] + rtcPrometheusPort: [ 21300 ] + thirdPrometheusPort: [ 21301 ] + messageTransferPrometheusPort: [ 21400, 21401, 21402, 21403 ] # List of ports diff --git a/config/openim-rpc-msg.yml b/config/openim-rpc-msg.yml index 1bb324f2f..91a3aa543 100644 --- a/config/openim-rpc-msg.yml +++ b/config/openim-rpc-msg.yml @@ -5,3 +5,18 @@ rpcPort: openImMessagePort: [ 10130 ] rpcRegisterName: openImMsgName: Msg +prometheus: + enable: true + grafanaUrl: http://127.0.0.1:13000/ + apiPrometheusPort: [20100] + userPrometheusPort: [ 20110 ] + friendPrometheusPort: [ 20120 ] + messagePrometheusPort: [ 20130 ] + messageGatewayPrometheusPort: [ 20140 ] + groupPrometheusPort: [ 20150 ] + authPrometheusPort: [ 20160 ] + pushPrometheusPort: [ 20170 ] + conversationPrometheusPort: [ 20230 ] + rtcPrometheusPort: [ 21300 ] + thirdPrometheusPort: [ 21301 ] + messageTransferPrometheusPort: [ 21400, 21401, 21402, 21403 ] # List of ports diff --git a/config/openim-rpc-third.yml b/config/openim-rpc-third.yml index e6bc56f46..d73fed587 100644 --- a/config/openim-rpc-third.yml +++ b/config/openim-rpc-third.yml @@ -5,3 +5,19 @@ rpcPort: openImThirdPort: [ 10190 ] rpcRegisterName: openImThirdName: Third + +prometheus: + enable: true + grafanaUrl: http://127.0.0.1:13000/ + apiPrometheusPort: [20100] + userPrometheusPort: [ 20110 ] + friendPrometheusPort: [ 20120 ] + messagePrometheusPort: [ 20130 ] + messageGatewayPrometheusPort: [ 20140 ] + groupPrometheusPort: [ 20150 ] + authPrometheusPort: [ 20160 ] + pushPrometheusPort: [ 20170 ] + conversationPrometheusPort: [ 20230 ] + rtcPrometheusPort: [ 21300 ] + thirdPrometheusPort: [ 21301 ] + messageTransferPrometheusPort: [ 21400, 21401, 21402, 21403 ] # List of ports diff --git a/config/openim-rpc-user.yml b/config/openim-rpc-user.yml index 183139c9e..1934e759f 100644 --- a/config/openim-rpc-user.yml +++ b/config/openim-rpc-user.yml @@ -5,3 +5,19 @@ rpcPort: openImUserPort: [ 10110 ] rpcRegisterName: openImUserName: User + +prometheus: + enable: true + grafanaUrl: http://127.0.0.1:13000/ + apiPrometheusPort: [20100] + userPrometheusPort: [ 20110 ] + friendPrometheusPort: [ 20120 ] + messagePrometheusPort: [ 20130 ] + messageGatewayPrometheusPort: [ 20140 ] + groupPrometheusPort: [ 20150 ] + authPrometheusPort: [ 20160 ] + pushPrometheusPort: [ 20170 ] + conversationPrometheusPort: [ 20230 ] + rtcPrometheusPort: [ 21300 ] + thirdPrometheusPort: [ 21301 ] + messageTransferPrometheusPort: [ 21400, 21401, 21402, 21403 ] # List of ports