Skip to content

Commit

Permalink
change enable_monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
priyanka-ganesha committed Oct 2, 2023
1 parent 3e374e8 commit a5767b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MaxText/configs/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,6 @@ stack_trace_interval_seconds: 600 # Stack trace collection frequency in seconds
use_iota_embed: False

#Monitoring parameters - Export in-workload metrics to Cloud monitoring
enable_cloud_monitoring: True
enable_cloud_monitoring: False
cloud_monitoring_dashboard: "https://pantheon.corp.google.com/monitoring/dashboards?project="
cloud_zone: "" # zone name for cloud jobs - used for cloud metrics emitting
1 change: 1 addition & 0 deletions MaxText/tests/cloud_monitoring_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def test_write_time_series_step(self):
pyconfig.initialize(sys.argv + ['configs/base.yml'], per_device_batch_size=1, run_name='test', mesh_axes = ['data'],
logical_axis_rules = [['batch', 'data']],
data_sharding = ['data'],
enable_cloud_monitoring=True,
cloud_zone='us-central2-b')
monitoring_api.create_custom_metric('test_metric', "This is an example metric")
create_time_series_result = monitoring_api.write_time_series_step('test_metric', True, pyconfig, 1)
Expand Down

0 comments on commit a5767b4

Please sign in to comment.