Daily Neon spend forecast with Linear and Slack alerts
Every morning, see where your Neon database spend will land by month end and get alerted with the exact projects driving it, well before the invoice arrives.
Every morning at 7am, check whether my Neon spend is on track for the month and escalate before the invoice surprises me. I want to hear about a cost overrun while I can still do something about it, not when the bill lands.
Start with Neon List projects to enumerate every project on my account, then build a month to date picture with Retrieve project consumption metrics for the current billing period. If my account is on a legacy Scale, Business, or Enterprise plan, use Retrieve project consumption metrics (legacy plans) instead, so this works whichever plan I am on. Pull Retrieve branch consumption metrics for the per branch detail, and use Retrieve project details where you need a project's retention settings and compute configuration to interpret what you are seeing.
Project the month end total from the current run rate: take the spend so far, divide by the days elapsed in the billing period, and extend it across the full period. Report the month to date figure, the projected month end figure, and how both compare against my budget threshold of $500 per month. Treat that threshold as the number I am most likely to want to change, so make it easy to adjust.
When you work out what is driving the growth, do not simply rank by the largest absolute numbers. Neon's usage breaks compute down by branch, so the thing worth flagging is an individual branch showing far more active compute hours than its age would suggest. A two day old preview branch burning compute like a long lived production branch is the real signal, and it will be invisible in a plain top ten list. Compare each branch's compute against how long that branch has existed, call out the outliers relative to branch age, and report those alongside the largest absolute consumers. Say explicitly which projects and branches account for the increase compared with earlier in the month.
If the projected month end total crosses my budget threshold, create a Linear issue with Create Issue containing the full breakdown: month to date spend, projected month end total, how far over budget that lands, the top offending projects, and the branch level outliers with their age and their compute hours.
Before filing anything, use Linear Search Issues to find previous alerts raised by this workflow, so I am not handed an identical ticket every single day. Only create a new issue when the situation is newly over threshold, meaning the previous run was under budget or there is no open alert, or when it has materially worsened since the last one. Treat materially worsened as the projected total rising more than 10 percent since that issue was filed, or a project or branch newly entering the top offenders. If an open alert already exists and nothing has meaningfully changed, add a short comment to that existing issue with the updated numbers rather than opening a new one.
Then post a short Slack alert with Send a Message to my engineering channel, linking to that Linear issue. Keep it to a few lines carrying only the numbers that matter: month to date spend, projected month end total, how far over budget that is, and the single biggest driver. No preamble, no full table, because the detail belongs in the Linear issue.
If the projection is comfortably under my budget threshold, do nothing and stay silent. This workflow reports and escalates only. It must never delete, suspend, or otherwise modify any branch, compute endpoint, or project, even when a branch is obviously wasteful. Recommending that I clean something up is welcome, doing it for me is not.
Example output
What does this prompt do?
- Checks your Neon usage every morning and builds a month to date picture of what you have spent so far across all of your projects
- Projects where your bill will land at month end based on your current run rate, and compares that against the budget you set
- Pinpoints what is actually driving the growth, flagging branches that are burning far more compute than their age would suggest rather than just the biggest numbers
- Files a detailed Linear issue and posts a short Slack alert only when you are heading over budget, so you are not handed the same ticket every single day
What do I need to use this?
- A Neon account containing the databases you want to keep an eye on
- A Linear workspace, and the team where cost issues should be filed
- A Slack workspace and the channel that should receive the alert
- A monthly budget figure to measure your spend against
How can I customize it?
- Change the budget threshold, or set separate thresholds per project when some are expected to cost more than others
- Adjust the time it runs, or drop it from every morning to a couple of times a week
- Choose which Slack channel gets pinged and which Linear team the issue lands in
- Tune what counts as materially worse before a follow up issue is filed rather than skipped
FAQs
Does this work on the Neon Free plan?
Will this delete or change any of my databases?
Will I get an identical ticket every single morning?
How accurate is the month end projection?
Can it watch more than one Neon project at once?
Related templates
When your flight moves, your calendar times get corrected automatically and you get a Slack note naming the meetings you're about to miss.
Every 15 minutes, forwarded phishing reports get traced back to the server that really sent them, with a verdict in Slack and the worst senders reported.
Every weekday at 7am, sign in to the tender portals you track, filter new notices against your bid criteria, and open a deal for the ones worth chasing.
On the first Monday of every month, find the alarms nobody watches and the monitoring you quietly pay for, then get a costed cleanup list in Slack and Linear.
Every Monday, rank the week's matches by expected demand, put the big ones on your venue calendar, and post a rota-ready summary to Slack.
Every Tuesday we pull your best new reviews, draft social captions, email testimonials and product page quotes, then stage them in Notion for approval.
Stop finding out about Neon overspend from the invoice.
Get a daily forecast and an early warning while there is still time to do something about it.