Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct {
config.InstanceConfig
IPs []string `toml:"ips"`
Community string `toml:"community"`
IndexTag bool `toml:"index_tag"`
IgnoreIfaces []string `toml:"ignore_ifaces"`
ConcurrencyForAddress int `toml:"concurrency_for_address"`
ConcurrencyForRequest int `toml:"concurrency_for_request"`
PingEnable bool `toml:"ping_enable"`
PingModeFastping bool `toml:"ping_mode_fastping"`
PingTimeoutMs int64 `toml:"ping_timeout_ms"`
PingRetries int `toml:"ping_retries"`
SnmpModeGosnmp bool `toml:"snmp_mode_gosnmp"`
SnmpTimeoutMs int64 `toml:"snmp_timeout_ms"`
SnmpRetries int `toml:"snmp_retries"`
GatherPingMetrics bool `toml:"gather_ping_metrics"`
GatherFlowMetrics bool `toml:"gather_flow_metrics"`
GatherCpuMetrics bool `toml:"gather_cpu_metrics"`
GatherMemMetrics bool `toml:"gather_mem_metrics"`
GatherOperStatus bool `toml:"gather_oper_status"`
GatherPkt bool `toml:"gather_pkt"`
GatherBroadcastPkt bool `toml:"gather_broadcast_pkt"`
GatherMulticastPkt bool `toml:"gather_multicast_pkt"`
GatherDiscards bool `toml:"gather_discards"`
GatherErrors bool `toml:"gather_errors"`
GatherUnknownProtos bool `toml:"gather_unknown_protos"`
GatherOutQlen bool `toml:"gather_out_qlen"`
SpeedLimit float64 `toml:"speed_limit"`
PktLimit float64 `toml:"pkt_limit"`
BroadcastPktLimit float64 `toml:"broadcast_pkt_limit"`
MulticastPktLimit float64 `toml:"multicast_pkt_limit"`
DiscardsPktLimit float64 `toml:"discards_pkt_limit"`
ErrorsPktLimit float64 `toml:"errors_pkt_limit"`
UnknownProtosPktLimit float64 `toml:"unknown_protos_pkt_limit"`
OutQlenPktLimit float64 `toml:"out_qlen_pkt_limit"`
Customs []Custom `toml:"customs"`
// contains filtered or unexported fields
}
func (*Instance) Gather ¶
func (ins *Instance) Gather(slist *types.SampleList)
type LastifMap ¶
type LastifMap struct {
// contains filtered or unexported fields
}
func NewLastifMap ¶
func NewLastifMap() *LastifMap
type Switch ¶
type Switch struct {
config.PluginConfig
Instances []*Instance `toml:"instances"`
SwitchIdLabel string `toml:"switch_id_label"`
Mappings map[string]string `toml:"mappings"`
}
func (*Switch) GetInstances ¶
Click to show internal directories.
Click to hide internal directories.