mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-11-01 00:42:13 +08:00 
			
		
		
		
	* refactor: refactor workflows contents. * add tool workflows. * update field. * fix: remove chat error. * Fix err. * fix error. * remove cn comment. * update workflows files. * update infra config. * move workflows. * feat: update bot. * fix: solve uncorrect outdated msg get. * update get docIDs logic. * update * update skip logic. * fix * update. * fix: delay deleteObject func. * remove unused content. * update log type. * feat: implement request batch count limit. * update * update * feat: add rocksTimeout * feat: wrap logs * feat: add logs * feat: listen config * feat: enable listen TIME_WAIT port * feat: add logs * feat: cache batch * chore: enable fullUserCache * feat: push rpc num * feat: push err * feat: with operationID * feat: sleep * feat: change 1s * feat: change log * feat: implement Getbatch in rpcCache. * feat: print getOnline cost * feat: change log * feat: change kafka and push config * feat: del interface * feat: fix err * feat: change config * feat: go mod * feat: change config * feat: change config * feat: add sleep in push * feat: warn logs * feat: logs * feat: logs * feat: change port * feat: start config * feat: remove port reuse * feat: prometheus config * feat: prometheus config * feat: prometheus config * feat: add long time send msg to grafana * feat: init * feat: init * feat: implement offline push. * feat: batch get user online * feat: implement batch Push spilt * update go mod * Revert "feat: change port" This reverts commit 06d5e944 * feat: change port * feat: change config * feat: implement kafka producer and consumer. * update format, * add PushMQ log. * feat: get all online users and init push * feat: lock in online cache * feat: config * fix: init online status * fix: add logs * fix: userIDs * fix: add logs * feat: update Handler logic. * update MQ logic. * update * update * fix: method name * fix: update OfflinePushConsumerHandler. * fix: prommetrics * fix: add logs * fix: ctx * fix: log * fix: config * feat: change port * fix: atomic online cache status --------- Co-authored-by: Monet Lee <monet_lee@163.com>
		
			
				
	
	
		
			86 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			86 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| # my global config
 | |
| global:
 | |
|   scrape_interval:     15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
 | |
|   evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
 | |
|   # scrape_timeout is set to the global default (10s).
 | |
| 
 | |
| # Alertmanager configuration
 | |
| alerting:
 | |
|   alertmanagers:
 | |
|     - static_configs:
 | |
|         - targets: [internal_ip:19093]
 | |
| 
 | |
| # Load rules once and periodically evaluate them according to the global evaluation_interval.
 | |
| rule_files:
 | |
|   - instance-down-rules.yml
 | |
| # - first_rules.yml
 | |
| # - second_rules.yml
 | |
| 
 | |
| # A scrape configuration containing exactly one endpoint to scrape:
 | |
| # Here it's Prometheus itself.
 | |
| scrape_configs:
 | |
|   # The job name is added as a label "job=job_name" to any timeseries scraped from this config.
 | |
|   # Monitored information captured by prometheus
 | |
| 
 | |
|   # prometheus fetches application services
 | |
|   - job_name: node_exporter
 | |
|     static_configs:
 | |
|       - targets: [ internal_ip:20500 ]
 | |
|   - job_name: openimserver-openim-api
 | |
|     static_configs:
 | |
|       - targets: [ internal_ip:12002 ]
 | |
|         labels:
 | |
|           namespace: default
 | |
|   - job_name: openimserver-openim-msggateway
 | |
|     static_configs:
 | |
|       - targets: [ internal_ip:12140 ]
 | |
| #      - targets: [ internal_ip:12140, internal_ip:12141, internal_ip:12142, internal_ip:12143, internal_ip:12144, internal_ip:12145, internal_ip:12146, internal_ip:12147, internal_ip:12148, internal_ip:12149, internal_ip:12150, internal_ip:12151, internal_ip:12152, internal_ip:12153, internal_ip:12154, internal_ip:12155 ]
 | |
|         labels:
 | |
|           namespace: default
 | |
|   - job_name: openimserver-openim-msgtransfer
 | |
|     static_configs:
 | |
|       - targets: [ internal_ip:12020, internal_ip:12021, internal_ip:12022, internal_ip:12023, internal_ip:12024, internal_ip:12025, internal_ip:12026, internal_ip:12027 ]
 | |
| #      - targets: [ internal_ip:12020, internal_ip:12021, internal_ip:12022, internal_ip:12023, internal_ip:12024, internal_ip:12025, internal_ip:12026, internal_ip:12027, internal_ip:12028, internal_ip:12029, internal_ip:12030, internal_ip:12031, internal_ip:12032, internal_ip:12033, internal_ip:12034, internal_ip:12035 ]
 | |
|         labels:
 | |
|           namespace: default
 | |
|   - job_name: openimserver-openim-push
 | |
|     static_configs:
 | |
|       - targets: [ internal_ip:12170, internal_ip:12171, internal_ip:12172, internal_ip:12173, internal_ip:12174, internal_ip:12175, internal_ip:12176, internal_ip:12177 ]
 | |
| #      - targets: [ internal_ip:12170, internal_ip:12171, internal_ip:12172, internal_ip:12173, internal_ip:12174, internal_ip:12175, internal_ip:12176, internal_ip:12177, internal_ip:12178, internal_ip:12179, internal_ip:12180, internal_ip:12181, internal_ip:12182, internal_ip:12183, internal_ip:12184, internal_ip:12185 ]
 | |
|         labels:
 | |
|           namespace: default
 | |
|   - job_name: openimserver-openim-rpc-auth
 | |
|     static_configs:
 | |
|       - targets: [ internal_ip:12200 ]
 | |
|         labels:
 | |
|           namespace: default
 | |
|   - job_name: openimserver-openim-rpc-conversation
 | |
|     static_configs:
 | |
|       - targets: [ internal_ip:12220 ]
 | |
|         labels:
 | |
|           namespace: default
 | |
|   - job_name: openimserver-openim-rpc-friend
 | |
|     static_configs:
 | |
|       - targets: [ internal_ip:12240 ]
 | |
|         labels:
 | |
|           namespace: default
 | |
|   - job_name: openimserver-openim-rpc-group
 | |
|     static_configs:
 | |
|       - targets: [ internal_ip:12260 ]
 | |
|         labels:
 | |
|           namespace: default
 | |
|   - job_name: openimserver-openim-rpc-msg
 | |
|     static_configs:
 | |
|       - targets: [ internal_ip:12280 ]
 | |
|         labels:
 | |
|           namespace: default
 | |
|   - job_name: openimserver-openim-rpc-third
 | |
|     static_configs:
 | |
|       - targets: [ internal_ip:12300 ]
 | |
|         labels:
 | |
|           namespace: default
 | |
|   - job_name: openimserver-openim-rpc-user
 | |
|     static_configs:
 | |
|       - targets: [ internal_ip:12320 ]
 | |
|         labels:
 | |
|           namespace: default |