Skip to content

Add some network, database diagnostics to the App #177

@MattG57

Description

@MattG57

Enable lightweight profiling (safe for production):

db.setProfilingLevel(1, { slowms: 100 }) // captures ops > 100ms
Then query the profiler periodically:

db.system.profile.find({ millis: { $gt: 100 } }).sort({ ts: -1 }).limit(5).pretty()
Useful fields:

ns (namespace: e.g., mydb.users)

op (operation: query, update, etc.)

query or command

millis

planSummary

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions