'monitiring prometheus endpoints status with grafana

I want to monitor endpoints status in grafana. Just like on :9090/targets simple info:

endpoint : state (up/down) 

without aggregating into groups, but in grafana dashboard. Which metric should I put in query in grafana? I can't find the proper one. I see prometheus_target_scrape_pool_targets but it shows number of endpoints in pool, not information about endpoint and it's status.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source