| 知乎专栏 |
常规接口
neo@MacBook-Pro ~ % curl -s http://www.netkiller.cn:8080/actuator | jq
{
"_links": {
"self": {
"href": "http://www.netkiller.cn:8080/actuator",
"templated": false
},
"health": {
"href": "http://www.netkiller.cn:8080/actuator/health",
"templated": false
},
"health-component": {
"href": "http://www.netkiller.cn:8080/actuator/health/{component}",
"templated": true
},
"health-component-instance": {
"href": "http://www.netkiller.cn:8080/actuator/health/{component}/{instance}",
"templated": true
},
"info": {
"href": "http://www.netkiller.cn:8080/actuator/info",
"templated": false
}
}
}
暴漏所有接口
management:
endpoints:
web:
exposure:
include: "*"
再次访问 /actuator
neo@MacBook-Pro-Neo ~/w/Architect (master)> curl -s https://www.netkiller.cn/actuator/ | jq
{
"_links": {
"self": {
"href": "http://pre.ejiayou.com/ensd-channel-service/monitor",
"templated": false
},
"archaius": {
"href": "https://www.netkiller.cn/actuator/archaius",
"templated": false
},
"nacosconfig": {
"href": "https://www.netkiller.cn/actuator/nacosconfig",
"templated": false
},
"nacosdiscovery": {
"href": "https://www.netkiller.cn/actuator/nacosdiscovery",
"templated": false
},
"auditevents": {
"href": "https://www.netkiller.cn/actuator/auditevents",
"templated": false
},
"beans": {
"href": "https://www.netkiller.cn/actuator/beans",
"templated": false
},
"caches-cache": {
"href": "https://www.netkiller.cn/actuator/caches/{cache}",
"templated": true
},
"caches": {
"href": "https://www.netkiller.cn/actuator/caches",
"templated": false
},
"health-component": {
"href": "https://www.netkiller.cn/actuator/health/{component}",
"templated": true
},
"health": {
"href": "https://www.netkiller.cn/actuator/health",
"templated": false
},
"health-component-instance": {
"href": "https://www.netkiller.cn/actuator/health/{component}/{instance}",
"templated": true
},
"conditions": {
"href": "https://www.netkiller.cn/actuator/conditions",
"templated": false
},
"configprops": {
"href": "https://www.netkiller.cn/actuator/configprops",
"templated": false
},
"env-toMatch": {
"href": "https://www.netkiller.cn/actuator/env/{toMatch}",
"templated": true
},
"env": {
"href": "https://www.netkiller.cn/actuator/env",
"templated": false
},
"info": {
"href": "https://www.netkiller.cn/actuator/info",
"templated": false
},
"loggers-name": {
"href": "https://www.netkiller.cn/actuator/loggers/{name}",
"templated": true
},
"loggers": {
"href": "https://www.netkiller.cn/actuator/loggers",
"templated": false
},
"heapdump": {
"href": "https://www.netkiller.cn/actuator/heapdump",
"templated": false
},
"threaddump": {
"href": "https://www.netkiller.cn/actuator/threaddump",
"templated": false
},
"metrics": {
"href": "https://www.netkiller.cn/actuator/metrics",
"templated": false
},
"metrics-requiredMetricName": {
"href": "https://www.netkiller.cn/actuator/metrics/{requiredMetricName}",
"templated": true
},
"scheduledtasks": {
"href": "https://www.netkiller.cn/actuator/scheduledtasks",
"templated": false
},
"httptrace": {
"href": "https://www.netkiller.cn/actuator/httptrace",
"templated": false
},
"mappings": {
"href": "https://www.netkiller.cn/actuator/mappings",
"templated": false
},
"refresh": {
"href": "https://www.netkiller.cn/actuator/refresh",
"templated": false
},
"features": {
"href": "https://www.netkiller.cn/actuator/features",
"templated": false
},
"service-registry": {
"href": "https://www.netkiller.cn/actuator/service-registry",
"templated": false
}
}
}
Spring boot 2.3.0
neo@MacBook-Pro-M2 ~ % curl -s http://www.netkiller.cn:8080/actuator |jq
{
"_links": {
"self": {
"href": "http://www.netkiller.cn:8080/actuator",
"templated": false
},
"beans": {
"href": "http://www.netkiller.cn:8080/actuator/beans",
"templated": false
},
"caches-cache": {
"href": "http://www.netkiller.cn:8080/actuator/caches/{cache}",
"templated": true
},
"caches": {
"href": "http://www.netkiller.cn:8080/actuator/caches",
"templated": false
},
"health": {
"href": "http://www.netkiller.cn:8080/actuator/health",
"templated": false
},
"health-path": {
"href": "http://www.netkiller.cn:8080/actuator/health/{*path}",
"templated": true
},
"info": {
"href": "http://www.netkiller.cn:8080/actuator/info",
"templated": false
},
"conditions": {
"href": "http://www.netkiller.cn:8080/actuator/conditions",
"templated": false
},
"configprops": {
"href": "http://www.netkiller.cn:8080/actuator/configprops",
"templated": false
},
"configprops-prefix": {
"href": "http://www.netkiller.cn:8080/actuator/configprops/{prefix}",
"templated": true
},
"env": {
"href": "http://www.netkiller.cn:8080/actuator/env",
"templated": false
},
"env-toMatch": {
"href": "http://www.netkiller.cn:8080/actuator/env/{toMatch}",
"templated": true
},
"logfile": {
"href": "http://www.netkiller.cn:8080/actuator/logfile",
"templated": false
},
"loggers": {
"href": "http://www.netkiller.cn:8080/actuator/loggers",
"templated": false
},
"loggers-name": {
"href": "http://www.netkiller.cn:8080/actuator/loggers/{name}",
"templated": true
},
"heapdump": {
"href": "http://www.netkiller.cn:8080/actuator/heapdump",
"templated": false
},
"threaddump": {
"href": "http://www.netkiller.cn:8080/actuator/threaddump",
"templated": false
},
"metrics-requiredMetricName": {
"href": "http://www.netkiller.cn:8080/actuator/metrics/{requiredMetricName}",
"templated": true
},
"metrics": {
"href": "http://www.netkiller.cn:8080/actuator/metrics",
"templated": false
},
"scheduledtasks": {
"href": "http://www.netkiller.cn:8080/actuator/scheduledtasks",
"templated": false
},
"mappings": {
"href": "http://www.netkiller.cn:8080/actuator/mappings",
"templated": false
}
}
}