Open binarylogic opened 4 years ago
I think this should be integrated into a more general system level metrics collection source. My reasoning is because docker is basically a wrapper around cgroups which is a system level thing. Maybe we can find a way to expose the same metrics docker or no docker by just collecting general cgroup metrics.
Noting that a user requested this in Slack. Specifically the metrics exposed by http://api/containers/{container id or name}/stats
Docker endpoint. They'd like to include the network stats as well.
Any updates on this? Can this be accomplished using host_metrics with cgroups?
I've been wanting to give vector a try for a while now, but Docker metrics are essential.
I specifically need to be able to easily connect the metrics to the logs from the same container.
Would that be possible with the host metrics source? I'd think you'd need to know the cgroup for the container outputting the logs in order to connect the logs to the metrics if you relied on cgroups for the metric data. I don't see anything in the docs for docker logs about cgroups. So how would I connect the two?
I also don't see anything about cgroup specific network or disk IO in the host metrics docs. So if I needed that data at a container level, I'd be out of luck.
Which all leads me to also ask for a docker metrics source separate from everything else. Any chance we can get that sometime?
host_metrics
does have support for reporting cgroup metrics now. This probably not the exact set of metrics available via http://api/containers/{container id or name}/stats
though. I still think a dedicated source could make sense. We'd be happy to see a contribution if someone is motivated.
Docker has a runtime metrics feature. I'd like to collect this data, but I have a couple of important questions:
server_metrics
source? A source that collect host level CPU, memory, disk, and network metrics.docker
source, or should we rename thedocker
source todocker_logs
so that we can add a newdocker_metrics
source?