Skip to content
This repository was archived by the owner on Dec 17, 2021. It is now read-only.

Commit 4c615c9

Browse files
author
Addon Factory template
committed
feat(metrics): Add hierarch to metric name
1 parent be20906 commit 4c615c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

splunk_connect_for_snmp_mib_server/translator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def format_metric_data(self, var_bind):
325325
custom_translated_oid = self.custom_translator(oid)
326326

327327
# Construct metric data
328-
metric_data["metric_name"] = translated_oid
328+
metric_data["metric_name"] = 'sc4snmp.{translated_oid.replace(".","_").replace("::", ".")}',
329329
metric_data["_value"] = translated_val
330330
metric_data["metric_type"] = valType
331331
if custom_translated_oid:

0 commit comments

Comments
 (0)