<div dir="ltr">Hi John S,<div><br></div><div>No, still dont get any data (204 error) back with that endpoint either. </div><div><br></div><div>I tweaked the endpoint, as you had /stats/tags/<b><font color="#000000">type</font></b>/ - presume that was a typo, since it gives me a 404 and i can&#39;t see it mentioned in the docs so just removed it.</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>HAWKULAR_TENANT=&quot;fis2-monitoring-demo&quot;</div><div>MERTIC_ID=&quot;pod%2Fded071be-d9a6-11e6-8140-525400c583ad%2Fcustom%2Fprometheus_MyCamel_MeanProcessingTime&quot;</div><div><br></div><div>curl -v -k -X GET \</div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>-H &quot;Content-Type: application/json&quot; \</div></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>-H &quot;Hawkular-Tenant: $HAWKULAR_TENANT&quot; \</div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>-H &quot;Authorization: Bearer $(oc sa get-token -n openshift-infra heapster)&quot; \</div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>&quot;$HAWKULAR_URL/gauges/$MERTIC_ID/stats/tags/name:*?start=<span style="font-size:12.800000190734863px">1484320827578&amp;</span><wbr style="font-size:12.800000190734863px"><span style="font-size:12.800000190734863px">end=1484329973940</span>&quot;</div><div><br></div></blockquote></blockquote>Tried with both tag keys (name and type) and with the value set and wild-carded.<div><br></div><div>The $HAWKULAR_URL/gauges/$MERTIC_ID/raw endpoint returns data points.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 19, 2017 at 9:45 PM, John Sanda <span dir="ltr">&lt;<a href="mailto:jsanda@redhat.com" target="_blank">jsanda@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">You are using the wrong endpoint. It should be:<div><br></div><div>$HAWKULAR_URL/gauges/{metric_<wbr>id}/stats/tags/type/type:<wbr>routes?start=1484320827578&amp;<wbr>end=1484329973940</div><div><br></div><div>where {metric_id} is pod%2Fded071be-d9a6-11e6-<wbr>8140-525400c583ad%2Fcustom%<wbr>2Fprometheus_MyCamel_<wbr>MeanProcessingTime<br><div><br></div><div>And for this endpoint the bucketDuration parameter is not supported. The buckets are determined by the tag filters. The endpoint URL has changed from the initial implementation (and needs to be documented) but the examples in the ticket of how the buckets are determined are still valid.</div><div><div class="h5"><div><br></div><div><div><blockquote type="cite"><div>On Jan 19, 2017, at 4:02 PM, Gareth Healy &lt;<a href="mailto:garethahealy@gmail.com" target="_blank">garethahealy@gmail.com</a>&gt; wrote:</div><br class="m_4471023167235812419Apple-interchange-newline"><div><div dir="ltr">@John S,<div><br></div><div>No, i dont get back what i expect.</div><div><br></div><div>Based on the below data (below is logs from HOSA):</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>I0113 17:24:09.138095       1 metrics_storage.go:154] TRACE: Stored [5] [gauge] datapoints for metric named [pod/ded071be-d9a6-11e6-8140-<wbr>525400c583ad/custom/<wbr>prometheus_MyCamel_<wbr>MeanProcessingTime]: </div><div><br></div><div>[{2017-01-13 17:24:09.117190753 +0000 UTC 18 map[type:routes name:&quot;route1&quot;]} </div><div>{2017-01-13 17:24:09.117190753 +0000 UTC 0 map[type:processors name:&quot;transform2&quot;]} </div><div>{2017-01-13 17:24:09.117190753 +0000 UTC 17 map[type:processors name:&quot;choice1&quot;]} </div><div>{2017-01-13 17:24:09.117190753 +0000 UTC 8 map[type:processors name:&quot;transform1&quot;]} </div><div>{2017-01-13 17:24:09.117190753 +0000 UTC 18 map[name:&quot;MyCamel&quot; type:context]}]</div></blockquote><div><br></div><div>With the below cURL:</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>curl -k -X GET -H &quot;Content-Type: application/json&quot; -H &quot;Hawkular-Tenant: $HAWKULAR_TENANT&quot; -H &quot;Authorization: Bearer $(oc sa get-token -n openshift-infra heapster)&quot; &quot;$HAWKULAR_URL/gauges/stats?<wbr>start=1484320827578&amp;end=<wbr>1484329973940&amp;bucketDuration=<wbr>10d&amp;tags=type:routes&quot;</div><div><br></div></blockquote>I get no data back. From a reply i got from Joel (in this thread), its because the stats endpoint is working on metric tags, but i am wanting to look at datapoint tags.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 19, 2017 at 8:35 PM, John Mazzitelli <span dir="ltr">&lt;<a href="mailto:jmazzite@redhat.com" target="_blank">jmazzite@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br>
On Thu, 2017-01-19 at 15:21 -0500, John Sanda wrote:<br>
&gt; I think I already asked this before, but does the tag based bucketing<br>
&gt; introduced in <a href="https://issues.jboss.org/browse/HWKMETRICS-373" rel="noreferrer" target="_blank">https://issues.jboss.org/br<wbr>owse/HWKMETRICS-373</a> help<br>
&gt; here?<br>
<br>
</span>I do not know... that would be a question for Gareth to answer.<br>
<div class="m_4471023167235812419HOEnZb"><div class="m_4471023167235812419h5">______________________________<wbr>_________________<br>
hawkular-dev mailing list<br>
<a href="mailto:hawkular-dev@lists.jboss.org" target="_blank">hawkular-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/hawkular-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/hawkular-dev</a><br>
</div></div></blockquote></div><br></div>
______________________________<wbr>_________________<br>hawkular-dev mailing list<br><a href="mailto:hawkular-dev@lists.jboss.org" target="_blank">hawkular-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/hawkular-dev" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/hawkular-dev</a><br></div></blockquote></div><br></div></div></div></div></div><br>______________________________<wbr>_________________<br>
hawkular-dev mailing list<br>
<a href="mailto:hawkular-dev@lists.jboss.org">hawkular-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/hawkular-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/hawkular-dev</a><br>
<br></blockquote></div><br></div>