sematext / sematext-agent-docker

Sematext Docker Agent - host + container metrics, logs & event collector
https://sematext.com/docker
Apache License 2.0
209 stars 30 forks source link

Kubernetes: Provide filter for pod_namespace / container name #22

Closed megastef closed 7 years ago

megastef commented 7 years ago

The SPM UI provides filters for host, image and container. In Kubernetes environments it would make more sense to group containers by pod instead of grouping by image name.

Suggestion:

SDA should detect automatically containers managed by Kubernetes, instead activating Kuberntes support via KUBERNETES=1 setting.

megastef commented 7 years ago

Fixed in release sematext/sematext-agent-docker:1.31.8:

  1. autodetection of Kubernetes containers (for SPM and Logsene) and parsing of k8s metadata
  2. aggregation by pod / container instead of images/container. Containers, which are not managed by Kubernetes (e.g. Rancher agent) are aggregated by image/container. The SPM UI shows "Image / Pod" as label for the aggregation filter.