<?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 mavg query timeout when called through the REST api in Wavefront by VMware Discussions</title>
    <link>https://communities.vmware.com/t5/Wavefront-by-VMware-Discussions/mavg-query-timeout-when-called-through-the-REST-api/m-p/1849258#M518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running following wavefront query to get `SINGLE&amp;nbsp; VALUE` which is Average over the given time range for which the query is being called. This works fine in the dashboard but it times out when called through the REST API. Can this query be optimized:&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: '.AppleSystemUIFont', serif; font-size: 14.6667px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;mavg(1vw, avg(ts(telegraf.response.times.99.percentile , accountid="123" and env="prod" and &lt;EM style="color: #1d1c1d; font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px;"&gt;myvar&lt;/EM&gt;!="true”)))&lt;/EM&gt;&lt;BR /&gt;I tried with following but does not help&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="c-message_kit__gutter" style="padding: 8px 20px; color: #1d1c1d; font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px; background-color: #f8f8f8;"&gt;&lt;EM&gt;mavg(1vw, avg(align(900s, mean, ts(telegraf.response.times.99.percentile , accountid=“123” and env=“prod” and myvar!=“true”))))&lt;/EM&gt;&lt;/P&gt;&lt;DIV class="c-message_kit__gutter__right" data-qa="message_content" style="padding: 8px 8px 8px 16px; margin: -12px -8px -16px -16px;"&gt;&lt;DIV class="c-message_kit__blocks c-message_kit__blocks--rich_text" style="margin-bottom: 4px;"&gt;&lt;DIV class="c-message__message_blocks c-message__message_blocks--rich_text"&gt;&lt;DIV class="p-block_kit_renderer" data-qa="block-kit-renderer"&gt;&lt;DIV class="p-block_kit_renderer__block_wrapper--first p-block_kit_renderer__block_wrapper"&gt;&lt;DIV class="p-rich_text_block"&gt;&lt;DIV class="p-rich_text_section"&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="c-message__actions c-message_actions__container" style="padding: 2px; color: #1d1c1d; font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px;"&gt;&lt;BUTTON class="c-button-unstyled c-icon_button--light c-icon_button--size_small c-message_actions__button c-icon_button" data-qa="add_reaction_action" style="padding: unset; background-position: initial; text-align: initial;" type="button"&gt;&lt;/BUTTON&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jan 2020 23:51:24 GMT</pubDate>
    <dc:creator>kuldeepjain</dc:creator>
    <dc:date>2020-01-31T23:51:24Z</dc:date>
    <item>
      <title>mavg query timeout when called through the REST api</title>
      <link>https://communities.vmware.com/t5/Wavefront-by-VMware-Discussions/mavg-query-timeout-when-called-through-the-REST-api/m-p/1849258#M518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running following wavefront query to get `SINGLE&amp;nbsp; VALUE` which is Average over the given time range for which the query is being called. This works fine in the dashboard but it times out when called through the REST API. Can this query be optimized:&lt;BR /&gt;&lt;SPAN style="color: #000000; font-family: '.AppleSystemUIFont', serif; font-size: 14.6667px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;mavg(1vw, avg(ts(telegraf.response.times.99.percentile , accountid="123" and env="prod" and &lt;EM style="color: #1d1c1d; font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px;"&gt;myvar&lt;/EM&gt;!="true”)))&lt;/EM&gt;&lt;BR /&gt;I tried with following but does not help&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="c-message_kit__gutter" style="padding: 8px 20px; color: #1d1c1d; font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px; background-color: #f8f8f8;"&gt;&lt;EM&gt;mavg(1vw, avg(align(900s, mean, ts(telegraf.response.times.99.percentile , accountid=“123” and env=“prod” and myvar!=“true”))))&lt;/EM&gt;&lt;/P&gt;&lt;DIV class="c-message_kit__gutter__right" data-qa="message_content" style="padding: 8px 8px 8px 16px; margin: -12px -8px -16px -16px;"&gt;&lt;DIV class="c-message_kit__blocks c-message_kit__blocks--rich_text" style="margin-bottom: 4px;"&gt;&lt;DIV class="c-message__message_blocks c-message__message_blocks--rich_text"&gt;&lt;DIV class="p-block_kit_renderer" data-qa="block-kit-renderer"&gt;&lt;DIV class="p-block_kit_renderer__block_wrapper--first p-block_kit_renderer__block_wrapper"&gt;&lt;DIV class="p-rich_text_block"&gt;&lt;DIV class="p-rich_text_section"&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="c-message__actions c-message_actions__container" style="padding: 2px; color: #1d1c1d; font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px;"&gt;&lt;BUTTON class="c-button-unstyled c-icon_button--light c-icon_button--size_small c-message_actions__button c-icon_button" data-qa="add_reaction_action" style="padding: unset; background-position: initial; text-align: initial;" type="button"&gt;&lt;/BUTTON&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 23:51:24 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Wavefront-by-VMware-Discussions/mavg-query-timeout-when-called-through-the-REST-api/m-p/1849258#M518</guid>
      <dc:creator>kuldeepjain</dc:creator>
      <dc:date>2020-01-31T23:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: mavg query timeout when called through the REST api</title>
      <link>https://communities.vmware.com/t5/Wavefront-by-VMware-Discussions/mavg-query-timeout-when-called-through-the-REST-api/m-p/1849259#M519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting - I'd expect the API call to return faster than the UI (because there's no need to render anything). What parameters are you using for the API call?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2020 19:47:21 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Wavefront-by-VMware-Discussions/mavg-query-timeout-when-called-through-the-REST-api/m-p/1849259#M519</guid>
      <dc:creator>humphrey_wf</dc:creator>
      <dc:date>2020-02-03T19:47:21Z</dc:date>
    </item>
  </channel>
</rss>

