You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Overwrite existing CloudWatch config if merging config fails
`append-config` merges config, but fails when there are conflicting parameters:
```
2024/08/07 19:45:32 Under path : /metrics/metrics_collected/mem | Error : Different values are specified for mem
2024/08/07 19:45:32 Under path : /metrics/metrics_collected/disk | Error : Different values are specified for disk
2024/08/07 19:45:32 Under path : /metrics/append_dimensions | Error : Different values are specified for append_dimensions
2024/08/07 19:45:32 Under path : /metrics/metrics_collected/mem | Error : Different values are specified for mem
2024/08/07 19:45:32 Under path : /metrics/metrics_collected/disk | Error : Different values are specified for disk
2024/08/07 19:45:32 Under path : /metrics/append_dimensions | Error : Different values are specified for append_dimensions
```
`fetch-config` overwrites config.
This commit makes the code to try merging the config first. If it fails, overwrite the config.
Signed-off-by: Hanwen <[email protected]>
0 commit comments