Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Metric for Bundle Expiration #3

Open
4 of 5 tasks
aaronbrethorst opened this issue Jan 7, 2025 · 0 comments
Open
4 of 5 tasks

Add Metric for Bundle Expiration #3

aaronbrethorst opened this issue Jan 7, 2025 · 0 comments
Assignees

Comments

@aaronbrethorst
Copy link
Member

aaronbrethorst commented Jan 7, 2025

user story

As a transit manager,
I want to see how many days remain until my bundle expires,
so I can remember to update it

acceptance criteria

  • add a static GTFS parsing library: https://github.com/jamespfennell/gtfs
  • download the static GTFS once per day and cache it for subsequent metrics reporting
  • add a new metrics file/function at internal/metrics/bundle_expiration.go / CheckBundleExpiration(), and wire it up in api/metrics.go
  • Push days until bundle expiration into Prometheus (with a gauge status, I think)
  • Some tests verifying that this works as expected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants