metrics-collector

Codify database-backed metrics instrumentation for NodeJS-Starter-V1 using Supabase/PostgreSQL.

1|Updated Sep 14, 2025
One-click install
npx skills add https://github.com/CleanExpo/DR-NRPG --skill metrics-collector-cleanexpo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: metrics-collector
Source: https://github.com/CleanExpo/DR-NRPG/tree/main/.skills/custom/metrics-collector
Command: npx skills add https://github.com/CleanExpo/DR-NRPG --skill metrics-collector-cleanexpo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a standardized way to collect, store, and query application metrics, ensuring consistent observability across your project without relying on external scraping infrastructure.

Core Features & Use Cases

  • Standardized Metric Types: Supports counters, gauges, and histograms with defined naming conventions.
  • Database-backed Storage: Persists metrics in PostgreSQL/Supabase, suitable for serverless environments.
  • Time-Series Aggregation: Enables querying metrics over time for trend analysis.
  • Use Case: Automatically track the total number of agent runs, their duration, and API request latency, making it easy to monitor application performance and identify bottlenecks.

Quick Start

Use the metrics-collector skill to increment the agent_run_total counter with status 'completed'.

Frequently Asked Questions about metrics-collector

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I collect application metrics in a serverless environment without scraping infrastructure?

You can collect application metrics in serverless environments by persisting them directly to PostgreSQL or Supabase. This Skill standardizes counters, gauges, and histograms, storing time-series data in your database to avoid external scraping dependencies.

What is the best way to instrument a NodeJS app for observability using PostgreSQL?

The best way to instrument a NodeJS app for PostgreSQL-backed observability is codifying standardized metric types and naming conventions. This approach persists time-series metrics directly in your database, enabling trend analysis and bottleneck identification.

Does this metrics instrumentation approach support counters, gauges, and histograms?

Yes, this metrics instrumentation approach supports counters, gauges, and histograms. It standardizes these metric types with defined naming conventions and enables time-series aggregation for querying application performance over time.

Can I export metrics to OpenTelemetry from a Supabase database?

Yes, you can export metrics to OpenTelemetry from Supabase. This Skill includes optional OpenTelemetry export functionality, allowing you to integrate your database-backed time-series metrics with broader serverless observability platforms.

How do I track API request latency and agent run duration without external monitoring tools?

You track API request latency and agent run duration by using histograms and counters stored in PostgreSQL. This Skill provides standardized instrumentation to automatically record these metrics, making it easy to monitor performance and identify bottlenecks.

How do I track API request latency and agent run duration without external monitoring tools?

You track API request latency and agent run duration by using histograms and counters stored in PostgreSQL. This Skill provides standardized instrumentation to automatically record these metrics, making it easy to monitor performance and identify bottlenecks.