Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add Gauge support to pystat.

  • Loading branch information...
commit a6073d904ec1854c999778f9c90cb8564dc3eb70 1 parent b99b176
@Jonty authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 bin/pystat
View
9 bin/pystat
@@ -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:])
@@ -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,
Please sign in to comment.
Something went wrong with that request. Please try again.