Transaction monitoring dashboard in Grafana
Writes rule-scored synthetic card transactions to Postgres on AWS and charts approvals in Grafana Cloud.
What it does
Faker produces synthetic banking transactions, a rule function flags each one and records the triggered rule, an explanation and an approve or reject decision, and psycopg2 writes the rows to a PostgreSQL database on AWS. Grafana Cloud connects to the database and SQL panels show approved and rejected counts and amounts, transaction-type splits and triggered rules.
What was built
- 01
Generator creates transactions with merchant category, card type, amount and blacklist flags using Faker.
- 02
Rule function sets rules_triggered, an explanation and an Approved or Rejected decision per transaction.
- 03
psycopg2 inserts each scored transaction into a banking_data table on AWS-hosted PostgreSQL.
- 04
Grafana Cloud stat and pie panels query counts, amounts, transaction types and triggered rules.
The pipeline, layer by layer
Four layers, one pipeline.
L1Generate
- Faker transactions
L2Score
- Rule-based decision function
L3Store
- PostgreSQL on AWS
L4Visualise
- Grafana Cloud dashboard