Unitech / Unitech/pm2

Support --sort on `pm2 monit`

Open
#5,950 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
43.3k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

What's going wrong?

Processes when running pm2 monit are always sorted alphabetically by name.

When running pm2 list, we can pass the --sort flag. We should also be able to do this when running pm2 monit.

How could we reproduce this issue?

Run pm2 monit when a group of processes are running

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the pm2 monit entry point and the existing --sort handling for pm2 list. Compare how each command orders processes, then verify that pm2 monit --sort applies the requested ordering while running with a group of processes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
cli, observability
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.