From b33dd6fed4cd9da07e715666de9766e071381996 Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 22 Mar 2013 08:19:42 -0400 Subject: add graphite client --- util/bin/graphitec | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 util/bin/graphitec (limited to 'util') diff --git a/util/bin/graphitec b/util/bin/graphitec new file mode 100755 index 00000000..b9f09e3d --- /dev/null +++ b/util/bin/graphitec @@ -0,0 +1,4 @@ +#!/bin/sh +H=${GRAPHITE_HOST:-localhost} +P=${GRAPHITE_PORT:-2003} +printf "%s %s\r\n" $1 $2 | nc -u $H $P -- cgit v1.2.3 From 6d4437f1b498b97efb3bf13669cfc162e5ba642c Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 28 Mar 2013 21:48:21 -0400 Subject: add working graphite client --- util/bin/graphitec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util') diff --git a/util/bin/graphitec b/util/bin/graphitec index b9f09e3d..52aa9834 100755 --- a/util/bin/graphitec +++ b/util/bin/graphitec @@ -1,4 +1,5 @@ #!/bin/sh H=${GRAPHITE_HOST:-localhost} P=${GRAPHITE_PORT:-2003} -printf "%s %s\r\n" $1 $2 | nc -u $H $P +curr=$(date '+%s') +printf "%s %s %s\n" $1 $2 $curr | nc -q0 $H $P -- cgit v1.2.3