-
Notifications
You must be signed in to change notification settings - Fork 214
/
Copy pathotlp_metrics_cloudwatchlogs_eks_config.yaml
173 lines (173 loc) · 5.35 KB
/
otlp_metrics_cloudwatchlogs_eks_config.yaml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
exporters:
awsemf:
certificate_file_path: ""
detailed_metrics: false
dimension_rollup_option: NoDimensionRollup
disable_metric_extraction: false
eks_fargate_container_insights_enabled: false
endpoint: ""
enhanced_container_insights: false
imds_retries: 1
local_mode: false
log_group_name: /aws/cwagent
log_retention: 0
log_stream_name: ""
max_retries: 2
middleware: agenthealth/logs
namespace: CWAgent
no_verify_ssl: false
num_workers: 8
output_destination: cloudwatch
profile: ""
proxy_address: ""
region: us-west-2
request_timeout_seconds: 30
resource_arn: ""
resource_to_telemetry_conversion:
enabled: true
retain_initial_value_of_delta_metric: false
role_arn: ""
version: "0"
extensions:
agenthealth/logs:
is_usage_data_enabled: true
stats:
operations:
- PutLogEvents
usage_flags:
mode: K8E
region_type: ACJ
agenthealth/statuscode:
is_status_code_enabled: true
is_usage_data_enabled: true
stats:
usage_flags:
mode: K8E
region_type: ACJ
entitystore:
kubernetes_mode: K8sEC2
mode: ec2
region: us-west-2
server:
listen_addr: :4311
tls_ca_path: /etc/amazon-cloudwatch-observability-agent-client-cert/tls-ca.crt
tls_cert_path: /etc/amazon-cloudwatch-observability-agent-server-cert/server.crt
tls_key_path: /etc/amazon-cloudwatch-observability-agent-server-cert/server.key
processors:
awsentity/service/otlp:
entity_type: Service
kubernetes_mode: K8sEC2
platform: ec2
batch/hostOtlpMetrics/cloudwatchlogs:
metadata_cardinality_limit: 1000
send_batch_max_size: 0
send_batch_size: 8192
timeout: 30s
cumulativetodelta/hostOtlpMetrics/cloudwatchlogs:
exclude:
match_type: ""
include:
match_type: ""
initial_value: 2
max_staleness: 0s
k8sattributes/hostOtlpMetrics/cloudwatchlogs:
auth_type: serviceAccount
context: ""
exclude:
pods:
- name: jaeger-agent
- name: jaeger-collector
extract:
metadata:
- k8s.namespace.name
- k8s.pod.name
- k8s.replicaset.name
- k8s.deployment.name
- k8s.daemonset.name
- k8s.statefulset.name
- k8s.cronjob.name
- k8s.job.name
- k8s.node.name
filter:
namespace: ""
node: ""
node_from_env_var: K8S_NODE_NAME
kube_config_path: ""
passthrough: false
pod_association:
- sources:
- from: connection
name: ""
receivers:
otlp/metrics:
protocols:
grpc:
dialer:
timeout: 0s
endpoint: 0.0.0.0:1234
include_metadata: false
max_concurrent_streams: 0
max_recv_msg_size_mib: 0
read_buffer_size: 524288
tls:
ca_file: ""
cert_file: /path/to/cert.pem
client_ca_file: ""
client_ca_file_reload: false
include_system_ca_certs_pool: false
key_file: /path/to/key.pem
max_version: ""
min_version: ""
reload_interval: 0s
transport: tcp
write_buffer_size: 0
http:
endpoint: 0.0.0.0:2345
include_metadata: false
logs_url_path: /v1/logs
max_request_body_size: 0
metrics_url_path: /v1/metrics
tls:
ca_file: ""
cert_file: /path/to/cert.pem
client_ca_file: ""
client_ca_file_reload: false
include_system_ca_certs_pool: false
key_file: /path/to/key.pem
max_version: ""
min_version: ""
reload_interval: 0s
traces_url_path: /v1/traces
service:
extensions:
- agenthealth/logs
- agenthealth/statuscode
- entitystore
- server
pipelines:
metrics/hostOtlpMetrics/cloudwatchlogs:
exporters:
- awsemf
processors:
- cumulativetodelta/hostOtlpMetrics/cloudwatchlogs
- k8sattributes/hostOtlpMetrics/cloudwatchlogs
- awsentity/service/otlp
- batch/hostOtlpMetrics/cloudwatchlogs
receivers:
- otlp/metrics
telemetry:
logs:
development: false
disable_caller: false
disable_stacktrace: false
encoding: console
level: info
sampling:
enabled: true
initial: 2
thereafter: 500
tick: 10s
metrics:
address: ""
level: None
traces: {}