Skip to content

Instantly share code, notes, and snippets.

@earthgecko
Created April 7, 2013 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save earthgecko/5329702 to your computer and use it in GitHub Desktop.
Save earthgecko/5329702 to your computer and use it in GitHub Desktop.
graphite_weirdness
# This data set does graphs OK - BUT
# Select date range as 2013-03-15 to 2013-04-07 and it stops at 2013-03-31
# If the date range is selected as 2013-04-01 to 2013-04-07 it graphs the April
# date fine???
# I have set the Y axis Maximum to 10000 and same thing.
# What are I doing wrong?
# Data set
# number_of_seconds,epoch_timestamp
echo "445,1363366020
451,1363394009
486,1363480407
503,1363566800
516,1363653233
554,1363739652
708,1363826053
726,1363912454
661,1364013263
666,1364099674
693,1364186105
732,1364272496
737,1364358903
821,1364445317
825,1364531719
893,1364618166
923,1364704573
1049,1364790959
969,1364877382
1024,1364963811
1035,1365050186
1542,1365136623
1189,1365223017
1512,1365309550" > /tmp/graphite.weirdness.gist.txt
# I push the carbon with nc
CARBON_PORT=2003
CARBON_SERVER=localhost
VALUES=$(cat /tmp/graphite.weirdness.gist.txt)
for i_value in $VALUES
do
SECONDS=$(echo $i_value | cut -d',' -f1)
EPOCH=$(echo $i_value | cut -d',' -f2)
echo "test.earthgecko_graphite_weirdness $SECONDS $EPOCH" | nc $CARBON_SERVER $CARBON_PORT
sleep .5
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment