Skip to content

Commit

Permalink
chore: add otel collector to dev lab (kyverno#8106)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
  • Loading branch information
eddycharly authored Aug 24, 2023
1 parent 59c2a5d commit 23b7bd4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,13 @@ dev-lab-tempo: $(HELM) ## Deploy tempo helm chart
--values ./scripts/config/dev/tempo.yaml
@kubectl apply -f ./scripts/config/dev/tempo-datasource.yaml

.PHONY: dev-lab-otel-collector
dev-lab-otel-collector: $(HELM) ## Deploy tempo helm chart
@echo Install otel-collector chart... >&2
@$(HELM) upgrade --install opentelemetry-collector --namespace monitoring --create-namespace --wait \
--repo https://open-telemetry.github.io/opentelemetry-helm-charts opentelemetry-collector \
--values ./scripts/config/dev/otel-collector.yaml

.PHONY: dev-lab-metrics-server
dev-lab-metrics-server: $(HELM) ## Deploy metrics-server helm chart
@echo Install metrics-server chart... >&2
Expand All @@ -942,7 +949,7 @@ dev-lab-metrics-server: $(HELM) ## Deploy metrics-server helm chart
--values ./scripts/config/dev/metrics-server.yaml

.PHONY: dev-lab-all
dev-lab-all: dev-lab-ingress-ngingx dev-lab-metrics-server dev-lab-prometheus dev-lab-loki dev-lab-tempo ## Deploy all dev lab components
dev-lab-all: dev-lab-ingress-ngingx dev-lab-metrics-server dev-lab-prometheus dev-lab-loki dev-lab-tempo dev-lab-otel-collector ## Deploy all dev lab components

.PHONY: dev-lab-policy-reporter
dev-lab-policy-reporter: $(HELM) ## Deploy policy-reporter helm chart
Expand Down
18 changes: 18 additions & 0 deletions scripts/config/dev/otel-collector.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
mode: daemonset

tolerations:
- key: node-role.kubernetes.io/control-plane
operator: Exists

config:
exporters:
otlp:
endpoint: tempo.monitoring:4317
tls:
insecure: true

service:
pipelines:
traces:
exporters:
- otlp

0 comments on commit 23b7bd4

Please sign in to comment.