Skip to content

Commit

Permalink
Update Nchan
Browse files Browse the repository at this point in the history
Additionally expose new metrics.
  • Loading branch information
marein committed Oct 25, 2023
1 parent c868057 commit c12cbf3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docker/nchan/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM safesecurity/nginx-nchan:1.2.15
FROM darkflib/nginx-nchan:1.24.0

ENV NCHAN_SHARED_MEMORY_SIZE=256M \
NCHAN_MESSAGE_BUFFER_LENGTH=10 \
Expand Down
14 changes: 3 additions & 11 deletions docker/nchan/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,9 @@ server {
set $CONTENT '${CONTENT}# TYPE nchan_redis_connected_servers gauge\n';
set $CONTENT '${CONTENT}nchan_redis_connected_servers{} ${nchan_stub_status_redis_connected_servers}\n';

# The following variable isn't yet available in the current Nchan version.
# Follow-up issue: https://github.com/marein/php-gaming-website/issues/150.
# set $CONTENT '${CONTENT}# HELP nchan_redis_unhealthy_upstreams Number of redis upstreams (individual server or cluster mode) that are currently not usable for publishing and subscribing.\n';
# set $CONTENT '${CONTENT}# TYPE nchan_redis_unhealthy_upstreams gauge\n';
# set $CONTENT '${CONTENT}nchan_redis_unhealthy_upstreams{} ${nchan_stub_status_redis_unhealthy_upstreams}\n';

# The following variable isn't yet available in the current Nchan version.
# Follow-up issue: https://github.com/marein/php-gaming-website/issues/150.
# set $CONTENT '${CONTENT}# HELP nchan_total_redis_commands_send Total number of commands this Nchan instance sent to Redis.\n';
# set $CONTENT '${CONTENT}# TYPE nchan_total_redis_commands_send counter\n';
# set $CONTENT '${CONTENT}nchan_total_redis_commands_send{} ${nchan_stub_status_total_redis_commands_send}\n';
set $CONTENT '${CONTENT}# HELP nchan_redis_unhealthy_upstreams Number of redis upstreams (individual server or cluster mode) that are currently not usable for publishing and subscribing.\n';
set $CONTENT '${CONTENT}# TYPE nchan_redis_unhealthy_upstreams gauge\n';
set $CONTENT '${CONTENT}nchan_redis_unhealthy_upstreams{} ${nchan_stub_status_redis_unhealthy_upstreams}\n';

set $CONTENT '${CONTENT}# HELP nchan_total_ipc_alerts_received Number of interprocess communication packets transmitted between Nginx workers processes for Nchan. Can grow at 100-10000 per second at high load.\n';
set $CONTENT '${CONTENT}# TYPE nchan_total_ipc_alerts_received counter\n';
Expand Down

0 comments on commit c12cbf3

Please sign in to comment.