-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathcg-cost-regressions.yaml
More file actions
61 lines (52 loc) · 1.94 KB
/
Copy pathcg-cost-regressions.yaml
File metadata and controls
61 lines (52 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Orion regression-detection config for the metrics produced by
# cloud_governance/policy/common_policies/orion_cost_metrics_rollup.py (cloud-governance-orion-cost-metrics-index).
# One document per cost center per completed month; "account" here is the
# cost center's synthetic id, e.g. "CC<cost_center>" - not a cloud account name.
# Invoke once per cost center, e.g.:
# orion --es-server=<opensearch-url> \
# --benchmark-index=cloud-governance-orion-cost-metrics-index \
# --metadata-index=cloud-governance-orion-cost-metrics-index \
# --hunter-analyze \
# --input-vars='{"account": "CC<COST_CENTER>"}' \
# --config cg-cost-regressions.yaml
tests:
- name: cg-cost-regressions
metadata:
account.keyword: "{{ account }}"
metrics:
- name: totalCostIncrease
metric_of_interest: total_cost
direction: 1
threshold: 20
- name: totalCostDecrease
metric_of_interest: total_cost
direction: -1
threshold: 20
- name: awsCostIncrease
metric_of_interest: aws_cost
direction: 1
threshold: 20
- name: awsCostDecrease
metric_of_interest: aws_cost
direction: -1
threshold: 20
- name: azureCostIncrease
metric_of_interest: azure_cost
direction: 1
threshold: 20
- name: azureCostDecrease
metric_of_interest: azure_cost
direction: -1
threshold: 20
# gcp_cost intentionally omitted: if a cloud's cost-report feed for this
# cost center has gone stale (flatlined), a change-point entry for it
# only produces noise. Add gcpCostIncrease/gcpCostDecrease back once
# that feed is confirmed reporting fresh data again.
- name: ibmCostIncrease
metric_of_interest: ibm_cost
direction: 1
threshold: 20
- name: ibmCostDecrease
metric_of_interest: ibm_cost
direction: -1
threshold: 20