# Are the statistics on Ray Dashboard programmatically available?

**URL:** <https://discuss.ray.io/t/are-the-statistics-on-ray-dashboard-programmatically-available/729>\
**Category:** Dashboard, Monitoring & Debugging\
**Created:** [February 4, 2021, 6:30pm UTC](https://discuss.ray.io/t/are-the-statistics-on-ray-dashboard-programmatically-available/729 "2021-02-04T18:30:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![franklsf95](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/franklsf95/32/345_2.png) [@franklsf95](https://discuss.ray.io/u/franklsf95)\
**Post date:** [February 4, 2021, 6:30pm UTC](https://discuss.ray.io/t/are-the-statistics-on-ray-dashboard-programmatically-available/729/1 "2021-02-04T18:30:39Z")

</div>

Are the statistics on Ray dashboard (CPU util, memory, network) programmatically available via some API? I want to track metrics of my cluster and view it as a line plot. I can write my own data collector using `psutil` but I wonder since the information is available in the Ray GUI dashboard, I can somehow get it?

---

<div class="post-metadata">

**Author:** ![rliaw](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/rliaw/32/24_2.png) [@rliaw](https://discuss.ray.io/u/rliaw)\
**Post date:** [February 4, 2021, 8:42pm UTC](https://discuss.ray.io/t/are-the-statistics-on-ray-dashboard-programmatically-available/729/2 "2021-02-04T20:42:23Z")

</div>

Maybe @eoakes can provide some guidance here?

---

<div class="post-metadata">

**Author:** ![eoakes](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/eoakes/32/7825_2.png) [@eoakes](https://discuss.ray.io/u/eoakes)\
**Post date:** [February 4, 2021, 8:59pm UTC](https://discuss.ray.io/t/are-the-statistics-on-ray-dashboard-programmatically-available/729/3 "2021-02-04T20:59:26Z")

</div>

Ray exports metrics on each node at a specified port in prometheus format. You can scrape these metrics and store them – the easiest way is by using prometheus and visualizing using grafana. Docs here: [Ray Monitoring — Ray v1.1.0](https://docs.ray.io/en/latest/ray-metrics.html#getting-started-single-node)
