agentleFS
reaatechreaatech/mcp-gateway/skills/observability/skill.md

observability

Skill0 starsChanged 7 months agoMITView on GitHub

Logging is re-exported from @reaatech/mcp-gateway-core (logger.ts).

87 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use gitops, background-jobs and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • kcns008Skill

    gitops

    GitOps Agent (Flow) — manages ArgoCD applications, Helm charts, Kustomize overlays, deployment strategies (canary, blue-green, rolling), multi-cluster GitOps, and drift detection for Kubernetes and OpenShift clusters.

    Also in 4 projects that use this

  • YepAPISkill

    background-jobs

    Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

    Also in 4 projects that use this

  • Mushfiqur-Rahman-RobinSkill

    rag-systems

    Best practices for building Retrieval-Augmented Generation systems — chunking, embedding, hybrid retrieval, reranking, indexing, caching, evaluation, observability — plus a catalog of RAG patterns and when each applies.

    Also in 3 projects that use this

  • YepAPISkill

    data-pipelines

    ETL patterns, cron scheduling, queue-based processing, and batch jobs with Inngest/BullMQ.

    Also in 4 projects that use this

  • wpankSkill

    caching

    Caching strategies, invalidation, eviction policies, HTTP caching, distributed caching, and anti-patterns. Use when designing cache layers, choosing eviction policies, debugging stale data, or optimizing read-heavy workloads.

    Also in 5 projects that use this

  • JohnJBorenSkill

    ci-cd

    CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies

    Also in 13 projects that use this

The file

Files
skill.md

Observability

Capability

OpenTelemetry auto-initialization, pre-built metrics, distributed tracing, health check endpoints, and structured logging.

Package

@reaatech/mcp-gateway-observability — packages/observability/src/

Logging is re-exported from @reaatech/mcp-gateway-core (logger.ts).

Components

ComponentPurpose
otel.tsOTel SDK auto-initialization (if OTEL_EXPORTER_OTLP_ENDPOINT set)
otel.impl.tsOTel implementation: NodeSDK setup, trace/metric exporters, shutdown
metrics.tsCounters, histograms, gauges for gateway observability
tracing.tsSpans for auth, rate limit, cache, validation, allowlist, upstream, fanout
health.tsLiveness, readiness, deep-health probes with pluggable component checks

Metrics

MetricTypeLabels
gateway.requests.totalCountertenant_id, status
gateway.requests.duration_msHistogramtenant_id, method
gateway.auth.attemptsCountermethod, result
gateway.rate_limit.exceededCountertenant_id
gateway.cache.hitsCountertool
gateway.cache.missesCountertool
gateway.upstream.errorsCounterupstream, error_type
gateway.fanout.upstreamsCounterstrategy
gateway.validation.errorsCountertype
gateway.upstream.latency_msHistogramupstream
gateway.audit.eventsCounterevent_type

Health Endpoints

EndpointPurpose
/healthLiveness — always returns 200 if process is running
/health/deepDeep — runs all registered probes, per-component status

Health Probes

ExportDescription
registerProbe(name, fn)Register a custom health probe
createRedisProbe(pingFn)Factory for Redis ping health check
createUpstreamProbe(url)Factory for upstream HTTP health check
resetProbes()Clear all probes (for testing)

Tracing

Each request generates spans for: gateway.auth, gateway.rate_limit, gateway.cache, gateway.validation, gateway.allowlist, gateway.upstream, gateway.fanout.

Error Handling

  • OTel SDK fails gracefully if exporter unavailable
  • Metrics collection continues even if OTel fails
  • Health probe failures return 503 with per-component details

Security Considerations

  • Logs contain no raw tokens or PII (automatic redaction via core logger)
  • Request IDs included in all log lines for traceability
  • Tenant IDs included in all log lines for debugging

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.