打開spring boot admin的監控平台發現其監控的服務明細打開均拋出異常:
Error: {"timestamp":1502749349892,"status":401,"error":"Unauthorized","message":"Full authentication is required to access this resource.","path":"/metrics"}
Error: {"timestamp":1502749409302,"status":401,"error":"Unauthorized","message":"Full authentication is required to access this resource.","path":"/env"}
Error:
{
"timestamp": 1502749421564,
"status": 401,
"error": "Unauthorized",
"message": "Full authentication is required to access this resource.",
"path": "/jolokia/"
}
Error: {"timestamp":1502749435545,"status":401,"error":"Unauthorized","message":"Full authentication is required to access this resource.","path":"/dump"}
Error: {"timestamp":1502749445132,"status":401,"error":"Unauthorized","message":"Full authentication is required to access this resource.","path":"/trace"}
這些功能涉及敏感信息,被監控端需要安全認證才能訪問對應的監控點,添加配置可規避此異常:
management.security.enabled=false