@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.