Do only one bucket, as specified on command line.

(imported from commit 4ca4f9609a01a6cfedc55efdbe2423673bbe4904)
This commit is contained in:
Tim Abbott
2013-05-30 17:15:22 -04:00
parent 6f38feca05
commit 42ddabf91a

View File

@@ -119,6 +119,9 @@ parser.add_option('--start-from',
parser.add_option('--realm', parser.add_option('--realm',
help='Which realm to query', help='Which realm to query',
default='all') default='all')
parser.add_option('--bucket',
help='Which bucket to query',
default='12hr')
if __name__ == '__main__': if __name__ == '__main__':
(options, args) = parser.parse_args() (options, args) = parser.parse_args()
@@ -132,7 +135,7 @@ if __name__ == '__main__':
print "Using baseline of today as %s" % (startfrom,) print "Using baseline of today as %s" % (startfrom,)
realm_key = statsd_key(options.realm, True) realm_key = statsd_key(options.realm, True)
buckets = ["12hr", "2hr", "0_16hr"] buckets = [options.bucket]
# This is the slightly-cleaned up JSON api version of https://graphiti.humbughq.com/graphs/945c7aafc2d # This is the slightly-cleaned up JSON api version of https://graphiti.humbughq.com/graphs/945c7aafc2d
# #