You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2022/06/24 12:49:32 UTC

[GitHub] [bookkeeper] zhongxp1219 commented on issue #2161: When httpServerEnabled=true, Prometheus reports doesn't set content-type

zhongxp1219 commented on issue #2161:
URL: https://github.com/apache/bookkeeper/issues/2161#issuecomment-1165542239

   hi, @Shoothzj @fu-turer when i set httpServerEnabled=true, prometheus will not provide metrics, the code show as follows. 
   <img width="1342" alt="image" src="https://user-images.githubusercontent.com/22350886/175538570-de60d4da-46d0-46cb-b066-0cd78b09e948.png">
   
   And, if i modified the code that let prometheus provides metric endpoint while set httpServerEnabled=true, it will return content-Type with text/plain:
   <img width="1078" alt="image" src="https://user-images.githubusercontent.com/22350886/175539008-1e4ea355-eeec-4ca6-bb0c-f154f76d166b.png">
   
   is there any mistakes i make ? thanks. $.$


-- 
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: issues-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org