mercredi 16 juin 2021

Unable to retrieve data from telemetry server for Prometheus pull request

We have one c++ application running on telemetry (civet server ) at port 5055 and it collects all the metrics of application. Now when I send a pull request from a Prometheus server i.e; simply we are placing a GET request as "http://localhost:5055/metrics" for viewing metrics data, it is able to connect properly and no Error is showing up, but no metrics data is being retrieved . What can be the possible cause of this issue ? Can somebody help with any sample program for retrieving metrics data from c++ application for Prometheus exporter ?

Please refer to the following links to check the status of the servers.

Prometheus server :

https://user-images.githubusercontent.com/71254074/120539491-42d3f600-c405-11eb-9e40-908bf4dc1db9.jpg

C++ application server ( "http://localhost:5055/metrics" ) :

https://user-images.githubusercontent.com/71254074/120539526-4b2c3100-c405-11eb-8781-9efc39d7e3fd.jpg

Aucun commentaire:

Enregistrer un commentaire