Skip to content

Commit

Permalink
Flush metrics once all metrics are generated
Browse files Browse the repository at this point in the history
Fixes - Grok metrics can take minutes to show up on the server #50
  • Loading branch information
rshivane committed Apr 12, 2018
1 parent 5379daa commit 518e3d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grok_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def print_metric(metric_name, timestamp, value, tags):
utils.err("Unexpected error: %s" % sys.exc_info()[0])
traceback.print_exc()
die()

sys.stdout.flush()

if __name__ == '__main__':
main()

0 comments on commit 518e3d7

Please sign in to comment.