How to capture diagonostic through python api or http endpoint instead of html #4669
-
In which object I can get this information or if it's possible to write plugins to access these data collected by dask.distributed. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Thanks for asking @zhqu1148980644. Could you be more specific about what information you'd like to capture? |
Beta Was this translation helpful? Give feedback.
-
Accessing through HTTP (prometheus metrics)There exists a There are also some JSON endpoints available, e.g. All available endpoints are listed here Python APIAfaik, there is not one dedicated API to extract statistics. Depending on what you are looking for the distributed Client might offer some, if not all information. For instance, there is the Client.scheduler_info. There is of course always the possibility to write your own plugin to extract all the custom information you require. |
Beta Was this translation helpful? Give feedback.
-
There are some JSON routes. Unfortunately these aren't well documented.
Rather than client.submit you might want to look at client.run.
…On Tue, Apr 6, 2021 at 8:03 AM BAKEZQ ***@***.***> wrote:
Thanks, I choose to write my own monitoring plugin. By the way, can I use
another thread to collect stats and then send it back to the calling side
of client.submit? how can I achieve this, can I attach it to the
submit-returned future?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4669 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKZTA42XJUNJFIGSWK25DTHMBDZANCNFSM42JC5VEA>
.
|
Beta Was this translation helpful? Give feedback.
Accessing through HTTP (prometheus metrics)
There exists a
/metrics
endpoint which is used to expose some of this information as prometheus metrics. The exposed metrics for scheduler and workers differ slightly.Unfortunately, this is not, yet, part of the official documentation but if you are looking for the code, see here and here.
There are also some JSON endpoints available, e.g.
/json/counts.json
All available endpoints are listed here
Python API
Afaik, there is not one dedicated API to extract statistics. Depending on what you are looking for the distributed Client might offer some, if not all information. For instance, there is the Client.scheduler_info.
There is of course always t…