Skip to content

Commit

Permalink
Sync Terraform & Helm changes
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 2f8d09c67ca92686953ecedf43f84ca4c6efb73a
  • Loading branch information
rtso authored and aptos-bot committed Jun 12, 2024
1 parent bbce0f1 commit 8795d94
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
9 changes: 8 additions & 1 deletion terraform/fullnode/aws/backup.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,16 @@ data "aws_iam_policy_document" "backup-assume-role" {
data "aws_iam_policy_document" "backup" {
statement {
actions = [
"s3:GetObject",
"s3:ListBucket",
"s3:PutObject",
"s3:GetObject",
"s3:GetObjectTagging",
"s3:DeleteObject",
"s3:DeleteObjectVersion",
"s3:GetObjectVersion",
"s3:GetObjectVersionTagging",
"s3:GetObjectACL",
"s3:PutObjectACL"
]
resources = [
"arn:aws:s3:::${aws_s3_bucket.backup.id}",
Expand Down
23 changes: 23 additions & 0 deletions terraform/helm/vector-log-agent/files/vector-transforms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ transforms:
}
}
}
if exists(.fields) {
. = merge!(., .fields)
del(.fields)
}
if exists(.level) && is_string(.level) {
.level = downcase!(.level);
}
Expand All @@ -78,3 +82,22 @@ transforms:
if err == null {
.timestamp = parsed_timestamp
}
uptrace_logs:
type: remap
inputs:
- final_logs
source: |
. = flatten(., ".") # in order for fields to become individual, filterable top-level fields in uptrace we need to flatten nested objects into top-level keys.
.service.name = .k8s.labels.app
datadog_logs:
type: remap
inputs:
- final_logs
source: |
.ddsource = "k8s"
if is_string(.k8s.labels.app) {
.service = .k8s.labels.app
}
.ddtags, _ = "kube_cluster_name:" + .k8s.cluster + ",kube_namespace:" + .k8s.namespace + ",pod_name:" + .k8s.pod_name

0 comments on commit 8795d94

Please sign in to comment.