Skip to content

Commit

Permalink
Reverse type instance name for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
vmahedia committed Dec 9, 2015
1 parent 996688c commit 96fe35d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion marathon.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ def dispatch_stat(type, name, value):
val = collectd.Values(plugin='marathon')
val.type = type
if CLEAN_METRICS:
name = name.replace('mesosphere.marathon.', '')
name = name.replace('mesosphere.marathon.', '')
name_parts = name.split('.')
name_parts.reverse()
name = ".".join(name_parts)
val.type_instance = name
val.values = [value]
# https://github.com/collectd/collectd/issues/716
Expand Down

0 comments on commit 96fe35d

Please sign in to comment.