Repository navigation
Labels
- Admin -Enjoyable to Install and Setup our SoftwareEasyGood for NewcomersEnhancement / Feature RequestSomething Newgood first issueGood for newcomers
Description
To make the API more self-discoverable we should include the URL and type of the service of the service instead of only the socket address (binding) in the health check report.
Current endpoint
{
"status": "Ok",
"message": "",
"details": [
{
"binding": "0.0.0.0:6969",
"info": "checking the udp tracker health check at: 0.0.0.0:6969",
"result": {
"Ok": "Connected"
}
},
{
"binding": "0.0.0.0:6868",
"info": "checking the udp tracker health check at: 0.0.0.0:6868",
"result": {
"Ok": "Connected"
}
},
{
"binding": "0.0.0.0:7171",
"info": "checking http tracker health check at: http://0.0.0.0:7171/health_check",
"result": {
"Ok": "200 OK"
}
},
{
"binding": "0.0.0.0:1212",
"info": "checking api health check at: http://0.0.0.0:1212/api/health_check",
"result": {
"Ok": "200 OK"
}
},
{
"binding": "0.0.0.0:7070",
"info": "checking http tracker health check at: http://0.0.0.0:7070/health_check",
"result": {
"Ok": "200 OK"
}
}
]
}New proposal
{
"status": "Ok",
"message": "",
"details": [
{
"type": "udp_tracker",
"url": "udp://0.0.0.0:6969",
"binding": "0.0.0.0:6969",
"info": "checking the udp tracker health check at: 0.0.0.0:6969",
"result": {
"Ok": "Connected"
}
},
{
"type": "udp_tracker",
"url": "udp://0.0.0.0:6868",
"binding": "0.0.0.0:6868",
"info": "checking the udp tracker health check at: 0.0.0.0:6868",
"result": {
"Ok": "Connected"
}
},
{
"type": "http_tracker",
"url": "http://0.0.0.0:7171",
"binding": "0.0.0.0:7171",
"info": "checking http tracker health check at: http://0.0.0.0:7171/health_check",
"result": {
"Ok": "200 OK"
}
},
{
"type": "tracker_rest_api",
"url": "http://0.0.0.0:1212",
"binding": "0.0.0.0:1212",
"info": "checking api health check at: http://0.0.0.0:1212/api/health_check",
"result": {
"Ok": "200 OK"
}
},
{
"type": "http_tracker",
"url": "http://0.0.0.0:7070",
"binding": "0.0.0.0:7070",
"info": "checking http tracker health check at: http://0.0.0.0:7070/health_check",
"result": {
"Ok": "200 OK"
}
}
]
}cc @da2ce7
Metadata
Metadata
Assignees
Labels
- Admin -Enjoyable to Install and Setup our SoftwareEasyGood for NewcomersEnhancement / Feature RequestSomething Newgood first issueGood for newcomers
Activity
Merge #1413: health_check: service type
josecelano commentedon Mar 26, 2025
Partially implemented via #1413
josecelano commentedon Mar 26, 2025
Depends on #1415 to finish the implementation.
josecelano commentedon Mar 26, 2025
Instead of implementing #1415 I'm going to finish this because there are related but can be merge independently.
On the other hand, I think I'm going to use a different name for the
urlfield. I will called it:listen_url.feat: [torrust#1409] add listen_url field to the health check API
feat: [torrust#1409] add listen_url field to the health check API
Merge #1416: Feature: Add `listen_url` field to the health check API