-
Notifications
You must be signed in to change notification settings - Fork 14
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
Error when running grafanaAlerts command #9
Comments
P.S. here is full output: :~# grafanaAlerts |
Hello Tetlika, grafana-alerts is trying to make a HTTP Post to: http://yourHost:youPort/api/datasources/proxy/1/render with parameters: target={target}&from=-60s&until=now&format=json&maxDataPoints=100 Did you set the grafana token? It is the parameter grafana_token in /etc/grafana_alerts/grafana_alerts.cfg I did not test it with grafana 2.0.3. Please let me know hot it goes. |
hey Pabloa, P.S with what versions of grafana have you tested your software? thanks |
hey Pabloa, looks I've managed to fix the problem by doing this: #_GRAFANA_URL_PATH_OBTAIN_METRICS = 'api/datasources/proxy/1/render' in alerting.py file, I think the problem is that datasource id in our case was 2 and not 1 |
we're using grafana 2.0.3-pre1, commit: v2.0.2+3-g2c52224 ; and grafanaAlerts 1.0.0.dev7
when I run in console grafanaAlerts command, I receive error:
[<grafana_alerts.alerting.AlertChecker instance at 0x1a30290>]
Traceback (most recent call last):
File "/usr/local/bin/grafanaAlerts", line 9, in
load_entry_point('grafana-alerts==1.0.0.dev7', 'console_scripts', 'grafanaAlerts')()
File "/usr/local/lib/python2.7/dist-packages/grafana_alerts/init.py", line 12, in main
return the_launcher.launch()
File "/usr/local/lib/python2.7/dist-packages/grafana_alerts/launcher.py", line 16, in launch
alert_checker.check()
File "/usr/local/lib/python2.7/dist-packages/grafana_alerts/alerting.py", line 50, in check
alert_checker.check()
File "/usr/local/lib/python2.7/dist-packages/grafana_alerts/alerting.py", line 108, in check
contents = urllib2.urlopen(request).read()
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 407, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 520, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 445, in error
return self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 379, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 528, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found
whet does it mean?, thanks :)
The text was updated successfully, but these errors were encountered: