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

Commit 193024b

Browse files
authored
Remove 'type' field from SNMP metrics
This closes #21
1 parent 619a604 commit 193024b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/snmpcollector/src/exporter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ def run_dump(self):
142142
labels['device'] = host
143143
labels['layer'] = layer
144144
labels['index'] = index
145-
labels['type'] = type
145+
# For now, remove type from labels as it makes it hard to join metrics
146+
# without any real benefit.
147+
# labels['type'] = type
146148

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

0 commit comments

Comments
 (0)