Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainersOf ¶
func ContainersOf(sig RawSignal) ([]docker.ContainerInfo, bool)
ContainersOf extracts a container list from a poll signal.
Types ¶
type ContainerListPayload ¶
type ContainerListPayload struct {
Containers []docker.ContainerInfo
}
ContainerListPayload is the poll collector's raw payload.
type DockerEventPayload ¶
type DockerEventPayload struct {
Event docker.ContainerEvent
}
DockerEventPayload wraps a distilled container event.
type Events ¶
type Events struct {
// contains filtered or unexported fields
}
Events streams docker events as raw signals (primary lifecycle source).
type Inspect ¶
type Inspect struct {
// contains filtered or unexported fields
}
Inspect is a one-shot collector for a single container inspect.
func NewInspect ¶
NewInspect returns an inspect collector for containerID.
type InspectPayload ¶
type InspectPayload struct {
ContainerID string
Info *docker.InspectInfo
Err error
}
InspectPayload is one on-demand inspect result.
type Kind ¶
type Kind string
Kind identifies the source-specific shape of a RawSignal payload.
const ( KindContainerList Kind = "container_list" KindInspect Kind = "inspect" KindLogLine Kind = "log_line" KindStats Kind = "stats" )
Collector signal kinds.
const KindDockerEvent Kind = "docker_event"
KindDockerEvent is emitted by the docker-events collector.
type LogLinePayload ¶
LogLinePayload is one streamed log line (or stream error).
type Logs ¶
type Logs struct {
// contains filtered or unexported fields
}
Logs wraps docker log follow as a collector.
type Poll ¶
type Poll struct {
// contains filtered or unexported fields
}
Poll wraps the existing 500 ms Docker poller as a fallback collector. docker events (Phase 1.4) will become the primary lifecycle source.
type RawSignal ¶
RawSignal is a source-specific observation before normalization. Payload types are owned by the emitting collector (see poll.go, etc.).
type Stats ¶
type Stats struct {
// contains filtered or unexported fields
}
Stats collects one-shot stats for a set of containers.
type StatsPayload ¶
StatsPayload is one batch of one-shot stats samples.