google / cadvisor

Analyzes resource usage and performance characteristics of running containers.
Other
16.92k stars 2.31k forks source link

cadvisor metrics and elasticsearch #2186

Open aljaljic opened 5 years ago

aljaljic commented 5 years ago

I have setup cadvisor to connect to an aws managed elastic search endpoint running on version 2.3 since that is the only one supported at this time. However , the data cadvisor is sending is from container info api v1.0, which has barely any metrics. I find that the /metrics endpoint which was meant for Prometheus actually provides much more useful data such as cluster name, task name, and running task state compared to the container info api. Is it possible to have this data send over to elasticsearch as well instead of just from the container info api?

dashpole commented 5 years ago

You are welcome to open a PR to add more metrics to the elasticsearch storage backend. The code for that is in the directory: https://github.com/google/cadvisor/tree/master/storage/elasticsearch