Cost Guardrails

Cost Guardrails scans an AWS account with 15 detectors and lists what you can save: idle or oversized resources, orphaned resources, cost spikes and trends, and reservations about to expire. Each finding shows the resource, the estimated monthly savings and the recommended action.

Before you start

  • The Pro or Enterprise plan (the trial includes it). On Free the screen shows “Feature not available on your current plan”. See Plans & limits.
  • An AWS connection in connected status (see Connect AWS) and, in your access profile, the Cost Guardrails section.
  • Changing thresholds and exclusions requires the owner or admin role: for everyone else the Thresholds button does not appear.
  • The Lambda memory detector needs Lambda Insights enabled on the functions.

1. Run a scan

  1. 1Go to Intelligence → Cost Guardrails. The subtitle reads “Proactive detection of spending patterns and savings recommendations”. With no scan yet it says “No scan has run yet. Use the "Scan" button to look for savings opportunities.”
    Cost Guardrails with no scan yet and the Scan button
  2. 2Check the strip above the results: “Analyzing <connection> (<account>) in region <region> — resources in other regions are not checked.” The scan uses the first connected AWS connection and only its region.
  3. 3Click Scan. While it runs the button reads Analyzing.... At the end you see Total Potential Savings, Active Findings and the list of findings.
    Cost Guardrails with total potential savings, active findings and the findings list, Scan highlighted

The 15 detectors (the names are the ones the app shows when one of them fails):

DetectorWhat it flagsThreshold (default)
Idle EC2Instances with average CPU and network traffic below the thresholdIdle CPU 5 %, under 10 KB of network per day, over Idle days (7)
Oversized EC2Instances in use with spare capacity; suggests a smaller typeRight-size CPU 20 %, over Right-size days (14)
Idle RDSDatabases with no connections0 connections over Idle days (7)
Unused EBS volumesVolumes not attached to any instance—
Unassociated Elastic IPsElastic IPs not associated with any resource—
Orphaned snapshotsSnapshots no AMI references, older than the thresholdSnapshot age 90 days
Cost spikesA service whose cost of the last 7 days rose against the previous 7; a single-day charge is reported apart and not projected as monthly savingsSpike 20 %
Old Lambda versionsOld published versions that take storage—
Idle load balancersLoad balancers with no requests0 requests over Idle days (7)
Rising trendA service whose spend grew four weeks in a rowWeekly trend 20 %
Growing storageS3, EBS and snapshots that grew four weeks in a row (it recommends reviewing lifecycle policies; it does not check them)Storage growth 10 % weekly
Inter-region transferLast week of inter-region transfer, projected to a monthUS$ 50/month
NAT Gateway trafficLast week of NAT Gateway data processing, projected to a monthUS$ 50/month
Lambda memoryFunctions whose peak memory used is below the threshold (Lambda Insights)Lambda memory used 50 %
Expiring reservations and Savings PlansEC2 and RDS Reserved Instances and Savings Plans about to expire30 days

Trend, storage, transfer, NAT and expiring-reservation findings do not carry an estimated saving (they show $0): they point at something growing or about to change, not at a resource to turn off.

2. Review a finding

  1. 1Filter by category with the buttons above the list: All, Idle Resources, Right-Sizing, Cost Spikes, Orphaned Resources, Reservations.
  2. 2Click a finding. Finding Details shows Resource, Category, Estimated Savings, Confidence (high, medium or low), the description, Detected and Recommended Action.
    Finding details with resource, category, estimated savings, confidence, description, detected date and recommended action
  3. 3Close it on each row with I fixed it (the resource was already stopped or deleted) or Dismiss (you are not interested). Only I fixed it is measured afterwards: the app confirms “Marked as resolved. Actual savings can be measured starting <date>…”, and the saving shows up in Intelligence → Savings Proposals, under Verified savings.
    Finding rows with the I fixed it button highlighted next to Dismiss

3. Thresholds and exclusions (owner or admin)

  1. 1Click Thresholds. The Threshold Settings dialog opens.
    Threshold settings dialog with the detection sliders
  2. 2Move the 12 sliders: Idle CPU (%), Right-size CPU (%), Spike (%), Snapshot age (days), Idle days, Right-size days, Weekly trend (%), Storage growth (% weekly), Inter-region transfer (US$/month), NAT Gateway (US$/month), Lambda memory used (%) and Expiring reservations (days). Each one explains under it whether raising or lowering it detects more.
  3. 3In Exclude services (comma separated) write services or resource types, for example EC2, Amazon CloudFront. A finding is excluded if its service or resource type contains that text (case does not matter).
  4. 4In Exclude by tag (key or key=value, comma separated) write, for example, env=dev, keelpilot-ignore. “Applies to tagged resources: EC2, EBS, snapshots, Elastic IPs and RDS. Excluded resources drop out on the next scan.”
  5. 5Click Save and scan again. Up to 50 entries per list. The values apply to the whole organization.

With Google Cloud

  • With a Google Cloud connection, the scan uses Google’s Recommender (idle VMs, disks and IPs, machine types, idle or oversized Cloud SQL, commitments and Cloud Run), orphaned snapshots, and the cost trend detectors over the billing export. The region is “all zones with resources in the project”.
  • It needs the Savings module (roles/recommender.viewer and roles/compute.viewer) and, for the cost detectors, the Costs module. See Connect Google Cloud.
  • Recommender allows 100 reads per day per organization without a Google support plan. KeelPilot caches results for 6 hours and caps calls per connection; when the quota runs out the scan comes out partial and does not mark anything as stale.
  • Savings from a resolved finding are measured on the billing export, like with AWS. Commitments (CUD) and exports in a currency other than USD are not measured.

How to check it works

  • After Scan, the list shows findings or “The scan finished and found no savings opportunities in <region> with the current thresholds.”
  • No yellow “Incomplete scan” warning: every detector could run.
  • After I fixed it, the finding leaves the list and the confirmation shows the date from which the saving can be measured.

Troubleshooting

“Incomplete scan: N of M checks could not run” and, on a detector, “— the role is missing the permission …”.

Cause: The AWS role of the connection cannot read what that detector needs. The results are partial.

Fix: Add the permission shown to the KeelPilotAccessRole role in the AWS account and scan again.

“The scan finished and found no savings opportunities in <region>…” but you know there are idle resources.

Cause: The scan only looks at the region of the connection.

Fix: Check the region in the strip above the results. To analyze another region you need a connection in that region (see Connect AWS).

The Thresholds button does not appear.

Cause: Your role is not owner or admin.

Fix: Ask an owner or admin of the organization to change the thresholds.

The Lambda memory detector never reports anything.

Cause: It uses the memory metrics of Lambda Insights; without them there is nothing to compare.

Fix: Enable Lambda Insights on the functions you want to analyze.

“Feature not available on your current plan”.

Cause: Cost Guardrails is part of Pro and Enterprise.

Fix: Upgrade the organization's plan (see Plans & limits).

Cost Guardrails only reads: it never stops or deletes resources. For changes with approval, see Cost Management (Apply with approval) and Runbooks.