sematext / spm-agent-docker

SPM Docker Monitoring Agent - container + host metrics & events + logs collector
http://sematext.com/spm/integrations/docker-monitoring.html
Apache License 2.0
23 stars 3 forks source link

Collect Docker events #1

Closed otisg closed 9 years ago

otisg commented 9 years ago

Docker remote API has /events endpoint, which you GET, providing the timestamp (since) and you get back all container events: create, destroy, die, export, kill, pause, restart, start, stop, unpause: https://docs.docker.com/v1.6/reference/api/docker_remote_api_v1.6/#monitor-dockers-events

Would be good to get those into SPM as Events via this API: https://sematext.atlassian.net/wiki/display/PUBSPM/Events+Integration

megastef commented 9 years ago

https://github.com/sematext/spm-agent-docker/commit/7953b4647fcfe5e6edae8f575aa5b7f19dc5dc43 implements docker events using https://github.com/sematext/spm-metrics-js

otisg commented 9 years ago

Awesome! Any idea what are all possible event types? Something to add to the README?

megastef commented 9 years ago

Improved - mapped docker status to event type. Following events are generated: