Omni saves running Docker container stats to a MongoDB collection. With Omni, docker stats can be graphed and compared against container logs to determine which server methods are possibly performing inefficiently.
- node >= 12.9
- npm >= 6.10.2
Omni uses a few environment variables
- MONGO_URL: URL to connect to Mongo
- MONGO_DB: Mongo Database to use
- MONGO_COL: Mongo Collection to store docker stats documents into
- Default:
ts_docker_stats
- Default:
- DOCKER_SOCKET: Docker socket path
- Default:
/var/run/docker.sock
- Default:
- INTERVAL: Time in milliseconds at which Omni will read and save docker stats
- Default:
1000
- Default:
If either MONGO_URL or MONGO_DB is undefined then Omni will fall back on logging docker stats instead.
{
container: string,
state: string,
name: string,
cpu: number,
mem: number,
ts: string
}Distributed under the MIT License. See LICENSE for more information.
John Menaker - [email protected]
Project Link: https://github.com/Menaker-john/omni.git