Skip to content

Commit

Permalink
[batch] turn off all unintended gcp cloud ops logs and metrics (#14050)
Browse files Browse the repository at this point in the history
  • Loading branch information
jigold authored Nov 29, 2023
1 parent b08768f commit f1f7e3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion batch/batch/cloud/gcp/driver/create_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ def scheduling() -> dict:
labels.instance_id:
static_value: $INSTANCE_ID
service:
log_level: error
pipelines:
default_pipeline:
processors: [labels]
Expand All @@ -250,7 +251,9 @@ def scheduling() -> dict:
metrics_filter:
type: exclude_metrics
metrics_pattern:
- agent.googleapis.com/processes/*
- agent.googleapis.com/*/*
service:
log_level: error
EOF
sudo systemctl restart google-cloud-ops-agent
Expand Down

0 comments on commit f1f7e3c

Please sign in to comment.