有没有办法通过API的方式去开启dashboard的持续分析功能

开启
curl ‘http://127.0.0.1:2379/dashboard/api/continuous_profiling/config
-H ‘Authorization: xxx{token}’
–data ‘{“continuous_profiling”:{“enable”:true,“data_retention_seconds”:259200}}’

关闭
curl ‘http://127.0.0.1:2379/dashboard/api/continuous_profiling/config
-H ‘Authorization: Bearer xxx{token}’
–data ‘{“continuous_profiling”:{“enable”:false,“data_retention_seconds”:259200}}’

4 个赞