ghiobi / tally-ticketsystem

Making Expensing Better Than Great Again
MIT License
1 stars 0 forks source link

As an admin user, I would like to be able to aggregate metrics with StatsD and view data on Grafana #205

Closed miisaka closed 5 years ago

miisaka commented 5 years ago

Story Points: 8

Risk: MEDIUM

Priority: MEDIUM

Description

We want to be able to track metrics such as ticket creation, completion (resolved), expenses created, etc. Implement using StatsD as the metrics aggregator, node-statsd as the client metrics gatherer, Graphite as the metrics monitoring tool and Grafana as the metrics graph visualizing tool, all on a separate docker container than the main app.

https://github.com/statsd/statsd https://www.npmjs.com/package/node-statsd https://graphiteapp.org/ https://grafana.com/docs/

Mockup

TallyTicketMockup

Acceptance Test

Test Reference Test Date Tester Test Steps Expected Result Actual Result
1 20/04/2019 Nathan Chao 1. Click on any ticket 2. add a reply 3. Go to the Grafana dashboard A new statsd_count.ticket.reply.success should appear PASSED
2 20/04/2019 Nathan Chao 1. Login as a user 2. go to 'My Expenses' 3. Click 'New Expense' 4. File a new expense A new statsd_count.expense.create.success should appear PASSED
3 20/04/2019 Nathan Chao 1. Login as a user 2. go to 'My Expenses' 3. Delete an existing expense A new statsd_count.expense.delete.success should appear PASSED
4 20/04/2019 Nathan Chao 1. Login as a user 2. go to 'My Expenses' 3. Update an existing expense A new statsd_count.expense.delete.update should appear PASSED

Tasks