Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IProcessor ¶
IProcessor defines the interface that need to be implemented by each monitor
type Instance ¶
type Instance struct { Settings Settings Logger logrus.Logger // contains filtered or unexported fields }
Instance defines the exporter instance
func NewInstance ¶
NewInstance creates a new exporter instance
func (*Instance) AddProcessor ¶
func (inst *Instance) AddProcessor(processor IProcessor)
AddProcessor allows to add monitors to the exporter instance
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
Monitor defines the http metrics server
func NewMonitor ¶
func NewMonitor(settings MonitorSettings, logger *logrus.Logger, mcollectors []collector.ICollector) (*Monitor, error)
NewMonitor creates a new Monitor instance providing http metrics server
type MonitorSettings ¶
type MonitorSettings struct { Address string MaxConnections int64 KeepAlived bool ReUsePort bool TCPKeepAliveInterval time.Duration }
MonitorSettings defines required attributes
type Settings ¶
type Settings struct { Monitor MonitorSettings Trivy collector.Settings }
Settings defines the global server settings
Click to show internal directories.
Click to hide internal directories.