[Hawkular-dev] Ability to group by datapoint tag in Grafana

Gareth Healy garethahealy at gmail.com
Thu Jan 19 16:02:11 EST 2017


@John S,

No, i dont get back what i expect.

Based on the below data (below is logs from HOSA):

I0113 17:24:09.138095       1 metrics_storage.go:154] TRACE: Stored [5]
[gauge] datapoints for metric named
[pod/ded071be-d9a6-11e6-8140-525400c583ad/custom/prometheus_MyCamel_MeanProcessingTime]:

[{2017-01-13 17:24:09.117190753 +0000 UTC 18 map[type:routes
name:"route1"]}
{2017-01-13 17:24:09.117190753 +0000 UTC 0 map[type:processors
name:"transform2"]}
{2017-01-13 17:24:09.117190753 +0000 UTC 17 map[type:processors
name:"choice1"]}
{2017-01-13 17:24:09.117190753 +0000 UTC 8 map[type:processors
name:"transform1"]}
{2017-01-13 17:24:09.117190753 +0000 UTC 18 map[name:"MyCamel"
type:context]}]


With the below cURL:

curl -k -X GET -H "Content-Type: application/json" -H "Hawkular-Tenant:
$HAWKULAR_TENANT" -H "Authorization: Bearer $(oc sa get-token -n
openshift-infra heapster)"
"$HAWKULAR_URL/gauges/stats?start=1484320827578&end=1484329973940&bucketDuration=10d&tags=type:routes"

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.

On Thu, Jan 19, 2017 at 8:35 PM, John Mazzitelli <jmazzite at redhat.com>
wrote:

>
> On Thu, 2017-01-19 at 15:21 -0500, John Sanda wrote:
> > I think I already asked this before, but does the tag based bucketing
> > introduced in https://issues.jboss.org/browse/HWKMETRICS-373 help
> > here?
>
> I do not know... that would be a question for Gareth to answer.
> _______________________________________________
> hawkular-dev mailing list
> hawkular-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hawkular-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hawkular-dev/attachments/20170119/b8633ef7/attachment.html 


More information about the hawkular-dev mailing list