Skip to content

Commit

Permalink
Fix stats corner case
Browse files Browse the repository at this point in the history
  • Loading branch information
sharbov committed Oct 23, 2019
1 parent 35138c7 commit b2452d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker_test_tools/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ def parse_line(self, line):
# Split the stat data to it's raw components
components = json.loads(line)

if components['name'] == '--':
# skip metrics with no service name
return

# Handle bad stats metrics
for key, val in components.items():
if '--' in val:
Expand Down

0 comments on commit b2452d1

Please sign in to comment.