Permalink
Browse files

Merge pull request #13 from NorthIsUp/fix_sanitize

'/' is not allowed in graphite names, add it to sanitize
  • Loading branch information...
2 parents dd42105 + 59c8e55 commit 72af28eb96f4a23ccbefaf6802db484bd95b1f9c @kevinclark kevinclark committed Mar 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/greplin/scales/graphite.py
View
2 src/greplin/scales/graphite.py
@@ -46,7 +46,7 @@ def __init__(self, host, port, prefix=None):
def _sanitize(self, name):
"""Sanitize a name for graphite."""
- return name.strip().replace(' ', '-').replace('.', '-')
+ return name.strip().replace(' ', '-').replace('.', '-').replace('/', '_')
def _forbidden(self, path, value):

0 comments on commit 72af28e

Please sign in to comment.