Use incr instead of gauge when sending events to drawAsInfinite to statsd

(imported from commit 08a4b6920c7a4a8f472f147ddce7c04710fe5c0a)
This commit is contained in:
Leo Franchi
2013-04-18 22:08:33 -04:00
parent 7b87c201f0
commit 7b0423efc1
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ ENDC = '\033[0m'
os.chdir("/home/humbug/humbug-deployments/current") os.chdir("/home/humbug/humbug-deployments/current")
# Send a statsd event on restarting the server # 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. # Restart the FastCGI process, which is running in a shell loop in screen.
# TODO: real daemonization # TODO: real daemonization

View File

@@ -88,4 +88,4 @@ def log_statsd_event(name):
you can use the drawAsInfinite() command you can use the drawAsInfinite() command
""" """
event_name = "events.%s" % (name,) event_name = "events.%s" % (name,)
statsd.gauge(event_name, int(time())) statsd.incr(event_name, int(time()))