Skip to content

Commit 075780a

Browse files
committed
Dynamic values
1 parent 6564853 commit 075780a

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

modules/workloads/infra/main.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,12 @@ module "helm_addon" {
8585
{
8686
name = "scrapeSampleLimit"
8787
value = 1000
88-
}
88+
},
89+
{
90+
name = "ekscluster"
91+
value = local.context.eks_cluster_id
92+
},
93+
8994
]
9095

9196
irsa_config = {

modules/workloads/infra/otel-config/templates/opentelemetrycollector.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: OpenTelemetryCollector
33
metadata:
44
name: adot
55
spec:
6-
image: public.ecr.aws/aws-observability/aws-otel-collector:latest
6+
image: public.ecr.aws/aws-observability/aws-otel-collector:v0.20.0
77
mode: deployment
88
serviceAccount: adot-collector-kubeprometheus
99
config: |
@@ -1565,24 +1565,25 @@ spec:
15651565
- job_name: 'node-exporter'
15661566
kubernetes_sd_configs:
15671567
- role: endpoints
1568-
15691568
exporters:
1570-
awsprometheusremotewrite:
1569+
prometheusremotewrite:
15711570
endpoint: {{ .Values.ampurl }}
1572-
aws_auth:
1573-
region: {{ .Values.region }}
1574-
service: "aps"
1571+
auth:
1572+
authenticator: sigv4auth
15751573
logging:
15761574
loglevel: info
15771575
extensions:
1576+
sigv4auth:
1577+
region: {{ .Values.region }}
1578+
service: aps
15781579
health_check:
15791580
pprof:
15801581
endpoint: :1888
15811582
zpages:
15821583
endpoint: :55679
15831584
service:
1584-
extensions: [pprof, zpages, health_check]
1585+
extensions: [pprof, zpages, health_check, sigv4auth]
15851586
pipelines:
15861587
metrics:
15871588
receivers: [prometheus]
1588-
exporters: [logging, awsprometheusremotewrite]
1589+
exporters: [logging, prometheusremotewrite]

0 commit comments

Comments
 (0)