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:
Rodrigue Koffi
2023-01-19 21:24:39 +01:00
committed by GitHub
parent e73b4b9300
commit c726f508b5
6 changed files with 236 additions and 42 deletions
+28 -1
View File
@@ -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