1
0
mirror of https://github.com/coturn/coturn.git synced 2025-11-01 07:21:04 +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:
Miquel Ortega 2020-07-28 11:04:06 +02:00
parent d8fca88286
commit a2200f5c5c
4 changed files with 4 additions and 4 deletions

View File

@ -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. 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: Supported message integrity digest algorithms:

View File

@ -190,7 +190,7 @@
# By default the turnserver will expose an endpoint with stats on a prometheus format # 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. # 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 # For mor info on the prometheus exporter and metrics
# https://prometheus.io/docs/introduction/overview/ # https://prometheus.io/docs/introduction/overview/

View File

@ -535,7 +535,7 @@ static char Usage[] = "Usage: turnserver [options]\n"
" The connection string has the same parameters as redis-userdb connection string.\n" " The connection string has the same parameters as redis-userdb connection string.\n"
#endif #endif
#if !defined(TURN_NO_PROMETHEUS) #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" " also the path / on this port can be used as a health check\n"
#endif #endif
" --use-auth-secret TURN REST API flag.\n" " --use-auth-secret TURN REST API flag.\n"

View File

@ -14,7 +14,7 @@
#include <prom.h> #include <prom.h>
#include <promhttp.h> #include <promhttp.h>
#define DEFAULT_PROM_SERVER_PORT (9121) #define DEFAULT_PROM_SERVER_PORT (9641)
prom_gauge_t *turn_status; prom_gauge_t *turn_status;