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

aggregates: misleading error message #504

Open
sileht opened this issue Nov 22, 2017 · 3 comments
Open

aggregates: misleading error message #504

sileht opened this issue Nov 22, 2017 · 3 comments

Comments

@sileht
Copy link
Member

sileht commented Nov 22, 2017

For example, I have used:

POST /v1/aggregates
operations: "(100 - (metric aggregation-cpu-average@percent-idle-0 mean))"
search:  "host in [\"fake-phy-host-25b627441e04\"]"
resource_type: "collectd"

I obviously wrote a wrong operations, it should be (- 100 (metric ...))

But the error message is misleading:

{
"message": "Invalid input: extra keys not allowed @ data['search']",
"title": "Bad Request",
"code": "400 Bad Request"
}

@unamuno
Copy link

unamuno commented Jul 16, 2019

Sorry for asking @sileht:
Is there any documentation about the syntax used for operations in general?

@sileht
Copy link
Member Author

sileht commented Jul 16, 2019

I don't work on the project anymore, but the documentation is here:
https://gnocchi.xyz/rest.html#cross-metric-usage

@unamuno
Copy link

unamuno commented Jul 16, 2019

Thanks, I know but the docs are very limited to "(metric cpu.util mean)" ;)

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

No branches or pull requests

2 participants