Hi,

Gareth, I see your PR is currently only for counters only, for the feature to be complete it should also be implemented on gauges, availability and strings.
And also, you will have the same issue if you try to use the "stats" endpoints (in Grafana it is used for single stats panels), so here also it should be implemented...

Which leads me to questioning: basically this feature is to "split" a time series based on data points tags. Is it really something we want to implement on the server side? 
Maybe the problem is that this series is built as an aggregation of several different "things", and should be split into several series at insertion?

On Mon, Jan 2, 2017 at 12:15 AM, Gareth Healy <garethahealy@gmail.com> wrote:
Have raised:
Will work on the grafana datasource support in next few days.

Cheers.

On Fri, Dec 30, 2016 at 6:29 PM, John Mazzitelli <mazz@redhat.com> wrote:
Thanks.

You should submit a feature request in the H-Metrics JIRA and link that JIRA to a PR for the H-Metrics team to peer review:

https://issues.jboss.org/projects/HWKMETRICS


----- Original Message -----
> I did some hacking (day 1 of Rx, so probably not the best "solution"). But
> works...
>
>    -
>    https://github.com/garethahealy/hawkular-metrics/commit/75c616f9be71a0b85ce5dee310c4dff828bb8f38
>
>
> Sample output:
>
>    - https://gist.github.com/garethahealy/00a90bbee2556b6f0a338ece87096c89
>
>
> And some test cURL commands:
>
>    - https://gist.github.com/garethahealy/0f46aad5d2da41b82aad5af317fad788
>
>
> Cheers.
>
> On Thu, Dec 29, 2016 at 4:33 PM, John Mazzitelli <mazz@redhat.com> wrote:
>
> > This would be a feature request on Hawkular-Metrics (if they don't do
> > something like this already - I do not know. I will defer to the H-Metrics
> > folks to talk about how they do querying off of tags).
> >
> > ----- Original Message -----
> > > 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.
> > >
> > > _______________________________________________
> > > hawkular-dev mailing list
> > > hawkular-dev@lists.jboss.org
> > > https://lists.jboss.org/mailman/listinfo/hawkular-dev
> > >
> > _______________________________________________
> > hawkular-dev mailing list
> > hawkular-dev@lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/hawkular-dev
> >
>


_______________________________________________
hawkular-dev mailing list
hawkular-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hawkular-dev