Skip to content

Vault TVL Snapshot & Prometheus Exporter #145

@edehvictor

Description

@edehvictor

📝 Description

We need better operational monitoring for the core team. Create a Prometheus exporter that formats our core protocol metrics so they can be scraped and visualized in Grafana.

🎯 Acceptance Criteria

  • Build an Express endpoint /metrics utilizing the prom-client library.
  • Expose critical metrics: Total Value Locked (TVL) per vault, total unique depositors, and current APYs.
  • Expose backend health metrics: API response times, database connection pool status, and indexer lag.
  • Protect the endpoint using basic authentication or IP whitelisting.

🛠 Technical Details

  • Stack: Node.js, Prometheus Client, Express.
  • Location: /backend/monitoring/prometheus.ts
  • Security: Do not expose user-specific data or wallet addresses in the metrics dump.

⏱ Complexity & Scope

  • Estimated Time: 2 weeks.
  • Drips Complexity: High (200 points) - DevOps and infrastructure observability.

📋 Guidelines for Submission

  • Minimum 90 percent test coverage required.
  • Clear NatSpec-style documentation must be added to public contract functions.
  • Timeframe for completion: 2 Wave cycles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions