<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Grafana - alerting issue in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Grafana-alerting-issue/m-p/131812#M23913</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm trying to define alerts for some of the graphs in Grafana. I get:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;error tsdb.HandleRequest() error Request failed status: 500 Internal Server Error&lt;/PRE&gt;&lt;P&gt;every time when I press "Test Rule" button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My queries are the most basic ones - like "WHEN avg () OF query (A, 5m, now) IS ABOVE 10", etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;/opt/graphite/storage/log/webapp/exception.log&lt;/STRONG&gt; tells me the following when that happens:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;2017-06-13,09:27:37.044 :: Exception encountered in &amp;lt;POST http://localhost:80/render&amp;gt;
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/django/core/handlers/base.py", line 147, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/opt/graphite/webapp/graphite/render/views.py", line 124, in renderView
    seriesList = evaluateTarget(requestContext, target)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 8, in evaluateTarget
    result = evaluateTokens(requestContext, tokens)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 29, in evaluateTokens
    return evaluateTokens(requestContext, tokens.expression, replacements)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 54, in evaluateTokens
    args = [evaluateTokens(requestContext, arg, replacements) for arg in tokens.call.args]
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 29, in evaluateTokens
    return evaluateTokens(requestContext, tokens.expression, replacements)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 54, in evaluateTokens
    args = [evaluateTokens(requestContext, arg, replacements) for arg in tokens.call.args]
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 29, in evaluateTokens
    return evaluateTokens(requestContext, tokens.expression, replacements)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 59, in evaluateTokens
    return func(requestContext, *args, **kwargs)
  File "/opt/graphite/webapp/graphite/render/functions.py", line 2198, in highestAverage
    return sorted( seriesList, key=lambda s: safeDiv(safeSum(s),safeLen(s)) )[-n:]
&lt;FONT color="#FF0000"&gt;TypeError: bad operand type for unary -: 'list'&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;I've had this problem when using the software versions suggested in Chris doc and I still have it now after upgrading most of the components.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently I'm at: Grafana 4.3.2, Graphite (whisper, carbon, graphite-web) 1.0.1, Django 1.9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 14:58:02 GMT</pubDate>
    <dc:creator>bkamil</dc:creator>
    <dc:date>2025-06-04T14:58:02Z</dc:date>
    <item>
      <title>Grafana - alerting issue</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Grafana-alerting-issue/m-p/131812#M23913</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm trying to define alerts for some of the graphs in Grafana. I get:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;error tsdb.HandleRequest() error Request failed status: 500 Internal Server Error&lt;/PRE&gt;&lt;P&gt;every time when I press "Test Rule" button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My queries are the most basic ones - like "WHEN avg () OF query (A, 5m, now) IS ABOVE 10", etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;/opt/graphite/storage/log/webapp/exception.log&lt;/STRONG&gt; tells me the following when that happens:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;2017-06-13,09:27:37.044 :: Exception encountered in &amp;lt;POST http://localhost:80/render&amp;gt;
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/django/core/handlers/base.py", line 147, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/opt/graphite/webapp/graphite/render/views.py", line 124, in renderView
    seriesList = evaluateTarget(requestContext, target)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 8, in evaluateTarget
    result = evaluateTokens(requestContext, tokens)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 29, in evaluateTokens
    return evaluateTokens(requestContext, tokens.expression, replacements)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 54, in evaluateTokens
    args = [evaluateTokens(requestContext, arg, replacements) for arg in tokens.call.args]
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 29, in evaluateTokens
    return evaluateTokens(requestContext, tokens.expression, replacements)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 54, in evaluateTokens
    args = [evaluateTokens(requestContext, arg, replacements) for arg in tokens.call.args]
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 29, in evaluateTokens
    return evaluateTokens(requestContext, tokens.expression, replacements)
  File "/opt/graphite/webapp/graphite/render/evaluator.py", line 59, in evaluateTokens
    return func(requestContext, *args, **kwargs)
  File "/opt/graphite/webapp/graphite/render/functions.py", line 2198, in highestAverage
    return sorted( seriesList, key=lambda s: safeDiv(safeSum(s),safeLen(s)) )[-n:]
&lt;FONT color="#FF0000"&gt;TypeError: bad operand type for unary -: 'list'&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;I've had this problem when using the software versions suggested in Chris doc and I still have it now after upgrading most of the components.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently I'm at: Grafana 4.3.2, Graphite (whisper, carbon, graphite-web) 1.0.1, Django 1.9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:58:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Grafana-alerting-issue/m-p/131812#M23913</guid>
      <dc:creator>bkamil</dc:creator>
      <dc:date>2025-06-04T14:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Grafana - alerting issue</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Grafana-alerting-issue/m-p/131910#M23933</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/56261"&gt;@bkamil&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to&amp;nbsp;&lt;A href="http://docs.grafana.org/alerting/rules/" target="_self"&gt;http://docs.grafana.org/alerting/rules/&lt;/A&gt;&amp;nbsp; "The query used in an alert rule cannot contain any template variables." &amp;nbsp;All of the default dashboard panels use template variables so to configure alerting you would need to create new dashboard panels without templates and then configure alerting on them. &amp;nbsp;Could that be your issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Chris Madden&lt;/P&gt;&lt;P&gt;Solution Architect - 3rd Platform - Systems Engineering NetApp EMEA (and author of Harvest)&lt;/P&gt;&lt;P&gt;Blog:&amp;nbsp;&lt;A href="http://www.beginswithdata.com/" target="_blank"&gt;It all begins with data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If this post resolved your issue, please help others by selecting&amp;nbsp;&lt;STRONG&gt;ACCEPT AS SOLUTION&lt;/STRONG&gt;&amp;nbsp;or adding a&amp;nbsp;&lt;STRONG&gt;KUDO &lt;/STRONG&gt;or both!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 21:17:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Grafana-alerting-issue/m-p/131910#M23933</guid>
      <dc:creator>madden</dc:creator>
      <dc:date>2017-06-14T21:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Grafana - alerting issue</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Grafana-alerting-issue/m-p/131918#M23937</link>
      <description>&lt;P&gt;That was it, Chris!&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kamil&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 08:12:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Grafana-alerting-issue/m-p/131918#M23937</guid>
      <dc:creator>bkamil</dc:creator>
      <dc:date>2017-06-15T08:12:10Z</dc:date>
    </item>
  </channel>
</rss>

