-
Notifications
You must be signed in to change notification settings - Fork 0
/
metrics-cost-explorer.yml
62 lines (58 loc) · 1.63 KB
/
metrics-cost-explorer.yml
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
62
ec2_instance_information:
description: EC2 instance information
service: ec2
paginator: describe_instances
paginator_args: |
{
"Filters":
[
{
"Name": "instance-state-name",
"Values": ["running","stopped"]
}
]
}
label_names:
- instance_id
- instance_type
- instance_state
- instance_lifecycle
search: |
Reservations[].Instances[].{instance_id: InstanceId, instance_type: InstanceType, instance_state: State.Name, instance_lifecycle: InstanceLifecycle, value: `1`}
# aws_services_information:
# description: AWS Services running in account
# service: ce
# method: get_cost_and_usage
# method_args: |
# {
# "TimePeriod": {
# "Start": (datetime.now() - timedelta(days=7)).strftime("%Y-%m-%d"),
# "End": datetime.now().strftime("%Y-%m-%d")
# },
# "Granularity": 'MONTHLY',
# "Metrics": ["BlendedCost","UnblendedCost"],
# "GroupBy": [
# {
# "Type": "DIMENSION",
# "Key": "SERVICE"
# }
# ]
# }
# label_names:
# - aws_service_name
# - blended_cost_amount
# - blended_cost_unit
# search: |
# ResultsByTime[].Groups[].{aws_service_name: Keys[0], blended_cost_amount: Metrics.UnblendedCost.Amount, blended_cost_unit: Metrics.UnblendedCost.Unit, value: `1`}
# recent_emr_cluster_ids:
# description: Recent EMR cluster ids
# service: emr
# paginator: list_clusters
# paginator_args: |
# {
# "CreatedAfter": datetime.now() - timedelta(weeks=4)
# }
# label_names:
# - id
# search: |
# Clusters[].{id: Id, value: `1`}