Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNewRelicAdapter ¶
func NewNewRelicAdapter(route *router.Route) (router.LogAdapter, error)
NewNewRelicAdapter is a new logspout Adapter
Types ¶
type Adapter ¶
type Adapter struct { Endpoint string Hostname string Key string AuthHeader string Verbose bool FlushInterval time.Duration MaxBufferSize uint64 MaxLineLength uint64 MaxRequestRetry uint64 Log *log.Logger Queue chan Line HTTPClient *http.Client }
Adapter is an adapter for streaming JSON from logspout to NR collector.
type Attributes ¶
type Attributes struct { Plugin Plugin `json:"plugin"` GlobalTags map[string]string `json:"global_tags,omitempty"` }
Attributes struct
type ContainerInfo ¶
type ContainerInfo struct { Name string `json:"name"` ID string `json:"id"` PID int `json:"pid,omitempty"` Image string `json:"image"` Labels map[string]string `json:"labels"` }
ContainerInfo contains the container attributes
Click to show internal directories.
Click to hide internal directories.