Skip to content

Commit

Permalink
fix: moved indexes from config yaml to args (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
lingy1028 authored May 19, 2021
1 parent be0c926 commit aa47fba
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
5 changes: 0 additions & 5 deletions deploy/sc4snmp/ftr/scheduler-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ data:
- ['IF-MIB','ifOutErrors']
- ['IF-MIB','ifInDiscards']
- ['IF-MIB','ifOutDiscards']
splunk:
index:
event: "##EVENTS_INDEX##"
meta: "##META_INDEX##"
metric: "##METRICS_INDEX##"
mongo:
database: "snmp_poller"
collection: "walked_hosts"
2 changes: 0 additions & 2 deletions deploy/sc4snmp/ftr/traps-server-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,3 @@ data:
securityEngineId: 8000000903bc16f5802780
thread-pool:
max-suggested-working-threads: 10
splunk:
index: "##EVENTS_INDEX##"
3 changes: 3 additions & 0 deletions deploy/sc4snmp/internal/scheduler-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ spec:
"--log=WARN",
"--config=/work/config/config.yaml",
"--inventory=/work/inventory/inventory.csv",
"--event_index=##EVENTS_INDEX##",
"--metric_index=##METRICS_INDEX##",
"--meta_index=##META_INDEX##",
]
env:
- name: MONGO_SERVICE_SERVICE_HOST
Expand Down
21 changes: 12 additions & 9 deletions deploy/sc4snmp/internal/traps-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ spec:
- name: traps
image: ghcr.io/splunk/splunk-connect-for-snmp-traps:1
imagePullPolicy: Always
args: ["--loglevel=WARN", "--config=/work/config/config.yaml"]
args:
[
"--loglevel=WARN",
"--config=/work/config/config.yaml",
"--index=##EVENTS_INDEX##",
]
ports:
- containerPort: 2162
env:
Expand Down Expand Up @@ -46,11 +51,9 @@ spec:
mountPath: "/work/config"
readOnly: true
volumes:
- name: config
configMap:
name: sc4snmp-trap
items:
- key: "config.yaml"
path: "config.yaml"


- name: config
configMap:
name: sc4snmp-trap
items:
- key: "config.yaml"
path: "config.yaml"

0 comments on commit aa47fba

Please sign in to comment.