mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
Use incr instead of gauge when sending events to drawAsInfinite to statsd
(imported from commit 08a4b6920c7a4a8f472f147ddce7c04710fe5c0a)
This commit is contained in:
@@ -20,7 +20,7 @@ ENDC = '\033[0m'
|
||||
os.chdir("/home/humbug/humbug-deployments/current")
|
||||
|
||||
# Send a statsd event on restarting the server
|
||||
subprocess.check_call(["python", "./manage.py", "send_stats", "gauge", "events.server_restart", str(int(time.time()))])
|
||||
subprocess.check_call(["python", "./manage.py", "send_stats", "incr", "events.server_restart", str(int(time.time()))])
|
||||
|
||||
# Restart the FastCGI process, which is running in a shell loop in screen.
|
||||
# TODO: real daemonization
|
||||
|
||||
@@ -88,4 +88,4 @@ def log_statsd_event(name):
|
||||
you can use the drawAsInfinite() command
|
||||
"""
|
||||
event_name = "events.%s" % (name,)
|
||||
statsd.gauge(event_name, int(time()))
|
||||
statsd.incr(event_name, int(time()))
|
||||
|
||||
Reference in New Issue
Block a user