Skip to content

Commit

Permalink
Omit MAIN type from varnish metric names
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Wang committed Mar 23, 2015
1 parent 3729b72 commit f9fce63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks.d/varnish.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _end_element(self, name):

# reset for next stat element
self._reset()
elif name in ("type", "ident", "name"):
elif name in ("ident", "name") or (name == "type" and self._current_str != "MAIN"):
self._current_metric += "." + self._current_str

def _char_data(self, data):
Expand Down

0 comments on commit f9fce63

Please sign in to comment.