Budgets
Last updated
Last updated
Budgets are a way of establishing spend limits for your workloads. They can be created in moments using the Budgets dashboard.
Begin by selecting the New Budget button in the top right corner of the dashboard. A new window will display from the right side of your screen.
Provide the following fields:
Budget name: The name of your budget
Budget type: The type of workloads monitored under the budget; the supported options are Allocations, Assets, Cloud and Collection
Budget cap: The allotted amount of your budget per interval
The currency of your budget cannot be changed directly in the Budgets dashboard. To change currency type, go to Settings > Currency. Then, select Save at the bottom of the Settings page to apply changes. Changing currency type will affect cost displays across all of your Kubecost, not just the Budgets dashboard. Kubecost does not convert spending costs to other currency types; it will only change the symbol displayed next to the cost. For best results, configure your currency to what matches your spend.
Determine the length of your budget and reset date using the two dropdowns under the Budget cap text box. Budgets can be either Weekly or Monthly, and can reset on any day of the week/month. This means you don't need to recreate your budgets repeatedly and can align them with your schedules or processes.
You can configure one or more workload(s) to be targeted by the budget. From the first dropdown, select the desired workload category. Once the workload category has been selected, the dropdown menu should display all possible values for that category. Select 'Add Filter' to persist your choice. You can repeat for as many workload categories as you need to. There are multiple workload properties available for the Allocation, Asset and Cloud budgets. For Collection budgets, you can select one collection from the dropdown displaying all available collections. At the moment, Kubecost can only track spend for a single collection per budget.
Labels need to be provided in a key:value
format that describes the object that the budget applies to.
Budget Actions are an optional method of better monitoring your budgets. You can use Actions to create an alert when your budget hits a certain percentage threshold, and send out an email, Slack, and/or Microsoft Teams alert.
Budget Actions by default check against the limits every 8 hours.
To begin, select New Action. Select your Trigger percentage value (leaving your Trigger percentage at 100 will only alert you once the budget has been exceeded). Then, provide any emails or webhooks where you would like to receive your alerts. Select Save.
If you are interested in implementing additional alerts to monitor further spending or Kubecost health, read our Alerts doc.
Finalize your budget by selecting Save. Your budget has been created and should appear on the dashboard.
Once your budget has been created, it will immediately display your current spending. There are multiple ways of inspecting or adjusting your existing budgets:
Selecting Details in the row of a specific budget will open a window displaying all details for your budget including current spend, remaining budget, reset date and any existing Actions.
You can select View detailed breakdown to be redirected to the corresponding view on the Monitor page, or Download Budget Report to download a PDF report of the budget.
Selecting Edit in the row of a specific budget will open a window allowing you to edit all details about your budget, similar to when you initially created it.
Selecting Delete will open the Delete Budget window. Confirm by selecting Delete.
Enforce Kubecost Budgets to prevent overruns before they occur.