raintank / worldping-api

Worldping Backend Service
Other
25 stars 18 forks source link

Make Endpoint List panel respect $endpoint variables #26

Open woodsaj opened 8 years ago

woodsaj commented 8 years ago

Issue by mattttt Saturday Oct 17, 2015 at 01:25 GMT Originally opened as https://github.com/raintank/grafana/issues/494


Ref: https://github.com/raintank/grafana/tree/master/public/plugins/raintank/panels/raintankEndpointList

Would like to add something into this panel that will filter the list of endpoints if an $endpoint variable exists. For example:

All that said, I assume it's best to handle that in the same panel, but open to separate panels as well.

(This is one thing I'm considering for consolidating the Litmus screens into the dashboard views.)

woodsaj commented 8 years ago

Comment by woodsaj Saturday Oct 17, 2015 at 16:09 GMT


Currently on tags are supported as filters when calling the endpoint list command. So we will need to extend this functionality to the other endpoint attributes (name, slug, id)

woodsaj commented 8 years ago

Comment by woodsaj Saturday Oct 17, 2015 at 16:34 GMT


It should be noted, that this functionality will be pretty limited until templateVariable formatting becomes per panel. At present, the format of the variables is per dashboard (regex, glob, lucene, etc..). This means that you cant use the same template variable across panels that require a different format. Graphite queries for example require the glob format, while this panel will require a url format.

https://github.com/grafana/grafana/issues/2918