{"id":15154308,"url":"https://github.com/mongodb-cowboys/monalize","last_synced_at":"2025-10-24T10:30:54.357Z","repository":{"id":50132622,"uuid":"303316693","full_name":"MongoDB-Cowboys/Monalize","owner":"MongoDB-Cowboys","description":"Monaliza is a tool for scanning and analyzing MongoDB database for any performance issues, which lead to high CPU consumption.","archived":false,"fork":false,"pushed_at":"2024-11-15T09:26:11.000Z","size":7491,"stargazers_count":28,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-29T09:44:54.896Z","etag":null,"topics":["database","mongodb","mongodb-database","nosql","nosql-database"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MongoDB-Cowboys.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-12T07:48:31.000Z","updated_at":"2024-11-15T09:24:03.000Z","dependencies_parsed_at":"2024-06-19T01:49:06.605Z","dependency_job_id":"bd018e74-b6cd-4691-acba-82059ec3fa57","html_url":"https://github.com/MongoDB-Cowboys/Monalize","commit_stats":{"total_commits":12,"total_committers":4,"mean_commits":3.0,"dds":0.6666666666666667,"last_synced_commit":"f28e4e8165bb857dc56e5bbce63ee1cf201e1746"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MongoDB-Cowboys%2FMonalize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MongoDB-Cowboys%2FMonalize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MongoDB-Cowboys%2FMonalize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MongoDB-Cowboys%2FMonalize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MongoDB-Cowboys","download_url":"https://codeload.github.com/MongoDB-Cowboys/Monalize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237950817,"owners_count":19392666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","mongodb","mongodb-database","nosql","nosql-database"],"created_at":"2024-09-26T17:21:27.287Z","updated_at":"2025-10-24T10:30:53.966Z","avatar_url":"https://github.com/MongoDB-Cowboys.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://stand-with-ukraine.pp.ua)\n\n\n# Monalize tool overview \n\nMonaliza is a tool for scanning and analyzing MongoDB database for any performance issues, which lead to high CPU consumption. \n\nThe main task is a fast output of names of all databases and collections, indexes and slow queries stats.\n\n## Compilation\n\n`go build monalize.go`\n\n## Usage \n\nCompile the tool from src code or install via \n```\nMONALIZE=$( curl --silent \"https://api.github.com/repos/MongoDB-Cowboys/Monalize/releases/latest\" | grep '\"tag_name\":' | sed -E 's/.*\"([^\"]+)\".*/\\1/' ) \\\n;wget https://github.com/MongoDB-Cowboys/Monalize/releases/download/$MONALIZE/monalize\n```\nDon't forget to make it executable:\n```\nchmod +x monalize\n```\nThen you can run on any Unix like system via `./monalize`\n\nAvailable flags:\n\n* `--db_name` (optional) If you need to scan only specific database. (default: nil)\n* `--db_uri` (optional) Uri to connect to mongodb service. (default: \"mongodb://localhost:27017\")\n* `--excel` (optional) To save an output of the script to excel file. (default: false)\n* `--logpath` (optional) Specify a path to MongoDB service log file. If you use this together with the variable `container` then this path to the file will be applied to the container. Without the `container` variable, it will be applied to the local log file. (default \"\")\n* `--container` (optional) Specify a name of Docker container. If you leave the `logpath` variable empty, logs will be read from the container. (default \"\")\n* `--context_timeout` (optional) Set context timeout. (default 10)\n* `--podman` (optional) For using the Podman executable file to check the log file in the container. (default: false)\n\nA help is available via `./monalize --help`.\n\nExamples uri: \n\n* `mongodb://User:Pwd@ip.ip.ip.ip:port`\n\nFull request example:\n\n* `monalize --db_uri \"mongodb://user:passwd@127.0.0.1:27017/?\u0026authSource=admin\"`\n\nAfter successfull run of the `monalize` tool, all the output artifacts will be saved in working directory:\n\n* `colout.txt` COLLSCAN logs.\n* `result.csv` optional excel file.\n\n## Podman\nFor running `Monalize` when `MongoDB` is working in `Podman`, you should set the `DOCKER_HOST` variable with the path to the `podman.socket` file and add the additional flag `--podman=true` for using the `Podman` executable file to check the log file in the container. This flag is required only when you want to check a specific log file in the container.\n\nExample:\n\n```\nexport DOCKER_HOST=unix:///Users/username/.local/share/containers/podman/machine/podman.sock\nmonalize --db_uri \"mongodb://127.0.0.1:27017\"  --container mongo --db_name example --logpath \"/tmp/log\" --excel=true --podman=true\n```\n## License \n\nGPL-3.0 License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb-cowboys%2Fmonalize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmongodb-cowboys%2Fmonalize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb-cowboys%2Fmonalize/lists"}