suyashpatel98 opened a new pull request, #12389:
URL: https://github.com/apache/pinot/pull/12389
Add uptime and start-time endpoints for server, broker, minion and
controller. Verified all endpoints work as expected.
Following is sample output obtained while testing:
```
[ 7:47PM ] [
suyash@Suyashs-MacBook-Air:~/Desktop/work/open-source/workspace/pinot(12298-new-api-component-uptime✗)
]
$ curl http://localhost:8000/uptime
Uptime: 81 seconds%
[ 7:47PM ] [
suyash@Suyashs-MacBook-Air:~/Desktop/work/open-source/workspace/pinot(12298-new-api-component-uptime✗)
]
$ curl http://localhost:9000/uptime
Uptime: 125 seconds%
[ 8:51PM ] [
suyash@Suyashs-MacBook-Air:~/Desktop/work/open-source/workspace/pinot(12298-new-api-component-uptime✗)
]
$ curl http://localhost:8000/uptime
Uptime: 127 seconds%
[ 8:51PM ] [
suyash@Suyashs-MacBook-Air:~/Desktop/work/open-source/workspace/pinot(12298-new-api-component-uptime✗)
]
$ curl http://localhost:6000/uptime
Uptime: 128 seconds%
[ 8:51PM ] [
suyash@Suyashs-MacBook-Air:~/Desktop/work/open-source/workspace/pinot(12298-new-api-component-uptime✗)
]
$ curl http://localhost:7500/uptime
Uptime: 149 seconds%
[ 8:51PM ] [
suyash@Suyashs-MacBook-Air:~/Desktop/work/open-source/workspace/pinot(12298-new-api-component-uptime✗)
]
$ curl http://localhost:7500/start-time
Pinot server started at: 2024-02-09T04:49:17.096988Z. Pinot server status is
GOOD%
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]