You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: add option to change "-" to an "_" to be compatible with metric schema in Splunk
* fix: doc fix and docker-compose change
* fix: add docs
* chore: pre-commit run
* doc: refine
* doc: address PR comments, update CHANGELOG
|`SPLUNK_HEC_INSECURESSL`| Whether to skip checking the certificate of the HEC endpoint when sending data over HTTPS |
55
-
|`SPLUNK_SOURCETYPE_TRAPS`| Splunk sourcetype for trap events |
56
-
|`SPLUNK_SOURCETYPE_POLLING_EVENTS`| Splunk sourcetype for non-metric polling events |
57
-
|`SPLUNK_SOURCETYPE_POLLING_METRICS`| Splunk sourcetype for metric polling events |
58
-
|`SPLUNK_HEC_INDEX_EVENTS`| Name of the Splunk event index |
59
-
|`SPLUNK_HEC_INDEX_METRICS`| Name of the Splunk metrics index |
60
-
|`SPLUNK_HEC_PATH`| Path for the HEC endpoint |
61
-
|`SPLUNK_AGGREGATE_TRAPS_EVENTS`| When set to true makes traps events collected as one event inside splunk |
62
-
|`IGNORE_EMPTY_VARBINDS`| Details can be found in [empty snmp response message issue](../troubleshooting/polling-issues.md#empty-snmp-response-message-problem)|
63
-
|`SPLUNK_LOG_INDEX`| Event index in Splunk where logs from docker containers would be sent |
|`SPLUNK_HEC_INSECURESSL`| Whether to skip checking the certificate of the HEC endpoint when sending data over HTTPS |
55
+
|`SPLUNK_SOURCETYPE_TRAPS`| Splunk sourcetype for trap events |
56
+
|`SPLUNK_SOURCETYPE_POLLING_EVENTS`| Splunk sourcetype for non-metric polling events |
57
+
|`SPLUNK_SOURCETYPE_POLLING_METRICS`| Splunk sourcetype for metric polling events |
58
+
|`SPLUNK_HEC_INDEX_EVENTS`| Name of the Splunk event index |
59
+
|`SPLUNK_HEC_INDEX_METRICS`| Name of the Splunk metrics index |
60
+
|`SPLUNK_HEC_PATH`| Path for the HEC endpoint |
61
+
|`SPLUNK_AGGREGATE_TRAPS_EVENTS`| When set to true makes traps events collected as one event inside splunk |
62
+
|`SPLUNK_METRIC_NAME_HYPHEN_TO_UNDERSCORE`| Replaces hyphens with underscores in generated metric names to ensure compatibility with Splunk's metric schema |
63
+
|`IGNORE_EMPTY_VARBINDS`| Details can be found in [empty snmp response message issue](../troubleshooting/polling-issues.md#empty-snmp-response-message-problem)|
64
+
|`SPLUNK_LOG_INDEX`| Event index in Splunk where logs from docker containers would be sent |
|`WALK_RETRY_MAX_INTERVAL`| Maximum time interval between walk attempts |
71
-
|`WALK_MAX_RETRIES`| Maximum number of walk retries |
72
-
|`METRICS_INDEXING_ENABLED`| Details can be found in [append oid index part to the metrics](../microk8s/configuration/poller-configuration.md#append-oid-index-part-to-the-metrics)|
73
-
|`POLL_BASE_PROFILES`| Enable polling base profiles (with IF-MIB and SNMPv2-MIB) |
74
-
|`IGNORE_NOT_INCREASING_OIDS`| Ignoring `occurred: OID not increasing` issues for hosts specified in the array, ex: IGNORE_NOT_INCREASING_OIDS=127.0.0.1:164,127.0.0.6 |
75
-
|`WORKER_LOG_LEVEL`| Logging level of the workers, possible options: DEBUG, INFO, WARNING, ERROR, CRITICAL, or FATAL |
76
-
|`UDP_CONNECTION_TIMEOUT`| Timeout in seconds for SNMP operations |
77
-
|`MAX_OID_TO_PROCESS`| Sometimes SNMP Agent cannot accept more than X OIDs per once, so if the error "TooBig" is visible in logs, decrease the number of MAX_OID_TO_PROCESS |
|`WALK_RETRY_MAX_INTERVAL`| Maximum time interval between walk attempts |
72
+
|`WALK_MAX_RETRIES`| Maximum number of walk retries |
73
+
|`METRICS_INDEXING_ENABLED`| Details can be found in [append oid index part to the metrics](../microk8s/configuration/poller-configuration.md#append-oid-index-part-to-the-metrics)|
74
+
|`POLL_BASE_PROFILES`| Enable polling base profiles (with IF-MIB and SNMPv2-MIB) |
75
+
|`IGNORE_NOT_INCREASING_OIDS`| Ignoring `occurred: OID not increasing` issues for hosts specified in the array, ex: IGNORE_NOT_INCREASING_OIDS=127.0.0.1:164,127.0.0.6 |
76
+
|`WORKER_LOG_LEVEL`| Logging level of the workers, possible options: DEBUG, INFO, WARNING, ERROR, CRITICAL, or FATAL |
77
+
|`UDP_CONNECTION_TIMEOUT`| Timeout in seconds for SNMP operations |
78
+
|`MAX_OID_TO_PROCESS`| Sometimes SNMP Agent cannot accept more than X OIDs per once, so if the error "TooBig" is visible in logs, decrease the number of MAX_OID_TO_PROCESS |
Copy file name to clipboardExpand all lines: docs/microk8s/configuration/poller-configuration.md
+61-1Lines changed: 61 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,67 @@ out of this object:
99
99
}
100
100
```
101
101
102
+
### Replace "-" with "_" in metrics name
103
+
104
+
There is a known issue with metric names that are not following the Splunk metric schema. Read more at [addressing metric naming](../../troubleshooting/general-issues.md#addressing-metric-naming-conflicts-for-splunk-integration).
105
+
To ensure seamless compatibility and avoid potential issues, SC4SNMP provides a configuration option to automatically convert
106
+
hyphens in metric names to underscores.
107
+
108
+
You can enable this conversion by setting the `splunkMetricNameHyphenToUnderscore` parameter to `true` within the `poller` section of your SC4SNMP configuration:
109
+
110
+
```yaml
111
+
poller:
112
+
splunkMetricNameHyphenToUnderscore: true
113
+
```
114
+
115
+
Enabling this option transforms metric names from their hyphenated format to an underscore-separated format, aligning them with common Splunk metric naming conventions.
There are [two profiles](https://github.com/splunk/splunk-connect-for-snmp/blob/main/splunk_connect_for_snmp/profiles/base.yaml) that are being polled by default, so that even without any configuration set up, you can see
@@ -109,7 +170,6 @@ poller:
109
170
pollBaseProfiles: false
110
171
```
111
172
112
-
113
173
### Configure inventory
114
174
To update inventory, see [Update Inventory and Profile](#update-inventory).
|`metricsIndexingEnabled`| Appends OID indexes to metrics |`false`|
98
+
|`splunkMetricNameHyphenToUnderscore`| Replaces hyphens with underscores in generated metric names to ensure compatibility with Splunk's metric schema |`false`|
99
+
|`pollBaseProfiles`| Enables polling base profiles |`true`|
100
+
|`maxOidToProcess`| Maximum number of OIDs requested from SNMP Agent at once |`70`|
101
+
|`usernameSecrets`| List of kubernetes secrets name that will be used for polling ||
102
+
|`inventory`| List of configuration for polling ||
0 commit comments