Documentation ¶
Index ¶
- type Client
- func (mon *Client) CloseMonitorConnection()
- func (mon *Client) WriteBytesCopied(srcIsServer bool, totalBytesCopied int64, dst, src net.Conn)
- func (mon *Client) WriteConnectionAccepted(src net.Conn)
- func (mon *Client) WriteConnectionPoolStats(src net.Conn, connectionsInUse, connectionPoolSize int)
- func (mon *Client) WriteConnectionRejected(src net.Conn)
- func (mon *Client) WriteContainerCreated(numContainersCreated int)
- func (mon *Client) WriteContainerDestroyed(numContainersDestroyed int)
- type Monitor
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents the internal representation of a monitor, specifically containing references to the logging components, monitor client etc needed
func CreateMonitor ¶
CreateMonitor simply creates a pointer to a Client TODO return error
func (*Client) CloseMonitorConnection ¶
func (mon *Client) CloseMonitorConnection()
CloseMonitorConnection simple closes the InfluxDB client when processing is complete
func (*Client) WriteBytesCopied ¶
WriteBytesCopied writes the number of bytes copied to the monitor connection
func (*Client) WriteConnectionAccepted ¶
WriteConnectionAccepted writes a point to the monitor to indicate that a connection was accepted
func (*Client) WriteConnectionPoolStats ¶
WriteConnectionPoolStats writes a the number of connections in use and the pool size to the monitor
func (*Client) WriteConnectionRejected ¶
WriteConnectionRejected writes a point to indicate that a connection was rejected
func (*Client) WriteContainerCreated ¶
WriteContainerCreated writes the number of connections created to the monitor
func (*Client) WriteContainerDestroyed ¶
WriteContainerDestroyed writes the number of connections destroyed to the monitor
type Monitor ¶
type Monitor interface { WriteBytesCopied(srcIsServer bool, totalBytesCopied int64, dst, src net.Conn) WriteConnectionAccepted(src net.Conn) WriteConnectionPoolStats(src net.Conn, connectionsInUse, connectionPoolSize int) WriteContainerCreated(numContainersCreated int) WriteContainerDestroyed(numContainersDestroyed int) CloseMonitorConnection() }
Monitor should be implemented to write to a time-series database for the various methods required