Skip to content

Commit

Permalink
15352 gcp_cost: several changes
Browse files Browse the repository at this point in the history
### Predictive levels

Choosing predictive levels for gcp_cost resulted in a crash of the check. This
option was removed. If you have a rule using "Predictive levels" for gcp_cost it
will be updated to be "No Levels".

### Discovery

Previous to this change it was possible that not all projects were available for
monitoring.

### Query

The old query did not include credits based costs.

### Metrics

Each check now creates a metric of the current costs.

### Check output

Previously the check showed the accumulated costs for the current month, and the
total costs of the previous month. Each query costs money based on how many rows
are accessed, so showing the costs of the whole previous month is costing money,
so we decided to remove this output. As we added the metric, it is now possible
to visually compare the current month's costs with the previous month's cost.

Change-Id: I999acde7d8b81b906304dba51df78361d62942b4
  • Loading branch information
BenediktSeidl committed Jan 20, 2025
1 parent 1f9332e commit 881bdba
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .werks/15352.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[//]: # (werk v2)
# gcp_cost: several changes

key | value
---------- | ---
date | 2025-01-16T10:33:36+00:00
version | 2.5.0b1
class | feature
edition | cre
component | checks
level | 1
compatible | yes


### Predictive levels

Choosing predictive levels for gcp_cost resulted in a crash of the check. This
option was removed. If you have a rule using "Predictive levels" for gcp_cost it
will be updated to be "No Levels".

### Discovery

Previous to this change it was possible that not all projects were available for
monitoring.

### Query

The old query did not include credits based costs.

### Metrics

Each check now creates a metric of the current costs.

### Check output

Previously the check showed the accumulated costs for the current month, and the
total costs of the previous month. Each query costs money based on how many rows
are accessed, so showing the costs of the whole previous month is costing money,
so we decided to remove this output. As we added the metric, it is now possible
to visually compare the current month's costs with the previous month's cost.

0 comments on commit 881bdba

Please sign in to comment.