Skip to main content

FinPay API Monitoring

Production observability for a fintech payment platform — built with Grafana Cloud, Prometheus, and Grafana Alloy.

Live Production Dashboard

Opens the live FinPay production dashboard in Grafana Cloud — showing real-time CPU, memory, HTTP rates, response times and event loop lag.

What We Monitor

FinPay is a production-style payment API built with Node.js, PostgreSQL, and Redis. This monitoring setup tracks every critical component of the system in real time.

LayerTechnologyWhat We Monitor
APINode.js + ExpressRequest rate, response time, error rate
RuntimeNode.jsCPU, memory, event loop lag
CacheRedis (Upstash)Hit/miss ratio, memory
DatabasePostgreSQL (Railway)Query performance
CI/CDGitHub ActionsPipeline success/failure
InfrastructureRailwayUptime, CPU, memory

Architecture

finpay-api (Railway)
└── /metrics endpoint (prom-client)

Grafana Alloy ← scrapes every 15s

Grafana Cloud ← stores metrics

Grafana Dashboard ← visualises data

Stack

  • prom-client — Prometheus client for Node.js
  • Grafana Alloy — lightweight metrics agent
  • Grafana Cloud — hosted Prometheus + dashboards
  • PromQL — query language for metrics

Key Insight

Before adding any monitoring, understand what your app does. Each architectural decision — JWT auth, Redis rate limiting, atomic transactions — should have a corresponding metric that tells you when that component is misbehaving.

This is the difference between generic CPU dashboards and meaningful production observability.

Monitoring Sections

SectionWhat You'll Learn
App InstrumentationAdding prom-client, exposing /metrics
Grafana Alloy SetupInstalling and configuring the scrape agent
Grafana DashboardBuilding panels with PromQL
SecurityKeeping secrets out of git
Production DeploymentMonitoring the live Railway app
✦ Test Your Knowledge

1.What is the primary purpose of adding monitoring to a fintech application?

ATo make the app look more professional
BTo detect and respond to incidents before users are impacted
CTo slow down the application intentionally
DTo replace logging entirely

2.Which tool scrapes the /metrics endpoint and pushes data to Grafana Cloud?

APrometheus Server
BGrafana Agent
CGrafana Alloy
DDatadog

3.Why must you understand the application architecture before setting up monitoring?

ATo write better code
BBecause each architectural decision needs a corresponding metric
CTo reduce cloud costs
DMonitoring works the same regardless of the app