Skip to content
This repository has been archived by the owner on Sep 16, 2018. It is now read-only.

Commit

Permalink
Remove 'type' field from SNMP metrics
Browse files Browse the repository at this point in the history
This closes #21
  • Loading branch information
bluecmd authored Jun 16, 2016
1 parent 619a604 commit 193024b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/snmpcollector/src/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ def run_dump(self):
labels['device'] = host
labels['layer'] = layer
labels['index'] = index
labels['type'] = type
# For now, remove type from labels as it makes it hard to join metrics
# without any real benefit.
# labels['type'] = type

label_list = ['{0}="{1}"'.format(k, v) for k, v in labels.iteritems()]
label_string = ','.join(label_list)
Expand Down

0 comments on commit 193024b

Please sign in to comment.