-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy path_otel-container-insights-config.tpl
More file actions
1034 lines (961 loc) · 45.6 KB
/
Copy path_otel-container-insights-config.tpl
File metadata and controls
1034 lines (961 loc) · 45.6 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
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{{- define "otel-container-insights.config" -}}
extensions:
sigv4auth/cw_k8s_ci_v0_metrics_dest:
region: {{ .Values.region }}
service: monitoring
{{- if .Values.otelContainerInsights.logs.enabled }}
sigv4auth/cw_k8s_ci_v0_logs_dest:
region: {{ .Values.region }}
service: logs
awscloudwatchlogsprovisioner/cw_k8s_ci_v0_logs:
region: {{ .Values.region }}
additional_auth: sigv4auth/cw_k8s_ci_v0_logs_dest
{{- end }}
receivers:
{{- if .Values.nodeExporter.enabled }}
prometheus/cw_k8s_ci_v0_node_exporter:
config:
scrape_configs:
- job_name: node-exporter
scrape_interval: {{ .Values.otelContainerInsights.metricResolution }}
scrape_timeout: {{ include "otel-container-insights.scrapeTimeout" . }}
scheme: https
tls_config:
ca_file: /etc/amazon-cloudwatch-observability-agent-client-cert/tls-ca.crt
static_configs:
- targets:
- {{ include "node-exporter.name" . }}-service:9487
{{- end }}
prometheus/cw_k8s_ci_v0_cadvisor:
config:
scrape_configs:
- job_name: cadvisor
scrape_interval: {{ .Values.otelContainerInsights.metricResolution }}
scrape_timeout: {{ include "otel-container-insights.scrapeTimeout" . }}
scheme: https
tls_config:
insecure_skip_verify: true
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
metrics_path: /metrics/cadvisor
static_configs:
- targets:
- ${env:HOST_IP}:10250
{{- if or .Values.otelContainerInsights.serviceMonitor.enabled .Values.otelContainerInsights.podMonitor.enabled }}
# ServiceMonitor/PodMonitor scraping via the Target Allocator (prometheusCR discovery).
# The Target Allocator deployed for the targetAgent serves the scrape jobs derived from
# ServiceMonitor/PodMonitor CRs; this receiver pulls this collector's assigned shard and
# routes the series into the v2 OTLP pipeline (-> CloudWatch/Zeus). Requires the Target
# Allocator + prometheusCR to be enabled for the targetAgent and the POD_NAME env (set below).
prometheus/cw_k8s_ci_v0_prometheuscr:
target_allocator:
endpoint: https://{{ .Values.otelContainerInsights.targetAgent }}-target-allocator-service:80
interval: {{ .Values.otelContainerInsights.metricResolution }}
collector_id: ${env:POD_NAME}
tls:
ca_file: /etc/amazon-cloudwatch-observability-agent-cert/tls-ca.crt
cert_file: /etc/amazon-cloudwatch-observability-agent-ta-client-cert/client.crt
key_file: /etc/amazon-cloudwatch-observability-agent-ta-client-cert/client.key
{{- end }}
{{- if .Values.dcgmExporter.enabled }}
prometheus/cw_k8s_ci_v0_dcgm:
config:
scrape_configs:
- job_name: dcgm-exporter
scrape_interval: {{ .Values.otelContainerInsights.metricResolution }}
scrape_timeout: {{ include "otel-container-insights.scrapeTimeout" . }}
scheme: https
tls_config:
ca_file: /etc/amazon-cloudwatch-observability-agent-client-cert/tls-ca.crt
static_configs:
- targets:
- dcgm-exporter-service:9400
{{- end }}
{{- if .Values.neuronMonitor.enabled }}
prometheus/cw_k8s_ci_v0_neuron:
config:
scrape_configs:
- job_name: neuron-monitor
scrape_interval: {{ .Values.otelContainerInsights.metricResolution }}
scrape_timeout: {{ include "otel-container-insights.scrapeTimeout" . }}
scheme: https
tls_config:
ca_file: /etc/amazon-cloudwatch-observability-agent-client-cert/tls-ca.crt
static_configs:
- targets:
- neuron-monitor-service:8000
{{- end }}
awsefareceiver/cw_k8s_ci_v0:
collection_interval: {{ .Values.otelContainerInsights.metricResolution }}
prometheus/cw_k8s_ci_v0_ebs_csi_node:
config:
scrape_configs:
- job_name: ebs-csi-node
scrape_interval: {{ .Values.otelContainerInsights.metricResolution }}
scrape_timeout: {{ include "otel-container-insights.scrapeTimeout" . }}
kubernetes_sd_configs:
- role: pod
namespaces:
names:
- kube-system
relabel_configs:
- source_labels: [__meta_kubernetes_pod_label_app]
regex: ebs-csi-node
action: keep
- source_labels: [__meta_kubernetes_pod_node_name]
regex: ${env:K8S_NODE_NAME}
action: keep
- source_labels: [__meta_kubernetes_pod_container_port_name]
regex: metrics
action: keep
prometheus/cw_k8s_ci_v0_lis_csi_node:
config:
scrape_configs:
- job_name: lis-csi-node
scrape_interval: {{ .Values.otelContainerInsights.metricResolution }}
scrape_timeout: {{ include "otel-container-insights.scrapeTimeout" . }}
kubernetes_sd_configs:
- role: pod
namespaces:
names:
- kube-system
relabel_configs:
- source_labels: [__meta_kubernetes_pod_label_app]
regex: ec2-instance-store-plugin
action: keep
- source_labels: [__meta_kubernetes_pod_node_name]
regex: ${env:K8S_NODE_NAME}
action: keep
- source_labels: [__meta_kubernetes_pod_container_port_name]
regex: metrics
action: keep
kubeletstats/cw_k8s_ci_v0:
auth_type: serviceAccount
collection_interval: {{ .Values.otelContainerInsights.metricResolution }}
endpoint: "https://${env:HOST_IP}:10250"
insecure_skip_verify: true
metric_groups:
- pod
- container
- node
metrics:
k8s.pod.cpu_limit_utilization:
enabled: true
k8s.pod.cpu_request_utilization:
enabled: true
k8s.pod.memory_limit_utilization:
enabled: true
k8s.pod.memory_request_utilization:
enabled: true
k8s.container.cpu_limit_utilization:
enabled: true
k8s.container.cpu_request_utilization:
enabled: true
k8s.container.memory_limit_utilization:
enabled: true
k8s.container.memory_request_utilization:
enabled: true
k8s.pod.cpu.usage:
enabled: true
container.cpu.usage:
enabled: true
k8s.node.cpu.usage:
enabled: true
k8s.pod.uptime:
enabled: true
container.uptime:
enabled: true
k8s.node.uptime:
enabled: true
{{- if .Values.otelContainerInsights.logs.enabled }}
# ── CI Logs receivers ──
filelog/cw_k8s_ci_v0_app:
include:
- /var/log/containers/*.log
exclude:
- /var/log/containers/cloudwatch-agent*
- /var/log/containers/fluent-bit*
# aws-node and kube-proxy are dataplane components — excluded to match
# FluentBit's existing Exclude_Path behavior.
- /var/log/containers/aws-node*
- /var/log/containers/kube-proxy*
# No checkpoint persistence — logs during agent downtime are lost.
# Filestorage support is tracked in a follow-up PR.
start_at: end
include_file_path: true
include_file_name: false
max_concurrent_files: 100
operators:
- type: regex_parser
id: extract_metadata_from_filepath
regex: '^.*\/(?P<pod>[^_]+)_(?P<namespace>[^_]+)_(?P<container>.+)-[a-f0-9]{64}\.log$'
parse_from: attributes["log.file.path"]
parse_to: resource
- type: move
from: resource.pod
to: resource["k8s.pod.name"]
- type: move
from: resource.namespace
to: resource["k8s.namespace.name"]
- type: move
from: resource.container
to: resource["k8s.container.name"]
- id: parse_container_log
type: container_log_parser
filelog/cw_k8s_ci_v0_node:
include:
- /var/log/messages
- /var/log/dmesg
- /var/log/secure
# No checkpoint persistence — logs during agent downtime are lost.
# Filestorage support is tracked in a follow-up PR.
start_at: end
include_file_path: true
include_file_name: false
max_concurrent_files: 100
{{- end }}
processors:
filter/cw_k8s_ci_v0_scrape_metadata:
error_mode: ignore
metrics:
metric:
- IsMatch(name, "^(up|scrape_duration_seconds|scrape_samples_scraped|scrape_samples_post_metric_relabeling|scrape_series_added)$")
transform/cw_k8s_ci_v0_set_unit:
error_mode: ignore
metric_statements:
- context: metric
statements:
# Time
- set(unit, "s") where IsMatch(name, ".*_seconds(_total)?$")
- set(unit, "ms") where IsMatch(name, ".*_milliseconds(_total)?$")
- set(unit, "us") where IsMatch(name, ".*_microseconds(_total)?$")
- set(unit, "ns") where IsMatch(name, ".*_nanoseconds(_total)?$")
# Bytes
- set(unit, "By") where IsMatch(name, ".*_bytes(_total)?$")
- set(unit, "KBy") where IsMatch(name, ".*_kilobytes(_total)?$")
- set(unit, "MBy") where IsMatch(name, ".*_megabytes(_total)?$")
- set(unit, "GBy") where IsMatch(name, ".*_gigabytes(_total)?$")
- set(unit, "KiBy") where IsMatch(name, ".*_kibibytes(_total)?$")
- set(unit, "MiBy") where IsMatch(name, ".*_mebibytes(_total)?$")
- set(unit, "GiBy") where IsMatch(name, ".*_gibibytes(_total)?$")
# Other
- set(unit, "Cel") where IsMatch(name, ".*_celsius$")
- set(unit, "Hz") where IsMatch(name, ".*_hertz$")
- set(unit, "1") where IsMatch(name, ".*_ratio$")
- set(unit, "%") where IsMatch(name, ".*_percent$")
- set(unit, "V") where IsMatch(name, ".*_volts$")
- set(unit, "W") where IsMatch(name, ".*_watts$")
- set(unit, "J") where IsMatch(name, ".*_joules$")
- set(unit, "A") where IsMatch(name, ".*_amperes$")
- set(unit, "m") where IsMatch(name, ".*_meters(_total)?$")
# Counters with only _total suffix (dimensionless count)
- set(unit, "1") where unit == "" and IsMatch(name, ".*_total$")
# DCGM explicit mappings (no suffix convention)
- set(unit, "%") where name == "DCGM_FI_DEV_GPU_UTIL"
- set(unit, "%") where name == "DCGM_FI_DEV_MEM_COPY_UTIL"
- set(unit, "%") where name == "DCGM_FI_PROF_PIPE_TENSOR_ACTIVE"
- set(unit, "MiBy") where name == "DCGM_FI_DEV_FB_USED"
- set(unit, "MiBy") where name == "DCGM_FI_DEV_FB_FREE"
- set(unit, "MiBy") where name == "DCGM_FI_DEV_FB_TOTAL"
- set(unit, "Cel") where name == "DCGM_FI_DEV_GPU_TEMP"
- set(unit, "W") where name == "DCGM_FI_DEV_POWER_USAGE"
- set(unit, "MHz") where name == "DCGM_FI_DEV_SM_CLOCK"
# Neuron explicit mappings
- set(unit, "By") where IsMatch(name, "^neuroncore_memory_usage_.*")
transform/cw_k8s_ci_v0_set_cluster_name:
error_mode: ignore
metric_statements:
- context: datapoint
statements:
- set(resource.attributes["k8s.cluster.name"], "{{ .Values.clusterName }}")
{{- if .Values.nodeExporter.enabled }}
transform/cw_k8s_ci_v0_set_scope_node_exporter:
error_mode: ignore
metric_statements:
- context: scope
statements:
- set(scope.name, "github.com/prometheus/node_exporter")
- set(scope.version, "{{ include "node-exporter.scopeVersion" . }}")
- set(scope.schema_url, "")
- set(attributes["cloudwatch.source"], "cloudwatch-agent")
- set(attributes["cloudwatch.solution"], "k8s-otel-container-insights")
- set(attributes["cloudwatch.pipeline"], "node-exporter")
{{- end }}
transform/cw_k8s_ci_v0_set_scope_cadvisor:
error_mode: ignore
metric_statements:
- context: scope
statements:
- set(scope.name, "github.com/google/cadvisor")
- set(scope.schema_url, "")
- set(attributes["cloudwatch.source"], "cloudwatch-agent")
- set(attributes["cloudwatch.solution"], "k8s-otel-container-insights")
- set(attributes["cloudwatch.pipeline"], "cadvisor")
{{- if .Values.dcgmExporter.enabled }}
transform/cw_k8s_ci_v0_set_scope_dcgm:
error_mode: ignore
metric_statements:
- context: scope
statements:
- set(scope.name, "github.com/NVIDIA/dcgm-exporter")
- set(scope.version, "{{ .Values.dcgmExporter.image.tag }}")
- set(scope.schema_url, "")
- set(attributes["cloudwatch.source"], "cloudwatch-agent")
- set(attributes["cloudwatch.solution"], "k8s-otel-container-insights")
- set(attributes["cloudwatch.pipeline"], "dcgm")
{{- end }}
{{- if .Values.neuronMonitor.enabled }}
transform/cw_k8s_ci_v0_set_scope_neuron_monitor:
error_mode: ignore
metric_statements:
- context: scope
statements:
- set(scope.name, "awsneuron")
- set(scope.version, "{{ .Values.neuronMonitor.image.tag }}")
- set(scope.schema_url, "")
- set(attributes["cloudwatch.source"], "cloudwatch-agent")
- set(attributes["cloudwatch.solution"], "k8s-otel-container-insights")
- set(attributes["cloudwatch.pipeline"], "neuron-monitor")
{{- end }}
transform/cw_k8s_ci_v0_set_scope_efa:
error_mode: ignore
metric_statements:
- context: scope
statements:
- set(scope.schema_url, "")
- set(attributes["cloudwatch.source"], "cloudwatch-agent")
- set(attributes["cloudwatch.solution"], "k8s-otel-container-insights")
- set(attributes["cloudwatch.pipeline"], "efa")
transform/cw_k8s_ci_v0_set_scope_prometheuscr:
error_mode: ignore
metric_statements:
- context: scope
statements:
- set(scope.schema_url, "")
- set(attributes["cloudwatch.source"], "cloudwatch-agent")
- set(attributes["cloudwatch.solution"], "k8s-otel-container-insights")
- set(attributes["cloudwatch.pipeline"], "prometheus-cr")
transform/cw_k8s_ci_v0_set_scope_ebs_csi:
error_mode: ignore
metric_statements:
- context: scope
statements:
- set(scope.schema_url, "")
- set(attributes["cloudwatch.source"], "cloudwatch-agent")
- set(attributes["cloudwatch.solution"], "k8s-otel-container-insights")
- set(attributes["cloudwatch.pipeline"], "ebs-csi")
transform/cw_k8s_ci_v0_set_scope_lis_csi:
error_mode: ignore
metric_statements:
- context: scope
statements:
- set(scope.schema_url, "")
- set(attributes["cloudwatch.source"], "cloudwatch-agent")
- set(attributes["cloudwatch.solution"], "k8s-otel-container-insights")
- set(attributes["cloudwatch.pipeline"], "lis-csi")
transform/cw_k8s_ci_v0_set_scope_kubeletstats:
error_mode: ignore
metric_statements:
- context: scope
statements:
- set(scope.schema_url, "")
- set(attributes["cloudwatch.source"], "cloudwatch-agent")
- set(attributes["cloudwatch.solution"], "k8s-otel-container-insights")
- set(attributes["cloudwatch.pipeline"], "kubeletstats")
transform/cw_k8s_ci_v0_set_node_name:
error_mode: ignore
metric_statements:
- context: datapoint
statements:
- set(attributes["node_name"], "${env:K8S_NODE_NAME}")
transform/cw_k8s_ci_v0_promote_node_name:
error_mode: ignore
metric_statements:
- context: datapoint
statements:
- set(resource.attributes["k8s.node.name"], attributes["node_name"]) where attributes["node_name"] != nil
resourcedetection/cw_k8s_ci_v0:
detectors: [eks, ec2]
ec2:
resource_attributes:
host.id: { enabled: true }
host.type: { enabled: true }
host.name: { enabled: true }
host.image.id: { enabled: true }
cloud.provider: { enabled: true }
cloud.platform: { enabled: true }
cloud.region: { enabled: true }
cloud.availability_zone: { enabled: true }
cloud.account.id: { enabled: true }
transform/cw_k8s_ci_v0_clear_schema_url:
error_mode: ignore
metric_statements:
- context: resource
statements:
- set(resource.schema_url, "")
k8sattributes/cw_k8s_ci_v0_node:
auth_type: serviceAccount
passthrough: false
filter:
node_from_env_var: K8S_NODE_NAME
extract:
metadata:
- k8s.node.name
labels:
- tag_name: "k8s.node.label.$$$1"
key_regex: "(.*)"
from: node
pod_association:
- sources:
- from: resource_attribute
name: k8s.node.name
k8sattributes/cw_k8s_ci_v0_pod:
auth_type: serviceAccount
passthrough: false
filter:
node_from_env_var: K8S_NODE_NAME
extract:
metadata:
- k8s.pod.uid
- k8s.node.name
- k8s.deployment.name
- k8s.statefulset.name
- k8s.daemonset.name
- k8s.replicaset.name
- k8s.job.name
- k8s.cronjob.name
labels:
# $$$1 -> literal $1 backreference (group 1 = label key). The agent's OTel confmap
# resolves it twice (expandconverter + resolver), each collapsing $$->$; Helm leaves it as-is.
- tag_name: "k8s.pod.label.$$$1"
key_regex: "(.*)"
from: pod
pod_association:
- sources:
- from: resource_attribute
name: k8s.pod.name
- from: resource_attribute
name: k8s.namespace.name
awsattributelimit/cw_k8s_ci_v0:
max_total_attributes: 150
unconditional_removal_prefixes:
- "k8s.node.label.feature.node.kubernetes.io/"
- "k8s.node.label.beta.kubernetes.io/"
- "k8s.node.label.failure-domain.beta.kubernetes.io/"
- "k8s.node.label.alpha.eksctl.io/"
unconditional_removal_keys:
- "k8s.node.label.topology.kubernetes.io/region"
- "k8s.node.label.topology.kubernetes.io/zone"
- "k8s.node.label.topology.ebs.csi.aws.com/zone"
- "k8s.node.label.node.kubernetes.io/instance-type"
- "k8s.node.label.kubernetes.io/hostname"
- "k8s.node.label.helm.sh/chart"
- "k8s.node.label.release"
- "k8s.node.label.eks.amazonaws.com/nodegroup-image"
- "k8s.node.label.k8s.io/cloud-provider-aws"
- "k8s.node.label.eks.amazonaws.com/sourceLaunchTemplateId"
- "k8s.node.label.eks.amazonaws.com/sourceLaunchTemplateVersion"
- "k8s.pod.label.pod-template-hash"
- "k8s.pod.label.controller-revision-hash"
transform/cw_k8s_ci_v0_set_cloud_resource_id:
error_mode: ignore
metric_statements:
- context: resource
statements:
- set(resource.attributes["cloud.resource_id"], Concat(["arn:aws:eks:", resource.attributes["cloud.region"], ":", resource.attributes["cloud.account.id"], ":cluster/", resource.attributes["k8s.cluster.name"]], ""))
where resource.attributes["cloud.region"] != nil and resource.attributes["cloud.account.id"] != nil and resource.attributes["k8s.cluster.name"] != nil
metricstarttime/cw_k8s_ci_v0:
transform/cw_k8s_ci_v0_set_workload:
error_mode: ignore
metric_statements:
- context: datapoint
statements:
- set(resource.attributes["k8s.workload.name"], resource.attributes["k8s.deployment.name"]) where resource.attributes["k8s.deployment.name"] != nil
- set(resource.attributes["k8s.workload.type"], "Deployment") where resource.attributes["k8s.deployment.name"] != nil
- set(resource.attributes["k8s.workload.name"], resource.attributes["k8s.statefulset.name"]) where resource.attributes["k8s.workload.name"] == nil and resource.attributes["k8s.statefulset.name"] != nil
- set(resource.attributes["k8s.workload.type"], "StatefulSet") where resource.attributes["k8s.statefulset.name"] != nil and resource.attributes["k8s.workload.type"] == nil
- set(resource.attributes["k8s.workload.name"], resource.attributes["k8s.daemonset.name"]) where resource.attributes["k8s.workload.name"] == nil and resource.attributes["k8s.daemonset.name"] != nil
- set(resource.attributes["k8s.workload.type"], "DaemonSet") where resource.attributes["k8s.daemonset.name"] != nil and resource.attributes["k8s.workload.type"] == nil
- set(resource.attributes["k8s.workload.name"], resource.attributes["k8s.job.name"]) where resource.attributes["k8s.workload.name"] == nil and resource.attributes["k8s.job.name"] != nil
- set(resource.attributes["k8s.workload.type"], "Job") where resource.attributes["k8s.job.name"] != nil and resource.attributes["k8s.workload.type"] == nil
- set(resource.attributes["k8s.workload.name"], resource.attributes["k8s.cronjob.name"]) where resource.attributes["k8s.workload.name"] == nil and resource.attributes["k8s.cronjob.name"] != nil
- set(resource.attributes["k8s.workload.type"], "CronJob") where resource.attributes["k8s.cronjob.name"] != nil and resource.attributes["k8s.workload.type"] == nil
- set(resource.attributes["k8s.workload.name"], resource.attributes["k8s.replicaset.name"]) where resource.attributes["k8s.workload.name"] == nil and resource.attributes["k8s.replicaset.name"] != nil
- set(resource.attributes["k8s.workload.type"], "ReplicaSet") where resource.attributes["k8s.replicaset.name"] != nil and resource.attributes["k8s.workload.type"] == nil
batch/cw_k8s_ci_v0_metrics_dest:
send_batch_size: 500
send_batch_max_size: 500
timeout: 10s
filter/cw_k8s_ci_v0_cadvisor_empty:
error_mode: ignore
metrics:
datapoint:
- attributes["container"] == "" and attributes["pod"] == ""
- attributes["container"] == "" and attributes["pod"] == nil
- attributes["container"] == nil and attributes["pod"] == ""
- attributes["container"] == nil and attributes["pod"] == nil
filter/cw_k8s_ci_v0_cadvisor_pod:
error_mode: ignore
metrics:
datapoint:
- attributes["container"] == "POD"
groupbyattrs/cw_k8s_ci_v0_cadvisor:
keys:
- container
- pod
- namespace
transform/cw_k8s_ci_v0_cadvisor_promote:
error_mode: ignore
metric_statements:
- context: resource
statements:
- set(attributes["k8s.container.name"], attributes["container"]) where attributes["container"] != nil and attributes["container"] != ""
- set(attributes["k8s.pod.name"], attributes["pod"]) where attributes["pod"] != nil
- set(attributes["k8s.namespace.name"], attributes["namespace"]) where attributes["namespace"] != nil
- context: datapoint
statements:
# Restore raw Prometheus names to datapoint scope (groupbyattrs removed them).
- set(attributes["container"], resource.attributes["container"]) where resource.attributes["container"] != nil
- set(attributes["pod"], resource.attributes["pod"]) where resource.attributes["pod"] != nil
- set(attributes["namespace"], resource.attributes["namespace"]) where resource.attributes["namespace"] != nil
{{- if .Values.dcgmExporter.enabled }}
groupbyattrs/cw_k8s_ci_v0_dcgm:
keys:
- pod
- namespace
- container
transform/cw_k8s_ci_v0_dcgm_promote:
error_mode: ignore
metric_statements:
- context: resource
statements:
- set(attributes["k8s.pod.name"], attributes["pod"]) where attributes["pod"] != nil
- set(attributes["k8s.namespace.name"], attributes["namespace"]) where attributes["namespace"] != nil
- set(attributes["k8s.container.name"], attributes["container"]) where attributes["container"] != nil
- context: datapoint
statements:
# Restore raw Prometheus names to datapoint scope (groupbyattrs removed them).
# Raw labels are still at resource scope (not deleted), so copy them back down.
- set(attributes["pod"], resource.attributes["pod"]) where resource.attributes["pod"] != nil
- set(attributes["namespace"], resource.attributes["namespace"]) where resource.attributes["namespace"] != nil
- set(attributes["container"], resource.attributes["container"]) where resource.attributes["container"] != nil
# Clean up leftover datapoint attributes not needed downstream.
- delete_key(attributes, "Hostname") where attributes["Hostname"] != nil
- delete_key(attributes, "pci_bus_id") where attributes["pci_bus_id"] != nil
{{- end }}
{{- if .Values.neuronMonitor.enabled }}
filter/cw_k8s_ci_v0_neuron:
error_mode: ignore
metrics:
metric:
- IsMatch(name, "^(neuron|execution_|hardware_ecc_)") != true
awsneuron/cw_k8s_ci_v0:
groupbyattrs/cw_k8s_ci_v0_neuron:
keys:
- k8s.pod.name
- k8s.namespace.name
- k8s.container.name
transform/cw_k8s_ci_v0_neuron_promote:
error_mode: ignore
metric_statements:
- context: datapoint
statements:
- set(resource.attributes["k8s.pod.name"], attributes["k8s.pod.name"]) where attributes["k8s.pod.name"] != nil
- set(resource.attributes["k8s.namespace.name"], attributes["k8s.namespace.name"]) where attributes["k8s.namespace.name"] != nil
- set(resource.attributes["k8s.container.name"], attributes["k8s.container.name"]) where attributes["k8s.container.name"] != nil
- set(resource.attributes["aws.neuron.runtime.tag"], attributes["runtime_tag"]) where attributes["runtime_tag"] != nil
- delete_key(attributes, "k8s.pod.name") where attributes["k8s.pod.name"] != nil
- delete_key(attributes, "k8s.namespace.name") where attributes["k8s.namespace.name"] != nil
- delete_key(attributes, "k8s.container.name") where attributes["k8s.container.name"] != nil
- delete_key(attributes, "runtime_tag") where attributes["runtime_tag"] != nil
transform/cw_k8s_ci_v0_neuron_hw_attrs:
error_mode: ignore
metric_statements:
- context: datapoint
statements:
- set(attributes["aws.neuron.device"], attributes["neurondevice"]) where attributes["neurondevice"] != nil
- set(attributes["aws.neuron.core"], attributes["neuroncore"]) where attributes["neuroncore"] != nil
- delete_key(attributes, "neuroncore") where attributes["neuroncore"] != nil
- delete_key(attributes, "neurondevice") where attributes["neurondevice"] != nil
- delete_key(attributes, "instance_type") where attributes["instance_type"] != nil
{{- end }}
awsdevicepodcorrelation/cw_k8s_ci_v0:
device_types:
- name: neuron-by-core
device_id_attribute: neuroncore
resource_names:
- aws.amazon.com/neuroncore
- name: neuron-by-device
device_id_attribute: neurondevice
resource_names:
- aws.amazon.com/neurondevice
- aws.amazon.com/neuron
- name: efa
device_id_attribute: aws.efa.device
resource_names:
- vpc.amazonaws.com/efa
transform/cw_k8s_ci_v0_efa_promote:
error_mode: ignore
metric_statements:
- context: datapoint
statements:
- set(resource.attributes["k8s.pod.name"], attributes["k8s.pod.name"]) where attributes["k8s.pod.name"] != nil
- set(resource.attributes["k8s.namespace.name"], attributes["k8s.namespace.name"]) where attributes["k8s.namespace.name"] != nil
- set(resource.attributes["k8s.container.name"], attributes["k8s.container.name"]) where attributes["k8s.container.name"] != nil
- delete_key(attributes, "k8s.pod.name") where attributes["k8s.pod.name"] != nil
- delete_key(attributes, "k8s.namespace.name") where attributes["k8s.namespace.name"] != nil
- delete_key(attributes, "k8s.container.name") where attributes["k8s.container.name"] != nil
transform/cw_k8s_ci_v0_ebs_csi_promote:
error_mode: ignore
metric_statements:
- context: datapoint
statements:
- set(resource.attributes["instance_id"], attributes["instance_id"]) where attributes["instance_id"] != nil
- set(resource.attributes["volume_id"], attributes["volume_id"]) where attributes["volume_id"] != nil
- delete_key(attributes, "instance_id") where attributes["instance_id"] != nil
- delete_key(attributes, "volume_id") where attributes["volume_id"] != nil
transform/cw_k8s_ci_v0_lis_csi_promote:
error_mode: ignore
metric_statements:
- context: datapoint
statements:
- set(resource.attributes["instance_id"], attributes["instance_id"]) where attributes["instance_id"] != nil
- set(resource.attributes["volume_id"], attributes["volume_id"]) where attributes["volume_id"] != nil
- delete_key(attributes, "instance_id") where attributes["instance_id"] != nil
- delete_key(attributes, "volume_id") where attributes["volume_id"] != nil
{{- if .Values.otelContainerInsights.logs.enabled }}
# ── CI Logs processors ──
transform/cw_k8s_ci_v0_logs_set_workload:
error_mode: ignore
log_statements:
- context: resource
statements:
# Derive k8s.workload.name and k8s.workload.type — matches metrics'
# transform/cw_k8s_ci_v0_set_workload exactly so metrics and logs use
# the same workload identity for the same pod.
- set(attributes["k8s.workload.name"], attributes["k8s.deployment.name"]) where attributes["k8s.deployment.name"] != nil
- set(attributes["k8s.workload.type"], "Deployment") where attributes["k8s.deployment.name"] != nil
- set(attributes["k8s.workload.name"], attributes["k8s.statefulset.name"]) where attributes["k8s.workload.name"] == nil and attributes["k8s.statefulset.name"] != nil
- set(attributes["k8s.workload.type"], "StatefulSet") where attributes["k8s.statefulset.name"] != nil and attributes["k8s.workload.type"] == nil
- set(attributes["k8s.workload.name"], attributes["k8s.daemonset.name"]) where attributes["k8s.workload.name"] == nil and attributes["k8s.daemonset.name"] != nil
- set(attributes["k8s.workload.type"], "DaemonSet") where attributes["k8s.daemonset.name"] != nil and attributes["k8s.workload.type"] == nil
- set(attributes["k8s.workload.name"], attributes["k8s.job.name"]) where attributes["k8s.workload.name"] == nil and attributes["k8s.job.name"] != nil
- set(attributes["k8s.workload.type"], "Job") where attributes["k8s.job.name"] != nil and attributes["k8s.workload.type"] == nil
- set(attributes["k8s.workload.name"], attributes["k8s.cronjob.name"]) where attributes["k8s.workload.name"] == nil and attributes["k8s.cronjob.name"] != nil
- set(attributes["k8s.workload.type"], "CronJob") where attributes["k8s.cronjob.name"] != nil and attributes["k8s.workload.type"] == nil
- set(attributes["k8s.workload.name"], attributes["k8s.replicaset.name"]) where attributes["k8s.workload.name"] == nil and attributes["k8s.replicaset.name"] != nil
- set(attributes["k8s.workload.type"], "ReplicaSet") where attributes["k8s.replicaset.name"] != nil and attributes["k8s.workload.type"] == nil
# Derive service.name from k8s.workload.name (OTEL logs semconv).
# Logs need service.name; metrics use k8s.workload.name directly.
- set(attributes["service.name"], attributes["k8s.workload.name"]) where attributes["service.name"] == nil and attributes["k8s.workload.name"] != nil
transform/cw_k8s_ci_v0_logs_set_cluster_and_node:
error_mode: ignore
log_statements:
- context: resource
statements:
- set(attributes["k8s.cluster.name"], "{{ .Values.clusterName }}")
- set(attributes["k8s.node.name"], "${env:K8S_NODE_NAME}")
transform/cw_k8s_ci_v0_logs_set_cloud_resource_id:
error_mode: ignore
log_statements:
- context: resource
statements:
- set(attributes["cloud.resource_id"], Concat(["arn:aws:eks:", attributes["cloud.region"], ":", attributes["cloud.account.id"], ":cluster/", attributes["k8s.cluster.name"]], ""))
where attributes["cloud.region"] != nil and attributes["cloud.account.id"] != nil and attributes["k8s.cluster.name"] != nil
transform/cw_k8s_ci_v0_logs_clear_schema_url:
error_mode: ignore
log_statements:
- context: resource
statements:
- set(resource.schema_url, "")
# Scope transforms — tag each logs pipeline with cloudwatch.source/solution/pipeline
# for backend attribution. Matches the metrics pipeline's transform/set_scope_*
# processors so logs are attributed identically to metrics.
# scope.name is intentionally not set — the metrics pipeline sets it only for
# pipelines with a well-known source library (e.g., github.com/google/cadvisor).
# filelog receivers don't have an equivalent upstream library, so scope.name is
# omitted (matches metrics' set_scope_efa / set_scope_ebs_csi /
# set_scope_kubeletstats which also omit scope.name).
transform/cw_k8s_ci_v0_logs_set_scope_app:
error_mode: ignore
log_statements:
- context: scope
statements:
- set(scope.schema_url, "")
- set(attributes["cloudwatch.source"], "cloudwatch-agent")
- set(attributes["cloudwatch.solution"], "k8s-otel-container-insights")
- set(attributes["cloudwatch.pipeline"], "application-logs")
transform/cw_k8s_ci_v0_logs_set_scope_host:
error_mode: ignore
log_statements:
- context: scope
statements:
- set(scope.schema_url, "")
- set(attributes["cloudwatch.source"], "cloudwatch-agent")
- set(attributes["cloudwatch.solution"], "k8s-otel-container-insights")
- set(attributes["cloudwatch.pipeline"], "host-logs")
batch/cw_k8s_ci_v0_logs_dest:
send_batch_size: 500
send_batch_max_size: 500
timeout: 5s
{{- end }}
exporters:
otlphttp/cw_k8s_ci_v0_metrics_dest:
endpoint: {{ if .Values.otelContainerInsights.cloudwatchMetricsEndpoint }}{{ .Values.otelContainerInsights.cloudwatchMetricsEndpoint | quote }}{{ else }}"https://monitoring.{{ .Values.region }}.amazonaws.com:443"{{ end }}
tls:
insecure: false
auth:
authenticator: sigv4auth/cw_k8s_ci_v0_metrics_dest
{{- if .Values.otelContainerInsights.logs.enabled }}
otlphttp/cw_k8s_ci_v0_app_logs_dest:
endpoint: {{ if .Values.otelContainerInsights.cloudwatchLogsEndpoint }}{{ .Values.otelContainerInsights.cloudwatchLogsEndpoint | quote }}{{ else if hasKey .Values.adcEndpointOverrides .Values.region }}"https://logs.{{ .Values.region }}.{{ index .Values.adcEndpointOverrides .Values.region }}:443"{{ else }}"https://logs.{{ .Values.region }}.amazonaws.com:443"{{ end }}
# compression: none matches FluentBit's current behavior (the aws-for-fluent-bit
# cloudwatch_logs plugin does not compress by default), so customers migrating
# from FluentBit see no bandwidth bill change. Enabling compression: gzip is
# available as an opt-in bandwidth optimization (~5–10× reduction for typical
# container logs) at the cost of +25% agent CPU — customers who raise the CPU
# limit accordingly can improve on FluentBit's bandwidth cost. See OTELify CI
# Logs Pipeline Optimizations doc for details.
compression: none
headers:
x-aws-log-group: "/aws/otel/containerinsights/{{ .Values.clusterName }}/application"
x-aws-log-stream: "${env:K8S_NODE_NAME}-application"
sending_queue:
queue_size: 500
num_consumers: 10
tls:
insecure: false
auth:
authenticator: awscloudwatchlogsprovisioner/cw_k8s_ci_v0_logs
otlphttp/cw_k8s_ci_v0_node_logs_dest:
endpoint: {{ if .Values.otelContainerInsights.cloudwatchLogsEndpoint }}{{ .Values.otelContainerInsights.cloudwatchLogsEndpoint | quote }}{{ else if hasKey .Values.adcEndpointOverrides .Values.region }}"https://logs.{{ .Values.region }}.{{ index .Values.adcEndpointOverrides .Values.region }}:443"{{ else }}"https://logs.{{ .Values.region }}.amazonaws.com:443"{{ end }}
# See app_logs_dest comment for compression tradeoff rationale.
compression: none
headers:
x-aws-log-group: "/aws/otel/containerinsights/{{ .Values.clusterName }}/host"
x-aws-log-stream: "${env:K8S_NODE_NAME}-host"
sending_queue:
queue_size: 500
num_consumers: 10
tls:
insecure: false
auth:
authenticator: awscloudwatchlogsprovisioner/cw_k8s_ci_v0_logs
{{- end }}
service:
extensions:
- sigv4auth/cw_k8s_ci_v0_metrics_dest
{{- if .Values.otelContainerInsights.logs.enabled }}
- sigv4auth/cw_k8s_ci_v0_logs_dest
- awscloudwatchlogsprovisioner/cw_k8s_ci_v0_logs
{{- end }}
pipelines:
{{- if .Values.nodeExporter.enabled }}
metrics/cw_k8s_ci_v0_node_exporter:
receivers: [prometheus/cw_k8s_ci_v0_node_exporter]
processors:
- filter/cw_k8s_ci_v0_scrape_metadata
- transform/cw_k8s_ci_v0_set_unit
- metricstarttime/cw_k8s_ci_v0
- transform/cw_k8s_ci_v0_set_cluster_name
- transform/cw_k8s_ci_v0_set_node_name
- transform/cw_k8s_ci_v0_promote_node_name
- resourcedetection/cw_k8s_ci_v0
- transform/cw_k8s_ci_v0_set_cloud_resource_id
- k8sattributes/cw_k8s_ci_v0_node
- transform/cw_k8s_ci_v0_set_scope_node_exporter
- transform/cw_k8s_ci_v0_clear_schema_url
- transform/cw_k8s_ci_v0_set_workload
- awsattributelimit/cw_k8s_ci_v0
- batch/cw_k8s_ci_v0_metrics_dest
exporters:
- otlphttp/cw_k8s_ci_v0_metrics_dest
{{- end }}
metrics/cw_k8s_ci_v0_cadvisor:
receivers: [prometheus/cw_k8s_ci_v0_cadvisor]
processors:
- filter/cw_k8s_ci_v0_scrape_metadata
- transform/cw_k8s_ci_v0_set_unit
- metricstarttime/cw_k8s_ci_v0
- transform/cw_k8s_ci_v0_set_cluster_name
- filter/cw_k8s_ci_v0_cadvisor_empty
- filter/cw_k8s_ci_v0_cadvisor_pod
- groupbyattrs/cw_k8s_ci_v0_cadvisor
- transform/cw_k8s_ci_v0_cadvisor_promote
- transform/cw_k8s_ci_v0_set_node_name
- transform/cw_k8s_ci_v0_promote_node_name
- resourcedetection/cw_k8s_ci_v0
- transform/cw_k8s_ci_v0_set_cloud_resource_id
- k8sattributes/cw_k8s_ci_v0_node
- k8sattributes/cw_k8s_ci_v0_pod
- transform/cw_k8s_ci_v0_set_scope_cadvisor
- transform/cw_k8s_ci_v0_clear_schema_url
- transform/cw_k8s_ci_v0_set_workload
- awsattributelimit/cw_k8s_ci_v0
- batch/cw_k8s_ci_v0_metrics_dest
exporters:
- otlphttp/cw_k8s_ci_v0_metrics_dest
{{- if or .Values.otelContainerInsights.serviceMonitor.enabled .Values.otelContainerInsights.podMonitor.enabled }}
metrics/cw_k8s_ci_v0_prometheuscr:
receivers: [prometheus/cw_k8s_ci_v0_prometheuscr]
# Phase 1: minimal chain to get ServiceMonitor/PodMonitor series flowing to v2.
# Richer OTel label/metadata enrichment (k8sattributes pod/node, workload, etc.)
# is intentionally deferred to the Phase 3 enrichment work.
processors:
- filter/cw_k8s_ci_v0_scrape_metadata
- metricstarttime/cw_k8s_ci_v0
- transform/cw_k8s_ci_v0_set_cluster_name
- transform/cw_k8s_ci_v0_set_scope_prometheuscr
- resourcedetection/cw_k8s_ci_v0
- batch/cw_k8s_ci_v0_metrics_dest
exporters:
- otlphttp/cw_k8s_ci_v0_metrics_dest
{{- end }}
{{- if .Values.dcgmExporter.enabled }}
metrics/cw_k8s_ci_v0_dcgm:
receivers: [prometheus/cw_k8s_ci_v0_dcgm]
processors: [filter/cw_k8s_ci_v0_scrape_metadata, transform/cw_k8s_ci_v0_set_unit, metricstarttime/cw_k8s_ci_v0, transform/cw_k8s_ci_v0_set_cluster_name, groupbyattrs/cw_k8s_ci_v0_dcgm, transform/cw_k8s_ci_v0_dcgm_promote, k8sattributes/cw_k8s_ci_v0_pod, transform/cw_k8s_ci_v0_set_node_name, transform/cw_k8s_ci_v0_promote_node_name, k8sattributes/cw_k8s_ci_v0_node, resourcedetection/cw_k8s_ci_v0, transform/cw_k8s_ci_v0_set_scope_dcgm, transform/cw_k8s_ci_v0_clear_schema_url, transform/cw_k8s_ci_v0_set_cloud_resource_id, transform/cw_k8s_ci_v0_set_workload, awsattributelimit/cw_k8s_ci_v0, batch/cw_k8s_ci_v0_metrics_dest]
exporters:
- otlphttp/cw_k8s_ci_v0_metrics_dest
{{- end }}
{{- if .Values.neuronMonitor.enabled }}
metrics/cw_k8s_ci_v0_neuron:
receivers: [prometheus/cw_k8s_ci_v0_neuron]
processors:
- filter/cw_k8s_ci_v0_scrape_metadata
- metricstarttime/cw_k8s_ci_v0
- transform/cw_k8s_ci_v0_set_cluster_name
- filter/cw_k8s_ci_v0_neuron
- awsneuron/cw_k8s_ci_v0
- transform/cw_k8s_ci_v0_set_unit
- awsdevicepodcorrelation/cw_k8s_ci_v0
- groupbyattrs/cw_k8s_ci_v0_neuron
- transform/cw_k8s_ci_v0_neuron_promote
- transform/cw_k8s_ci_v0_neuron_hw_attrs
- k8sattributes/cw_k8s_ci_v0_pod
- transform/cw_k8s_ci_v0_set_node_name
- transform/cw_k8s_ci_v0_promote_node_name
- resourcedetection/cw_k8s_ci_v0
- transform/cw_k8s_ci_v0_set_cloud_resource_id
- k8sattributes/cw_k8s_ci_v0_node
- transform/cw_k8s_ci_v0_set_scope_neuron_monitor
- transform/cw_k8s_ci_v0_clear_schema_url
- transform/cw_k8s_ci_v0_set_workload
- awsattributelimit/cw_k8s_ci_v0
- batch/cw_k8s_ci_v0_metrics_dest
exporters:
- otlphttp/cw_k8s_ci_v0_metrics_dest
{{- end }}
metrics/cw_k8s_ci_v0_efa:
receivers: [awsefareceiver/cw_k8s_ci_v0]
processors:
- transform/cw_k8s_ci_v0_set_unit
- metricstarttime/cw_k8s_ci_v0
- transform/cw_k8s_ci_v0_set_scope_efa
- transform/cw_k8s_ci_v0_set_cluster_name
- awsdevicepodcorrelation/cw_k8s_ci_v0
- transform/cw_k8s_ci_v0_efa_promote
- transform/cw_k8s_ci_v0_set_node_name
- transform/cw_k8s_ci_v0_promote_node_name
- k8sattributes/cw_k8s_ci_v0_pod
- k8sattributes/cw_k8s_ci_v0_node
- resourcedetection/cw_k8s_ci_v0
- transform/cw_k8s_ci_v0_clear_schema_url
- transform/cw_k8s_ci_v0_set_cloud_resource_id
- transform/cw_k8s_ci_v0_set_workload
- awsattributelimit/cw_k8s_ci_v0
- batch/cw_k8s_ci_v0_metrics_dest
exporters:
- otlphttp/cw_k8s_ci_v0_metrics_dest
metrics/cw_k8s_ci_v0_ebs_csi_node:
receivers: [prometheus/cw_k8s_ci_v0_ebs_csi_node]
processors:
- filter/cw_k8s_ci_v0_scrape_metadata
- transform/cw_k8s_ci_v0_set_unit
- metricstarttime/cw_k8s_ci_v0
- transform/cw_k8s_ci_v0_set_cluster_name
- transform/cw_k8s_ci_v0_ebs_csi_promote
- transform/cw_k8s_ci_v0_set_node_name
- transform/cw_k8s_ci_v0_promote_node_name
- resourcedetection/cw_k8s_ci_v0
- transform/cw_k8s_ci_v0_set_cloud_resource_id
- k8sattributes/cw_k8s_ci_v0_node
- transform/cw_k8s_ci_v0_set_scope_ebs_csi
- transform/cw_k8s_ci_v0_clear_schema_url
- transform/cw_k8s_ci_v0_set_workload
- awsattributelimit/cw_k8s_ci_v0
- batch/cw_k8s_ci_v0_metrics_dest
exporters:
- otlphttp/cw_k8s_ci_v0_metrics_dest
metrics/cw_k8s_ci_v0_lis_csi_node:
receivers: [prometheus/cw_k8s_ci_v0_lis_csi_node]
processors:
- filter/cw_k8s_ci_v0_scrape_metadata
- transform/cw_k8s_ci_v0_set_unit
- metricstarttime/cw_k8s_ci_v0
- transform/cw_k8s_ci_v0_set_cluster_name
- transform/cw_k8s_ci_v0_lis_csi_promote
- transform/cw_k8s_ci_v0_set_node_name
- transform/cw_k8s_ci_v0_promote_node_name
- resourcedetection/cw_k8s_ci_v0
- transform/cw_k8s_ci_v0_set_cloud_resource_id
- k8sattributes/cw_k8s_ci_v0_node
- transform/cw_k8s_ci_v0_set_scope_lis_csi
- transform/cw_k8s_ci_v0_clear_schema_url
- transform/cw_k8s_ci_v0_set_workload
- awsattributelimit/cw_k8s_ci_v0
- batch/cw_k8s_ci_v0_metrics_dest
exporters:
- otlphttp/cw_k8s_ci_v0_metrics_dest
metrics/cw_k8s_ci_v0_kubeletstats:
receivers: [kubeletstats/cw_k8s_ci_v0]
processors:
- metricstarttime/cw_k8s_ci_v0
- transform/cw_k8s_ci_v0_set_scope_kubeletstats
- transform/cw_k8s_ci_v0_set_cluster_name
- resourcedetection/cw_k8s_ci_v0
- transform/cw_k8s_ci_v0_set_cloud_resource_id
- k8sattributes/cw_k8s_ci_v0_pod
- k8sattributes/cw_k8s_ci_v0_node
- transform/cw_k8s_ci_v0_clear_schema_url
- transform/cw_k8s_ci_v0_set_workload
- awsattributelimit/cw_k8s_ci_v0
- batch/cw_k8s_ci_v0_metrics_dest
exporters:
- otlphttp/cw_k8s_ci_v0_metrics_dest
{{- if .Values.otelContainerInsights.logs.enabled }}
# ── CI Logs pipelines ──
logs/cw_k8s_ci_v0_app:
receivers: [filelog/cw_k8s_ci_v0_app]
processors: