Skip to content

Commit 378a91c

Browse files
authored
Allow Meraki Filter by Network and Org (#410)
Supports a config like: meraki_cloud_controller: device_name: meraki_cloud_controller device_ip: snmp.meraki.com ext: ext_only: true meraki_config: api_key: my-meraki-api-key monitor_uplinks: false monitor_devices: false monitor_org_changes: true networks: - "Network 1" - "Network 2" organizations: - "Org 1"
1 parent 0e177f1 commit 378a91c

File tree

5 files changed

+368
-147
lines changed

5 files changed

+368
-147
lines changed

pkg/formats/nrm/nrm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func (f *NRMFormat) toNRMetric(in *kt.JCHF) []NRMetric {
205205
return f.fromSnmpMetadata(in)
206206
case kt.KENTIK_EVENT_KTRANS_METRIC:
207207
return f.fromKtranslate(in)
208-
case kt.KENTIK_EVENT_SNMP_TRAP:
208+
case kt.KENTIK_EVENT_SNMP_TRAP, kt.KENTIK_EVENT_EXT:
209209
// This is actually an event, send out as an event to sink directly.
210210
err := events.SendEvent(in, f.doGz, f.EventChan)
211211
if err != nil {

pkg/inputs/snmp/metrics/poll.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ func (p *Poller) StartExtensionOnlyLoop(ctx context.Context) {
321321
counterAlignment := time.Duration(p.counterTimeSec) * time.Second
322322

323323
if p.extension != nil {
324+
p.log.Infof("Running only extension %s", p.extension.GetName())
324325
go p.extension.Run(ctx, counterAlignment)
325326
}
326327

0 commit comments

Comments
 (0)