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

Gareth Healy garethahealy at gmail.com
Thu Dec 29 08:16:29 EST 2016


The OpenShift Agent when monitoring a prometheus endpoint creates a single
metric with tagged datapoints, i.e.:

https://github.com/coreos/etcd/blob/master/Documentation/v2/metrics.md#
http-requests


I1228 21:02:01.820530       1 metrics_storage.go:155] TRACE: Stored [3]
[counter] datapoints for metric named
[pod/fa32a887-cd08-11e6-ab2e-525400c583ad/custom/etcd_http_received_total]:
[
{2016-12-28 21:02:01.638767339 +0000 UTC 622 map[method:DELETE]}
{2016-12-28 21:02:01.638767339 +0000 UTC 414756 map[method:GET]}
{2016-12-28 21:02:01.638767339 +0000 UTC 33647 map[method:PUT]}
]

But when trying to view this via the grafana datasource, only 1 metric and
the aggregated counts are shown. What i'd like to do is something like the
below:

{
  "start": 1482999755690,
  "end": 1483000020093,
  "order": "ASC",
  "tags": "pod_namespace:etcd-testing",
  "groupDatapointsByTagKey": "method"
}


Search via tags or name (as-is) and group the datapoints by a tag key,
which would give you 3 lines, instead of 1.

Does that sound possible?

Cheers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hawkular-dev/attachments/20161229/fba8b2e4/attachment.html 


More information about the hawkular-dev mailing list