mirror of
				https://github.com/coturn/coturn.git
				synced 2025-10-31 23:11:28 +01:00 
			
		
		
		
	Change prometheus exporter port to 9641
In order to avoid conflicts using the same port userd by redis exporter looking at the [prometheus wiki](https://github.com/prometheus/prometheus/wiki/Default-port-allocations) the port 9641 is the first FREE for allocation
This commit is contained in:
		
							parent
							
								
									d8fca88286
								
							
						
					
					
						commit
						a2200f5c5c
					
				| @ -70,7 +70,7 @@ Supported user databases (for user repository, with passwords or keys, if authen | ||||
| 
 | ||||
| Redis can also be used for status and statistics storage and notification. | ||||
| 
 | ||||
| By default a [prometheus](https://prometheus.io/) exporter endpoint is enabled on port 9121 under path /metrics | ||||
| By default a [prometheus](https://prometheus.io/) exporter endpoint is enabled on port 9641 under path /metrics | ||||
| 
 | ||||
| Supported message integrity digest algorithms: | ||||
| 
 | ||||
|  | ||||
| @ -190,7 +190,7 @@ | ||||
| # By default the turnserver will expose an endpoint with stats on a prometheus format | ||||
| # this endpoint is on a different port to conflict with other configurations. | ||||
| # | ||||
| # You can simply run the turnserver and access the port 9121 and path /metrics | ||||
| # You can simply run the turnserver and access the port 9641 and path /metrics | ||||
| # | ||||
| # For mor info on the prometheus exporter and metrics | ||||
| # https://prometheus.io/docs/introduction/overview/ | ||||
|  | ||||
| @ -535,7 +535,7 @@ static char Usage[] = "Usage: turnserver [options]\n" | ||||
| "						The connection string has the same parameters as redis-userdb connection string.\n" | ||||
| #endif | ||||
| #if !defined(TURN_NO_PROMETHEUS) | ||||
| " --no-prometheus				Disable prometheus metrics. By default it is enabled and listening on port 9121 unther the path /metrics\n" | ||||
| " --no-prometheus				Disable prometheus metrics. By default it is enabled and listening on port 9641 unther the path /metrics\n" | ||||
| "						also the path / on this port can be used as a health check\n" | ||||
| #endif | ||||
| " --use-auth-secret				TURN REST API flag.\n" | ||||
|  | ||||
| @ -14,7 +14,7 @@ | ||||
| #include <prom.h> | ||||
| #include <promhttp.h> | ||||
| 
 | ||||
| #define DEFAULT_PROM_SERVER_PORT (9121) | ||||
| #define DEFAULT_PROM_SERVER_PORT (9641) | ||||
| 
 | ||||
| prom_gauge_t *turn_status; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user