metrics

Expose Prometheus-compatible metrics for system, API, WebSocket, and trading performance.

Updated Feb 5, 2026
One-click install
npx skills add https://github.com/shreed27/DAIN --skill metrics-shreed27
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: metrics
Source: https://github.com/shreed27/DAIN/tree/main/CloddsBot-main/src/skills/bundled/metrics
Command: npx skills add https://github.com/shreed27/DAIN --skill metrics-shreed27

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides comprehensive monitoring of system metrics, API performance, WebSocket health, and trade execution, enabling proactive issue detection and performance optimization.

Core Features & Use Cases

  • System Monitoring: Track CPU, memory, and event loop lag.
  • API & WebSocket Performance: Analyze request latency, error rates, and connection stability.
  • Trade Metrics: Monitor order fill rates, slippage, and execution latency.
  • Use Case: A trading bot operator can use this Skill to quickly check if API latency is increasing or if trade fill rates are dropping, allowing them to intervene before significant financial impact.

Quick Start

Use the metrics skill to show a summary of current system metrics.

Frequently Asked Questions about metrics

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

FAQPage Schema
How do I monitor API latency and trade execution performance in real-time?

You can monitor API latency and trade execution by using Prometheus-compatible counters, gauges, and histograms to track request latency, trade fill rates, and slippage in real-time. This enables proactive issue detection for trading systems.

What system metrics can I track for monitoring Node.js application health?

System monitoring tracks CPU usage, memory consumption, and event loop lag to assess application health. These gauges help identify performance bottlenecks and resource exhaustion before they impact system stability.

How do I set up Prometheus-compatible metrics export for WebSocket performance?

WebSocket performance metrics export requires a metrics registry for collection and exposition. The registry aggregates connection stability data, error rates, and latency counters into a Prometheus-compatible format for real-time alerting and analysis.

Can I track trading metrics like order fill rates and slippage for a trading bot?

Yes, trade metrics monitoring tracks order fill rates, slippage, and execution latency specifically for trading bots. This allows operators to detect dropping fill rates or increasing slippage and intervene before significant financial impact occurs.

Do I need a metrics registry to collect and expose telemetry data?

Yes, a metrics registry is required for collection and exposition of telemetry data. The registry aggregates counters, gauges, and histograms, enabling data export for in-depth analysis and integration with monitoring platforms.

What is the best way to monitor system health and performance for trading systems?

The best way to monitor trading system health is using Prometheus-compatible metrics that combine system monitoring, API latency tracking, and trade execution data into a unified view. This approach enables real-time alerting and proactive performance optimization.