mirror of
https://github.com/storytold/terraform-aws-observability-accelerator.git
synced 2026-10-20 07:44:43 +00:00
Tracing support with custom metrics collection (#67)
* Init tracing support * Update xray exporter * Remove duplicate metrics only on daemon set * Add support for custom metrics collection * Remove experimental feature * Rename config items * Update requirements for tracing support
This commit is contained in:
@@ -73,6 +73,30 @@ module "helm_addon" {
|
||||
name = "accountId"
|
||||
value = local.context.aws_caller_identity_account_id
|
||||
},
|
||||
{
|
||||
name = "enableTracing"
|
||||
value = var.enable_tracing
|
||||
},
|
||||
{
|
||||
name = "otlpHttpEndpoint"
|
||||
value = "0.0.0.0:4318"
|
||||
},
|
||||
{
|
||||
name = "otlpGrpcEndpoint"
|
||||
value = "0.0.0.0:4317"
|
||||
},
|
||||
{
|
||||
name = "enableCustomMetrics"
|
||||
value = var.enable_custom_metrics
|
||||
},
|
||||
{
|
||||
name = "customMetricsPorts"
|
||||
value = format(".*:(%s)$", join("|", var.custom_metrics_config.ports))
|
||||
},
|
||||
{
|
||||
name = "customMetricsDroppedSeriesPrefixes"
|
||||
value = format("(%s.*)$", join(".*|", var.custom_metrics_config.dropped_series_prefixes))
|
||||
}
|
||||
]
|
||||
|
||||
irsa_config = {
|
||||
@@ -80,7 +104,10 @@ module "helm_addon" {
|
||||
kubernetes_namespace = local.namespace
|
||||
create_kubernetes_service_account = true
|
||||
kubernetes_service_account = try(var.helm_config.service_account, local.name)
|
||||
irsa_iam_policies = ["arn:${data.aws_partition.current.partition}:iam::aws:policy/AmazonPrometheusRemoteWriteAccess"]
|
||||
irsa_iam_policies = [
|
||||
"arn:${data.aws_partition.current.partition}:iam::aws:policy/AmazonPrometheusRemoteWriteAccess",
|
||||
"arn:${data.aws_partition.current.partition}:iam::aws:policy/AWSXrayWriteOnlyAccess"
|
||||
]
|
||||
}
|
||||
|
||||
addon_context = local.context
|
||||
|
||||
Reference in New Issue
Block a user