Unable to see the custom metrics generated in Prometheus -python

33 views
Skip to first unread message

Bhagya Bhat

unread,
Nov 11, 2020, 9:37:22 AM11/11/20
to Prometheus Developers
  Hi,

I am trying to read the metrics located at a particular location of my laptop, adding that as a target in Prometheus and visualizing and sending alerts using grafana.  

I have written a python application which displays the metrics in localhost:8001
I have added this as target in prometheus.yml file 
But i am unable to see this in Prometheus localhost 9090 .It's saying no data point found.

Need help regarding the same. Please let me know what i can do to solve this issue.
and also is there any way i can check whether my custom metrics are of a proper format or not using python.

I tried changing the localhost to an external ip address but did not work.

Attaching my  prometheus.yml 


Thanks,
Bhagya
Reply all
Reply to author
Forward
0 new messages