Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Scrapes aggregate payment data and sends to performance platform

License

Notifications You must be signed in to change notification settings

alphagov/pay-performance-reporter

Repository files navigation

Pay performance reporter

As of April 2024 this repository is no longer actively maintained by the GOV.UK Pay team.

A NodeJS app that queries Ledger and Adminusers to gather performance stats.

Previously this was run daily as an AWS ECS task, to upload stats to an s3 bucket.

Required environment variables

  • ADMINUSERS_URL - URL of adminusers you want to retrieve data from
  • LEDGER_URL - URL of ledger you want to retrieve data from
  • AWS_S3_PERFORMANCE_DATA_BUCKET_NAME - name of the bucket where you want to store the performance.json file

AWS credentials are picked up from the environment

Running it locally

  • make sure that you have a .env file in the root directory (you can rename .env.example)
  • make sure that ADMINUSERS_URL and LEDGER_URL point to a running instance
  • make sure that AWS_S3_PERFORMANCE_DATA_BUCKET_NAME is a valid bucket name
  • aws-vault exec test -- npm run start:dev

Licence

MIT License

Vulnerability Disclosure

GOV.UK Pay aims to stay secure for everyone. If you are a security researcher and have discovered a security vulnerability in this code, we appreciate your help in disclosing it to us in a responsible manner. Please refer to our vulnerability disclosure policy and our security.txt file for details.

About

Scrapes aggregate payment data and sends to performance platform

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages