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

All graphs except Home & PullExec are showing empty datapoint #193

Closed
NootnootDuck opened this issue Jul 17, 2019 · 3 comments
Closed

All graphs except Home & PullExec are showing empty datapoint #193

NootnootDuck opened this issue Jul 17, 2019 · 3 comments

Comments

@NootnootDuck
Copy link

Hello,

I've installed a fresh 0.99f on an education lab, and I have troubles with populating the graphs.
I'm using admin account to log to the vCenter (it's a lab!) and inventory is generated fully.

There is an "Internal Server Error" showing on many graphs, with the following stacktrace ending:
step = reduce(lcm,[s.step for s in seriesList]) TypeError: reduce() of empty sequence with no initial value

I've made a test before with the previous version (0.99e) and it was working well...
Is there anything I'm forgetting to have it working?

@rschitz
Copy link
Member

rschitz commented Jul 17, 2019

Hi, could you post some logs please?

@NootnootDuck
Copy link
Author

NootnootDuck commented Jul 17, 2019

Sure, which ones do you need in particular?

below the request/response of the All Cluster Full Stats CPU/RAM usage:

REQUEST
Request details
Url 	api/datasources/proxy/1/render
Method 	POST
Content-Type 	application/x-www-form-urlencoded
X-Grafana-Org-Id 	1
Accept 	application/json, text/plain, */*
Request parameters
target 	alias(asPercent(sumSeries(vmw.*.*.*.quickstats.cpu.usage), sumSeries(vmw.*.*.*.quickstats.cpu.effective)), 'cpu.usage')
target 	alias(diffSeries(asPercent(sumSeries(vmw.*.*.*.quickstats.mem.usage), sumSeries(vmw.*.*.*.quickstats.mem.effective)), alias(asPercent(sumSeries(vmw.*.*.*.quickstats.cpu.usage), sumSeries(vmw.*.*.*.quickstats.cpu.effective)), 'cpu.usage')), 'mem.usage')
target 	alias(asPercent(sumSeries(vmw.*.*.*.quickstats.vRAM), sumSeries(vmw.*.*.*.quickstats.mem.effective)), 'mem.allocated')
from 	-1h
until 	now
format 	json
maxDataPoints 	580 

RESPONSE
Graphite encountered an unexpected error while handling your request.
Please contact your site administrator if the problem persists.
Traceback (most recent call last)
	File /usr/lib/python2.7/dist-packages/django/core/handlers/base.py, line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs)
	File /usr/lib/python2.7/dist-packages/graphite/render/views.py, line 110, in renderView seriesList = evaluateTarget(requestContext, target)
	File /usr/lib/python2.7/dist-packages/graphite/render/evaluator.py, line 10, in evaluateTarget result = evaluateTokens(requestContext, tokens)
	File /usr/lib/python2.7/dist-packages/graphite/render/evaluator.py, line 21, in evaluateTokens return evaluateTokens(requestContext, tokens.expression)
	File /usr/lib/python2.7/dist-packages/graphite/render/evaluator.py, line 28, in evaluateTokens args = [evaluateTokens(requestContext, arg) for arg in tokens.call.args]
	File /usr/lib/python2.7/dist-packages/graphite/render/evaluator.py, line 21, in evaluateTokens return evaluateTokens(requestContext, tokens.expression)
	File /usr/lib/python2.7/dist-packages/graphite/render/evaluator.py, line 29, in evaluateTokens return func(requestContext, *args)
	File /usr/lib/python2.7/dist-packages/graphite/render/functions.py, line 431, in asPercent normalize([seriesList])
	File /usr/lib/python2.7/dist-packages/graphite/render/functions.py, line 120, in normalize step = reduce(lcm,[s.step for s in seriesList]) TypeError: reduce() of empty sequence with no initial value

@NootnootDuck
Copy link
Author

My bad, I've forgot to specify the VI collect.
I've enabled it and it works now!

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

No branches or pull requests

2 participants