[ 
https://issues.apache.org/jira/browse/KAFKA-7792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16740705#comment-16740705
 ] 

ASF GitHub Bot commented on KAFKA-7792:
---------------------------------------

stanislavkozlovski commented on pull request #6130: KAFKA-7792: Add simple 
/agent/uptime and /coordinator/uptime health check endpoints
URL: https://github.com/apache/kafka/pull/6130
 
 
   As described in https://issues.apache.org/jira/browse/KAFKA-7792, Trogdor 
should have a simple uptime function.
   
   ### Changes
   This PR adds two new endpoints, one for the Trogdor Agent and one for the 
Trogdor Coordinator.
   `GET /agent/uptime`
   `GET /coordinator/uptime`
   
   Both return a 200 status code and a JSON response informing the user how 
long the agent/coordinator has been running for:
   ```
   {"uptime": 200}
   ```
   
   It is worth noting that the `/coordinator/uptime` is a bit superfluous, as 
the `/coordinator/status` endpoint returns a JSON containing the time the 
coordinator started - `{"serverStartMs": 1547234982334}`.
   The main motivation behind this PR is that the `/agent/status` is a 
potentially heavyweight call. I added the `/coordinator/uptime` for consistency
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Trogdor should have an uptime function
> --------------------------------------
>
>                 Key: KAFKA-7792
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7792
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Colin P. McCabe
>            Assignee: Colin P. McCabe
>            Priority: Minor
>
> Trogdor should have an uptime function which returns how long the coordinator 
> or agent has been up.  This will also be a good way to test that the daemon 
> is running without fetching a full status.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to