Skip to content

Commit d1b65d9

Browse files
authored
Merge pull request #60 from vasireddy99/update-helm
Update helm charts to use collector `v0.21.0` - Helm chart `v0.7.0` Release
2 parents 73e4b16 + d9edc37 commit d1b65d9

File tree

6 files changed

+62
-15
lines changed

6 files changed

+62
-15
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#IDE
2+
.idea
3+
4+
#build folder
5+
build/

charts/adot-exporter-for-eks-on-ec2/Chart.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ apiVersion: v2
22
name: adot-exporter-for-eks-on-ec2
33
description: A Helm chart for collecting metrics using ADOT Collector and logs using Fluent Bit to send to AWS monitoring services.
44
type: application
5-
version: 0.6.0
6-
appVersion: "0.18.0"
7-
kubeVersion: ">=1.16.0-0"
5+
version: 0.7.0
6+
appVersion: "0.19.0"
7+
kubeVersion: ">=1.19.0-0"
88
maintainers:
99
- name: Bryan Aguilar
1010

charts/adot-exporter-for-eks-on-ec2/documentation/metrics_to_cloudwatch_amp.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The above-mentioned deployment modes are explained in-detail in the following se
1313

1414
### Default Mode (Offload metrics to only Amazon Managed Prometheus)
1515

16-
By default, the helm chart is configured to offload metrics data to the Amazon Managed Prometheus(AMP) workspace only. You need update the `values.yaml` file to add the Remote Write Endpoint URL and the region for your AMP workspace. By default, the region is set to `us-west-2`. By default, only the `prometheus` receiver and `awsprometheusremotewrite` exporter is included to be able to send metrics to AMP.
16+
By default, the helm chart is configured to offload metrics data to the Amazon Managed Prometheus(AMP) workspace only. You need update the `values.yaml` file to add the Remote Write Endpoint URL and the region for your AMP workspace. By default, the region is set to `us-west-2`. By default, only the `prometheus` receiver and `prometheusremotewrite` exporter is included to be able to send metrics to AMP.
1717

1818
```console
1919
helm install \
@@ -69,7 +69,7 @@ namespaces, they are successfully deployed.
6969

7070
### Offload metrics to both CloudWatch and Amazon Managed Prometheus(AMP)
7171

72-
To send metrics to CloudWatch, you need to enable the CloudWatch pipeline. You can either update the `values.yaml` to change the values of the following variable `exporters` and then run the `helm install` command as above. Include both `prometheus`, `awscontainerinsightreceiver` as receivers, `awsemf`,`awsprometheusremotewrite` exporter to send metrics to both CloudWatch and AMP.
72+
To send metrics to CloudWatch, you need to enable the CloudWatch pipeline. You can either update the `values.yaml` to change the values of the following variable `exporters` and then run the `helm install` command as above. Include both `prometheus`, `awscontainerinsightreceiver` as receivers, `awsemf`,`prometheusremotewrite` exporter to send metrics to both CloudWatch and AMP.
7373

7474
```console
7575
helm install \

charts/adot-exporter-for-eks-on-ec2/templates/adot-collector/configmap.yaml

+6-5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ data:
1313
adot-config: |
1414
extensions:
1515
health_check: {{ .Values.adotCollector.daemonSet.extensions.healthCheck }}
16+
sigv4auth:
17+
region: {{ .Values.awsRegion }}
1618
receivers:
1719
awscontainerinsightreceiver:
1820
collection_interval: {{ .Values.adotCollector.daemonSet.cwreceivers.collectionInterval }}
@@ -42,14 +44,13 @@ data:
4244
- {{.}}{{- end }}
4345
metric_declarations:
4446
{{ .Values.adotCollector.daemonSet.metricDeclarations | nindent 10 }}
45-
awsprometheusremotewrite:
47+
prometheusremotewrite:
4648
namespace: {{ .Values.adotCollector.daemonSet.ampexporters.namespace }}
4749
endpoint: {{ .Values.adotCollector.daemonSet.ampexporters.endpoint }}
4850
resource_to_telemetry_conversion:
49-
enabled: {{ .Values.adotCollector.daemonSet.ampexporters.resourcetotel }}
50-
aws_auth:
51-
region: {{ .Values.adotCollector.daemonSet.ampexporters.region }}
52-
service: aps
51+
enabled: {{ .Values.adotCollector.daemonSet.ampexporters.resourcetootel }}
52+
auth:
53+
authenticator: {{ .Values.adotCollector.daemonSet.ampexporters.authenticator }}
5354
5455
service:
5556
pipelines:

charts/adot-exporter-for-eks-on-ec2/values.schema.json

+33
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,22 @@
904904
}
905905
}
906906
},
907+
{
908+
"type": "object",
909+
"properties": {
910+
"name": {
911+
"type": "string"
912+
},
913+
"hostPath": {
914+
"type": "object",
915+
"properties": {
916+
"path": {
917+
"type": "string"
918+
}
919+
}
920+
}
921+
}
922+
},
907923
{
908924
"type": "object",
909925
"properties": {
@@ -995,6 +1011,20 @@
9951011
}
9961012
}
9971013
},
1014+
{
1015+
"type": "object",
1016+
"properties": {
1017+
"name": {
1018+
"type": "string"
1019+
},
1020+
"mountPath": {
1021+
"type": "string"
1022+
},
1023+
"readOnly": {
1024+
"type": "boolean"
1025+
}
1026+
}
1027+
},
9981028
{
9991029
"type": "object",
10001030
"properties": {
@@ -1013,6 +1043,9 @@
10131043
"properties": {
10141044
"healthCheck": {
10151045
"type": "string"
1046+
},
1047+
"region": {
1048+
"type": "string"
10161049
}
10171050
}
10181051
},

charts/adot-exporter-for-eks-on-ec2/values.yaml

+13-5
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ adotCollector:
189189
image:
190190
name: "aws-otel-collector"
191191
repository: "amazon/aws-otel-collector"
192-
tag: "v0.17.0"
192+
tag: "v0.21.1"
193193
daemonSetPullPolicy: "IfNotPresent"
194194
sidecarPullPolicy: "Always"
195195
daemonSet:
@@ -256,6 +256,9 @@ adotCollector:
256256
- name: "varlibdocker"
257257
hostPath:
258258
path: "/var/lib/docker"
259+
- name: "containerdsock"
260+
hostPath:
261+
path: "/run/containerd/containerd.sock"
259262
- name: "sys"
260263
hostPath:
261264
path: "/sys"
@@ -272,6 +275,9 @@ adotCollector:
272275
- name: "varlibdocker"
273276
mountPath: "/var/lib/docker"
274277
readOnly: true
278+
- name: "containerdsock"
279+
mountPath: "/run/containerd/containerd.sock"
280+
readOnly: true
275281
- name: "sys"
276282
mountPath: "/sys"
277283
readOnly: true
@@ -282,6 +288,8 @@ adotCollector:
282288
mountPath: "/conf"
283289
extensions:
284290
healthCheck: ""
291+
sigv4auth:
292+
region: ""
285293
cwreceivers:
286294
collectionInterval: ""
287295
containerOrchestrator: ""
@@ -394,14 +402,14 @@ adotCollector:
394402
ampexporters:
395403
namespaces: ""
396404
endpoint: ""
397-
resourcetotel: false
398-
region: ""
405+
resourcetootel: false
406+
authenticator: "sigv4auth"
399407
service:
400408
metrics:
401409
receivers: ["prometheus"]
402410
processors: ["batch/metrics"]
403-
exporters: ["awsprometheusremotewrite"]
404-
extensions: ["health_check"]
411+
exporters: ["prometheusremotewrite"]
412+
extensions: ["health_check", "sigv4auth"]
405413

406414
sidecar:
407415
enabled: false

0 commit comments

Comments
 (0)