Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

insert squad label to all metrics #634

Merged
merged 2 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/regional-service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ resource "google_cloud_run_v2_service" "this" {
args = ["--config=env:OTEL_CONFIG"]
env {
name = "OTEL_CONFIG"
value = file("${path.module}/otel-config/config.yaml")
value = replace(file("${path.module}/otel-config/config.yaml"), "REPLACE_ME_TEAM", var.squad)
}
}

Expand Down
6 changes: 6 additions & 0 deletions modules/regional-service/otel-config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ receivers:
action: drop

processors:
attributes:
actions:
- action: insert
key: team
value: "REPLACE_ME_TEAM"

batch:
# batch metrics before sending to reduce API usage
send_batch_max_size: 200
Expand Down
Loading