mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-11-04 11:22:10 +08:00 
			
		
		
		
	feat: Modify Prometheus data scraping ports and reserve port space.
This commit is contained in:
		
							parent
							
								
									76e8649afd
								
							
						
					
					
						commit
						17b0fb7fc1
					
				@ -8,6 +8,6 @@ prometheus:
 | 
				
			|||||||
  # Whether to enable prometheus
 | 
					  # Whether to enable prometheus
 | 
				
			||||||
  enable: true
 | 
					  enable: true
 | 
				
			||||||
  # Prometheus listening ports, must match the number of api.ports
 | 
					  # Prometheus listening ports, must match the number of api.ports
 | 
				
			||||||
  ports: [ 20113 ]
 | 
					  ports: [ 20502 ]
 | 
				
			||||||
  # This address can be accessed via a browser
 | 
					  # This address can be accessed via a browser
 | 
				
			||||||
  grafanaURL: http://127.0.0.1:13000/
 | 
					  grafanaURL: http://127.0.0.1:13000/
 | 
				
			||||||
 | 
				
			|||||||
@ -8,7 +8,7 @@ prometheus:
 | 
				
			|||||||
  # Enable or disable Prometheus monitoring
 | 
					  # Enable or disable Prometheus monitoring
 | 
				
			||||||
  enable: true
 | 
					  enable: true
 | 
				
			||||||
  # List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup
 | 
					  # List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup
 | 
				
			||||||
  ports: [ 20112 ]
 | 
					  ports: [ 20640 ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# IP address that the RPC/WebSocket service listens on; setting to 0.0.0.0 listens on both internal and external IPs. If left blank, it automatically uses the internal network IP
 | 
					# IP address that the RPC/WebSocket service listens on; setting to 0.0.0.0 listens on both internal and external IPs. If left blank, it automatically uses the internal network IP
 | 
				
			||||||
listenIP: 0.0.0.0
 | 
					listenIP: 0.0.0.0
 | 
				
			||||||
 | 
				
			|||||||
@ -3,4 +3,4 @@ prometheus:
 | 
				
			|||||||
  enable: true
 | 
					  enable: true
 | 
				
			||||||
  # List of ports that Prometheus listens on; each port corresponds to an instance of monitoring. Ensure these are managed accordingly
 | 
					  # List of ports that Prometheus listens on; each port corresponds to an instance of monitoring. Ensure these are managed accordingly
 | 
				
			||||||
  # Because four instances have been launched, four ports need to be specified
 | 
					  # Because four instances have been launched, four ports need to be specified
 | 
				
			||||||
  ports: [ 20108, 20109, 20110, 20111 ]
 | 
					  ports: [ 20600, 20601, 20602, 20603 ]
 | 
				
			||||||
 | 
				
			|||||||
@ -10,7 +10,7 @@ prometheus:
 | 
				
			|||||||
  # Enable or disable Prometheus monitoring
 | 
					  # Enable or disable Prometheus monitoring
 | 
				
			||||||
  enable: true
 | 
					  enable: true
 | 
				
			||||||
  # List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup
 | 
					  # List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup
 | 
				
			||||||
  ports: [ 20107, 20207, 20208, 20209 ]
 | 
					  ports: [ 20670, 20671, 20672, 20673 ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
maxConcurrentWorkers: 3
 | 
					maxConcurrentWorkers: 3
 | 
				
			||||||
#"Use geTui for offline push notifications, or choose fcm or jpns; corresponding configuration settings must be specified."
 | 
					#"Use geTui for offline push notifications, or choose fcm or jpns; corresponding configuration settings must be specified."
 | 
				
			||||||
 | 
				
			|||||||
@ -10,7 +10,7 @@ prometheus:
 | 
				
			|||||||
  # Enable or disable Prometheus monitoring
 | 
					  # Enable or disable Prometheus monitoring
 | 
				
			||||||
  enable: true
 | 
					  enable: true
 | 
				
			||||||
  # List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup
 | 
					  # List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup
 | 
				
			||||||
  ports: [ 20106 ]
 | 
					  ports: [ 20660 ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
tokenPolicy:
 | 
					tokenPolicy:
 | 
				
			||||||
  # Token validity period, in days
 | 
					  # Token validity period, in days
 | 
				
			||||||
 | 
				
			|||||||
@ -10,4 +10,4 @@ prometheus:
 | 
				
			|||||||
  # Enable or disable Prometheus monitoring
 | 
					  # Enable or disable Prometheus monitoring
 | 
				
			||||||
  enable: true
 | 
					  enable: true
 | 
				
			||||||
  # List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup
 | 
					  # List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup
 | 
				
			||||||
  ports: [ 20105 ]
 | 
					  ports: [ 20680 ]
 | 
				
			||||||
 | 
				
			|||||||
@ -10,4 +10,4 @@ prometheus:
 | 
				
			|||||||
  # Enable or disable Prometheus monitoring
 | 
					  # Enable or disable Prometheus monitoring
 | 
				
			||||||
  enable: true
 | 
					  enable: true
 | 
				
			||||||
  # List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup
 | 
					  # List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup
 | 
				
			||||||
  ports: [ 20104 ]
 | 
					  ports: [ 20620 ]
 | 
				
			||||||
 | 
				
			|||||||
@ -4,10 +4,10 @@ rpc:
 | 
				
			|||||||
  # IP address that the RPC service listens on; setting to 0.0.0.0 listens on both internal and external IPs. If left blank, it automatically uses the internal network IP
 | 
					  # IP address that the RPC service listens on; setting to 0.0.0.0 listens on both internal and external IPs. If left blank, it automatically uses the internal network IP
 | 
				
			||||||
  listenIP: 0.0.0.0
 | 
					  listenIP: 0.0.0.0
 | 
				
			||||||
  # List of ports that the RPC service listens on; configuring multiple ports will launch multiple instances. These must match the number of configured prometheus ports
 | 
					  # List of ports that the RPC service listens on; configuring multiple ports will launch multiple instances. These must match the number of configured prometheus ports
 | 
				
			||||||
  ports: [ 10150, 10151 ]
 | 
					  ports: [ 10150 ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
prometheus:
 | 
					prometheus:
 | 
				
			||||||
  # Enable or disable Prometheus monitoring
 | 
					  # Enable or disable Prometheus monitoring
 | 
				
			||||||
  enable: true
 | 
					  enable: true
 | 
				
			||||||
  # List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup
 | 
					  # List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup
 | 
				
			||||||
  ports: [ 20103, 20203 ]
 | 
					  ports: [ 20650 ]
 | 
				
			||||||
 | 
				
			|||||||
@ -10,7 +10,7 @@ prometheus:
 | 
				
			|||||||
  # Enable or disable Prometheus monitoring
 | 
					  # Enable or disable Prometheus monitoring
 | 
				
			||||||
  enable: true
 | 
					  enable: true
 | 
				
			||||||
  # List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup
 | 
					  # List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup
 | 
				
			||||||
  ports: [ 20102 ]
 | 
					  ports: [ 20630 ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Does sending messages require friend verification
 | 
					# Does sending messages require friend verification
 | 
				
			||||||
 | 
				
			|||||||
@ -10,7 +10,7 @@ prometheus:
 | 
				
			|||||||
  # Enable or disable Prometheus monitoring
 | 
					  # Enable or disable Prometheus monitoring
 | 
				
			||||||
  enable: true
 | 
					  enable: true
 | 
				
			||||||
  # List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup
 | 
					  # List of ports that Prometheus listens on; these must match the number of rpc.ports to ensure correct monitoring setup
 | 
				
			||||||
  ports: [ 20101 ]
 | 
					  ports: [ 20690 ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
object:
 | 
					object:
 | 
				
			||||||
 | 
				
			|||||||
@ -10,7 +10,7 @@ prometheus:
 | 
				
			|||||||
  # Whether to enable prometheus
 | 
					  # Whether to enable prometheus
 | 
				
			||||||
  enable: true
 | 
					  enable: true
 | 
				
			||||||
  # Prometheus listening ports, must be consistent with the number of rpc.ports
 | 
					  # Prometheus listening ports, must be consistent with the number of rpc.ports
 | 
				
			||||||
  ports: [ 20100 ]
 | 
					  ports: [ 20610 ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -25,59 +25,59 @@ scrape_configs:
 | 
				
			|||||||
  # prometheus fetches application services
 | 
					  # prometheus fetches application services
 | 
				
			||||||
  - job_name: 'node_exporter'
 | 
					  - job_name: 'node_exporter'
 | 
				
			||||||
    static_configs:
 | 
					    static_configs:
 | 
				
			||||||
      - targets: [ 'internal_ip:20114' ]
 | 
					      - targets: [ 'internal_ip:20500' ]
 | 
				
			||||||
  - job_name: 'openimserver-openim-api'
 | 
					  - job_name: 'openimserver-openim-api'
 | 
				
			||||||
    static_configs:
 | 
					    static_configs:
 | 
				
			||||||
      - targets: [ 'internal_ip:20113' ]
 | 
					      - targets: [ 'internal_ip:20502' ]
 | 
				
			||||||
        labels:
 | 
					        labels:
 | 
				
			||||||
          namespace: 'default'
 | 
					          namespace: 'default'
 | 
				
			||||||
  - job_name: 'openimserver-openim-msggateway'
 | 
					  - job_name: 'openimserver-openim-msggateway'
 | 
				
			||||||
    static_configs:
 | 
					    static_configs:
 | 
				
			||||||
      - targets: [ 'internal_ip:20112' ]
 | 
					      - targets: [ 'internal_ip:20640' ]
 | 
				
			||||||
        labels:
 | 
					        labels:
 | 
				
			||||||
          namespace: 'default'
 | 
					          namespace: 'default'
 | 
				
			||||||
  - job_name: 'openimserver-openim-msgtransfer'
 | 
					  - job_name: 'openimserver-openim-msgtransfer'
 | 
				
			||||||
    static_configs:
 | 
					    static_configs:
 | 
				
			||||||
      - targets: [ 'internal_ip:20111', 'internal_ip:20110', 'internal_ip:20109', 'internal_ip:20108' ]
 | 
					      - targets: [ 'internal_ip:20600', 'internal_ip:20601', 'internal_ip:20602', 'internal_ip:20603' ]
 | 
				
			||||||
        labels:
 | 
					        labels:
 | 
				
			||||||
          namespace: 'default'
 | 
					          namespace: 'default'
 | 
				
			||||||
  - job_name: 'openimserver-openim-push'
 | 
					  - job_name: 'openimserver-openim-push'
 | 
				
			||||||
    static_configs:
 | 
					    static_configs:
 | 
				
			||||||
      - targets: [ 'internal_ip:20107' ]
 | 
					      - targets: [ 'internal_ip:20670', 'internal_ip:20671', 'internal_ip:20672', 'internal_ip:20673']
 | 
				
			||||||
        labels:
 | 
					        labels:
 | 
				
			||||||
          namespace: 'default'
 | 
					          namespace: 'default'
 | 
				
			||||||
  - job_name: 'openimserver-openim-rpc-auth'
 | 
					  - job_name: 'openimserver-openim-rpc-auth'
 | 
				
			||||||
    static_configs:
 | 
					    static_configs:
 | 
				
			||||||
      - targets: [ 'internal_ip:20106' ]
 | 
					      - targets: [ 'internal_ip:20600' ]
 | 
				
			||||||
        labels:
 | 
					        labels:
 | 
				
			||||||
          namespace: 'default'
 | 
					          namespace: 'default'
 | 
				
			||||||
  - job_name: 'openimserver-openim-rpc-conversation'
 | 
					  - job_name: 'openimserver-openim-rpc-conversation'
 | 
				
			||||||
    static_configs:
 | 
					    static_configs:
 | 
				
			||||||
      - targets: [ 'internal_ip:20105' ]
 | 
					      - targets: [ 'internal_ip:20680' ]
 | 
				
			||||||
        labels:
 | 
					        labels:
 | 
				
			||||||
          namespace: 'default'
 | 
					          namespace: 'default'
 | 
				
			||||||
  - job_name: 'openimserver-openim-rpc-friend'
 | 
					  - job_name: 'openimserver-openim-rpc-friend'
 | 
				
			||||||
    static_configs:
 | 
					    static_configs:
 | 
				
			||||||
      - targets: [ 'internal_ip:20104' ]
 | 
					      - targets: [ 'internal_ip:20620' ]
 | 
				
			||||||
        labels:
 | 
					        labels:
 | 
				
			||||||
          namespace: 'default'
 | 
					          namespace: 'default'
 | 
				
			||||||
  - job_name: 'openimserver-openim-rpc-group'
 | 
					  - job_name: 'openimserver-openim-rpc-group'
 | 
				
			||||||
    static_configs:
 | 
					    static_configs:
 | 
				
			||||||
      - targets: [ 'internal_ip:20103' ]
 | 
					      - targets: [ 'internal_ip:20650' ]
 | 
				
			||||||
        labels:
 | 
					        labels:
 | 
				
			||||||
          namespace: 'default'
 | 
					          namespace: 'default'
 | 
				
			||||||
  - job_name: 'openimserver-openim-rpc-msg'
 | 
					  - job_name: 'openimserver-openim-rpc-msg'
 | 
				
			||||||
    static_configs:
 | 
					    static_configs:
 | 
				
			||||||
      - targets: [ 'internal_ip:20102' ]
 | 
					      - targets: [ 'internal_ip:20630' ]
 | 
				
			||||||
        labels:
 | 
					        labels:
 | 
				
			||||||
          namespace: 'default'
 | 
					          namespace: 'default'
 | 
				
			||||||
  - job_name: 'openimserver-openim-rpc-third'
 | 
					  - job_name: 'openimserver-openim-rpc-third'
 | 
				
			||||||
    static_configs:
 | 
					    static_configs:
 | 
				
			||||||
      - targets: [ 'internal_ip:20101' ]
 | 
					      - targets: [ 'internal_ip:20690' ]
 | 
				
			||||||
        labels:
 | 
					        labels:
 | 
				
			||||||
          namespace: 'default'
 | 
					          namespace: 'default'
 | 
				
			||||||
  - job_name: 'openimserver-openim-rpc-user'
 | 
					  - job_name: 'openimserver-openim-rpc-user'
 | 
				
			||||||
    static_configs:
 | 
					    static_configs:
 | 
				
			||||||
      - targets: [ 'internal_ip:20100' ]
 | 
					      - targets: [ 'internal_ip:20610' ]
 | 
				
			||||||
        labels:
 | 
					        labels:
 | 
				
			||||||
          namespace: 'default'
 | 
					          namespace: 'default'
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user