From 6e25a36e98418210178508af8fac41658fc470bf Mon Sep 17 00:00:00 2001 From: Vladimir Dementyev Date: Mon, 5 Mar 2018 20:00:41 +0300 Subject: [PATCH] [ci skip] Add metrics log example to changelog; fix makefile --- CHANGELOG.md | 6 ++++++ Makefile | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6a91ee9..7d9511dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,12 @@ Currently, only _logging_ mode is available (disabled by default): run with `--m NOTE: _Counter_ values contain _delta_ counts (for the last period). +Example metrics log entry: + +``` +INFO 2018-03-05T16:20:07.367Z auth_failures_count=0 broadcast_msg_count=228 client_msg_count=2228 clients_num=10000 context=metrics disconnect_queue_size=0 goroutines_num=21273 streams_num=1 uniq_clients_num=10000 unknown_broadcast_msg_count=0 unknown_client_msg_count=0 +``` + - Add signal handling and graceful shutdown. When receiving `SIGINT` or `SIGTERM` we: diff --git a/Makefile b/Makefile index 3361706a..4833c8d4 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ s3-deploy: downloads-md: ruby etc/generate_downloads.rb -release: build-all s3-deploy downloads-md +release: build-all s3-deploy dockerize docker-release: dockerize docker push "anycable/anycable-go:$(VERSION)"