This repository has been archived by the owner on Jan 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.yaml.j2
59 lines (59 loc) · 2.14 KB
/
config.yaml.j2
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
{% set apps = ["antivirus-api", "api", "admin-frontend", "briefs-frontend", "brief-responses-frontend", "buyer-frontend", "router", "search-api", "supplier-frontend", "user-frontend"] -%}
{% set environments = ["preview", "staging", "production"] -%}
{% set log_types = ["application", "nginx"] -%}
Metrics:
{% for environment in environments -%}
{% for app in apps -%}
{% for bucket in range(10) -%}
- Namespace: "DM-RequestTimeBuckets"
MetricName: "{{ environment }}-{{ app }}-request-times-{{ bucket }}"
Statistics: "Sum"
Dimensions: {}
Options:
Formatter: 'cloudwatch.request_time_buckets.{{ environment }}.{{ app }}.request_time_bucket_{{ bucket }}.%(statistic)s'
{% endfor -%}
{% endfor -%}
{% endfor -%}
{% for environment in environments -%}
{% for app in apps -%}
- Namespace: "DM-500s"
MetricName: "{{ environment }}{% if app != "nginx" %}-{{ app }}{% endif %}-nginx-500s"
Statistics: "Sum"
Dimensions: {}
Options:
Formatter: 'cloudwatch.application_500s.{{ environment }}.{{ app }}.500s.%(statistic)s'
- Namespace: "DM-APIClient-Retries"
MetricName: "{{ environment }}-{{ app }}-apiclient-retries"
Statistics: "Sum"
Dimensions: {}
Options:
Formatter: "cloudwatch.apiclient_retries.{{ environment }}.{{ app }}.retries.%(statistic)s"
{% endfor -%}
{% endfor -%}
{% for environment in environments -%}
- Namespace: "DM-429s"
MetricName: "{{ environment }}-router-nginx-429s"
Statistics: "Sum"
Dimensions: {}
Options:
Formatter: "cloudwatch.router_429s.{{ environment }}.router.429s.%(statistic)s"
- Namespace: "DM-SNS"
MetricName: "{{ environment }}-dropped-antivirus-sns"
Statistics: "Sum"
Dimensions: {}
Options:
Formatter: "cloudwatch.antivirus.sns.{{ environment }}.dropped-sns.%(statistic)s"
{% endfor -%}
{% for environment in environments -%}
{% for app in apps -%}
{% for log_type in log_types -%}
- Namespace: "AWS/Logs"
MetricName: "IncomingLogEvents"
Statistics: "Sum"
Dimensions:
LogGroupName: "{{ environment }}-{{ app }}-{{ log_type }}"
Options:
Formatter: "cloudwatch.incoming_log_events.{{ environment }}.{{ app }}.{{ log_type }}_logs.%(statistic)s"
{% endfor -%}
{% endfor -%}
{% endfor -%}