Skip to content

Instantly share code, notes, and snippets.

View justinvdm's full-sized avatar

Justin van der Merwe justinvdm

View GitHub Profile
var metrics =
[
{
"target": "vumi.random.count.sum"
}
];
Response Headers
Connection keep-alive
Content-Length 1912
Content-Type text/html;charset=utf-8
Server thin 1.3.1 codename Triple Espresso
X-Frame-Options sameorigin
X-XSS-Protection 1; mode=block
Request Headers
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Response Headers
Cache-Control no-cache
Content-Encoding gzip
Content-Length 266
Content-Type application/json
Date Tue, 19 Jun 2012 21:12:52 GMT
Pragma no-cache
Server WSGIServer/0.1 Python/2.7.2
Vary Accept-Encoding
<html>
<head>
<script type="text/javascript" src="jquery.min.js">
<script src="jquery.min.js" type="text/javascript"></script>
</script>
</head>
<body></body>
</html>
def test_construct_render_url(self):
"""
Tests whether graphite render request urls are constructed properly
from client side render requests
"""
self.graphite_url = self.DEFAULT_GRAPHITE_URL \
if graphite_url is None else graphite_url
if graphite_url is None:
self.graphite_url = self.DEFAULT_GRAPHITE_URL
else
self.graphite_url = graphite_url
name: test-dashboard
widgets:
random-count-sum:
title: Sum of random count
metric: vumi.random.count.sum
type: graph
width: 300px
height: 150px
random-timer-average:
title: Average of random timer
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/opt/graphite/webapp/graphite/render/views.py", line 104, in renderView
seriesList = evaluateTarget(requestContext, target)
File "/opt/graphite/webapp/graphite/render/evaluator.py", line 10, in evaluateTarget
result = evaluateTokens(requestContext, tokens)
File "/opt/graphite/webapp/graphite/render/evaluator.py", line 21, in evaluateTokens
return evaluateTokens(requestContext, tokens.expression)
File "/opt/graphite/webapp/graphite/render/evaluator.py", line 29, in evaluateTokens
widgets:
- name: 'Sum of random count (small bucket)'
metrics:
'Sum of random count':
target: vumi.random.count.sum
warning_max_threshold: 12
warning_min_threshold: 5
- name: 'Sum of random count (big bucket)'
bucket_size: 900
widgets:
- 'Sum of random count (small bucket)':
metrics:
'Sum of random count':
target: vumi.random.count.sum
warning_max_threshold: 12
warning_min_threshold: 5
- 'Sum of random count (big bucket)':
bucket_size: 900