smithery/ngxtm

NestJS Observability

Structured logging (Pino) and Prometheus metrics.

Installation

$ npx skills add smithery/ngxtm --skill nestjs-observability

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/ngxtm · top by installs.

npx skills add smithery/ngxtm

Browse all from smithery/ngxtm

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

More metadata
labels
["nestjs","logging","monitoring","pino"]
triggers
{"files":["main.ts","**\/*.module.ts"],"keywords":["nestjs-pino","Prometheus","Logger","reqId"]}

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,438 B
  • docs SUMMARY.md 77 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Observability Standards

Structured Logging

  • Standard: Use nestjs-pino for high-performance JSON logging.

- Why: Node's built-in console.log is blocking and unstructured.

  • Configuration:

- Redaction: Mandatory masking of sensitive fields (password, token, email). - Context: Always inject Logger and set the context (LoginService).

Tracing (Correlation)

  • Request ID: Every log line must include a reqId (Request ID).

- nestjs-pino handles this automatically using AsyncLocalStorage. - Propagation: Pass x-request-id to downstream microservices/database queries key to trace flows.

Metrics

  • Exposure: Use @willsoto/nestjs-prometheus to expose /metrics for Prometheus scraping.
  • Key Metrics:

1. httprequestdurationseconds (Histogram) 2. dbquerydurationseconds (Histogram) 3. memoryusagebytes (Gauge)

Health Checks

  • Terminus: Implement explicit logic for "Liveness" (I'm alive) vs "Readiness" (I can take traffic).

- DB Check: TypeOrmHealthIndicator / PrismaHealthIndicator. - Memory Check: Fail if Heap > 300MB (prevent crash loops).