The actuator endpoint /actuator/metrics/http.server.requests can exhibit this informations:
{
"name": "http.server.requests",
"baseUnit": "seconds",
"measurements": [
{
"statistic": "COUNT",
"value": 17.0
},
{
"statistic": "TOTAL_TIME",
"value": 0.751589096
},
{
"statistic": "MAX",
"value": 0.379677657
}
],
"availableTags": [
{
"tag": "exception",
"values": [
"none"
]
},
{
"tag": "method",
"values": [
"GET"
]
},
{
"tag": "error",
"values": [
"none"
]
},
{
"tag": "uri",
"values": [
"/swagger-ui*/**",
"/v3/api-docs/swagger-config",
"/v3/api-docs",
"/simulacao",
"/swagger-ui*/*swagger-initializer.js"
]
},
{
"tag": "outcome",
"values": [
"SUCCESS"
]
},
{
"tag": "status",
"values": [
"200"
]
}
]
}
I want to add a measurement statistic called "MIN" that shows the min time requests took, like this:
{
"name": "http.server.requests",
"baseUnit": "seconds",
"measurements": [
{
"statistic": "COUNT",
"value": 17.0
},
{
"statistic": "TOTAL_TIME",
"value": 0.751589096
},
{
"statistic": "MAX",
"value": 0.379677657
},
{
"statistic": "MIN",
"value": 0.001235678
}
],
"availableTags": [
{
"tag": "exception",
"values": [
"none"
]
},
{
"tag": "method",
"values": [
"GET"
]
},
{
"tag": "error",
"values": [
"none"
]
},
{
"tag": "uri",
"values": [
"/swagger-ui*/**",
"/v3/api-docs/swagger-config",
"/v3/api-docs",
"/simulacao",
"/swagger-ui*/*swagger-initializer.js"
]
},
{
"tag": "outcome",
"values": [
"SUCCESS"
]
},
{
"tag": "status",
"values": [
"200"
]
}
]
}
I'm using Springboot and I was not able to find information about creating statistics on Micrometer documentation. Can someone help me understand how to approach this problem?