Skip to content

Commit

Permalink
tls-app fix: migrate prod otel (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbuliarca authored Mar 1, 2024
1 parent 0532dc4 commit 16b1a77
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions prod-aws/kafka-shared/otel/otel.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,19 @@ resource "kafka_topic" "otlp_spans" {
}

module "otel_collector" {
source = "../../../modules/tls-app"
source = "../../../modules/tls-app-v2"
produce_topics = [kafka_topic.otlp_spans.name]
cert_common_name = "otel/collector"
}

module "tempo_distributor" {
source = "../../../modules/tls-app"
consume_topics = { (kafka_topic.otlp_spans.name) : "processor-tempo" }
source = "../../../modules/tls-app-v2"
consume_topics = [(kafka_topic.otlp_spans.name)]
consume_groups = ["processor-tempo"]
cert_common_name = "otel/tempo-distributor"
}

moved {
from = module.tempo_distributor.kafka_acl.group_acl["otel.otlp_spans"]
to = module.tempo_distributor.kafka_acl.group_acl["processor-tempo"]
}

0 comments on commit 16b1a77

Please sign in to comment.