Skip to content

How to capture diagonostic through python api or http endpoint instead of html #4669

Answered by fjetter
zhqu1148980644 asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@zhqu1148980644
Comment options

@zhqu1148980644
Comment options

Comment options

You must be logged in to vote
4 replies
@zhqu1148980644
Comment options

@fjetter
Comment options

@zhqu1148980644
Comment options

@fjetter
Comment options

Answer selected by zhqu1148980644
Comment options

You must be logged in to vote
1 reply
@zhqu1148980644
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants