Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Menaker-john/omni

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Omni

What is Omni

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.

Prerequisites

  • node >= 12.9
  • npm >= 6.10.2

Environment Variables

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
  • DOCKER_SOCKET: Docker socket path
    • Default: /var/run/docker.sock
  • INTERVAL: Time in milliseconds at which Omni will read and save docker stats
    • Default: 1000

If either MONGO_URL or MONGO_DB is undefined then Omni will fall back on logging docker stats instead.

Document Structure

{
    container: string,
    state: string,
    name: string,
    cpu: number,
    mem: number,
    ts: string
}

License

Distributed under the MIT License. See LICENSE for more information.

Contact

John Menaker - [email protected]

Project Link: https://github.com/Menaker-john/omni.git

(back to top)

About

A tool to collect Docker container stats and store in a MongoDB collection

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published