Pretty print JSON output of Spring Boot Actuator endpoints

前端 未结 14 1022
终归单人心
终归单人心 2020-12-24 12:30

Spring Boot Actuator provides several endpoints to monitor an application as:

/metrics
/b         


        
14条回答
  •  忘掉有多难
    2020-12-24 12:51

    I use Python's commonly installed json.tool module:

    curl --silent http://localhost:8080/metrics | python -mjson.tool
    

提交回复
热议问题