Skip to content

Commit

Permalink
Add Gauge support to pystat.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonty committed Apr 10, 2012
1 parent b99b176 commit a6073d9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bin/pystat
Expand Up @@ -42,6 +42,11 @@ parser.add_argument('--timing',
action='store_true',
help='Send timing statistics rather than counters.',
default=False)
parser.add_argument('--gauge',
dest='gauge',
action='store_true',
help='Send gauge values rather than counters.',
default=False)
options = parser.parse_args(sys.argv[1:])


Expand All @@ -54,6 +59,10 @@ if options.timing:
client.timing(options.stat,
options.value,
options.sample_rate)
elif options.gauge:
client.gauge(options.stat,
options.value,
options.sample_rate)
else:
client.update_stats(options.stat,
options.value,
Expand Down

0 comments on commit a6073d9

Please sign in to comment.