-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Metricsname includes a "-" which is not a valid metrics name
According to the documentation from splunk putting a "-" in the metrics name is not valid.
https://help.splunk.com/en/splunk-enterprise/get-data-in/metrics/9.4/introduction-to-metrics/overview-of-metrics
As we have put Splunk OTEL collector in between splunk-connect-for-snmp and Splunk Enterprise, it currently does not support: "-" according to: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/fab70b831af2303a9eba7a8d52db3792957c30e0/internal/splunk/common.go
Currently sc4snmp is sending the var-binds directly with: "-" which produces an example like:
{
"event": "metric",
"time": "1751875553",
"index": "netmetrics",
"host": "testserver.console.test.example:161",
"sourcetype": "sc4snmp:metric",
"source": "sc4snmpv7",
"fields": {
"group": "dell_idracs",
"metric_name:sc4snmp.IDRAC-MIB-SMIv2.memoryDeviceTableEntry": 3.0,
"mibIndex": "28.1.4"
}
}
The IDRAC-MIB-SMIv2
is not correct according to Splunk documentation should be underscores: "_" instead
I know it works directly to Splunk, but either documentation above should be corrected or this behaviour should be corrected.