Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oneprovider Monitoring API #52

Open
andrea-manzi opened this issue Aug 11, 2021 · 1 comment
Open

Oneprovider Monitoring API #52

andrea-manzi opened this issue Aug 11, 2021 · 1 comment

Comments

@andrea-manzi
Copy link

Hello,
i'm trying to use the Oneprovider monitoring REST API to get some statistics, following the API definition at

https://onedata.org/#/home/api/stable/oneprovider?anchor=tag/Monitoring

but i'm always getting a json with an empty rdd.

I don't know if i'm doing something wrong,but i have all the privileges on the space as i'm the space owner ( Space EMPHASYS on EGI DataHub)

The provider i'm contacting is plg-cyfronet-01.datahub.egi.eu, and the example call is

curl -H "X-Auth-Token: $TOKEN" \
-X GET "https://plg-cyfronet-01.datahub.egi.eu/api/v3/oneprovider/metrics/space/9717c2ee1fdf354f595688da6c1430c8chc8a9?metric=storage_used"   

with result

[{"rrd":"","providerId":"0735380a8e3732741b5a2ebfea289276ch05ac"},{"rrd":"","providerId":"86a0043e13896816ef8c148c520685c3"}]%

i tried also to query for other metrics, but i have the same result.

@lopiola
Copy link
Member

lopiola commented Aug 23, 2021

Hello,

currently, the monitoring backend is disabled due to some problems, among which is the fact that it caused large overheads and slowed down the Oneprovider. Of course this is our oversight that this documentation is still there - sorry for that. We will take it down and bring it back when we are able to solve the problems with the monitoring backend.

As far as monitoring is concerned, there is no working API for the moment to get those metrics. You could possibly subscribe to all changes on files and build those metrics on your own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants