-
Notifications
You must be signed in to change notification settings - Fork 12.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support more wildcards in filters #228
Comments
This feature request should probably be created for graphite-web. Grafana filters use the /metrics/find/ API in graphite-web to populate filter options. But I think that API supports all the the expression options you list above. So it should work. Did you get an error when you tried the above filter disk-{sd[ab],md?} and remember the query needs to be an absolute metric path, so in your case host.somehost.disk-{sd[ab],md?} might work better. Regarding the "all" option should use the query instead of just adding all options in a {option1,option2, option3} expression. That is not possible as for example: Would then be applied to host.somehost.[[DISK]].disk_octets.read as |
Today I rechecked with the current version of grafana and a recent version of graphite-web. |
Once more reopened. Now I (re-)found the bug: This is only the case when using the asterisk as wildcard and works perfectly fine with all other wildcards/lists. |
yes, if you check the "Include all" checkbox and the query ends with a wildcard the "All" option will be a an asterix as value. I guess I can fix this by checking if the query ends with dot.asterix instead of just wildcard. In that case "All" would be all options in a {option1, option2, etc} |
isn't it possible to just take the wildcard specified in the filter and use it in the target of the query? |
@HerrBerg yes, if I parsed out the last segment, that is everything after the last dot, that would work. |
For filters please allow all wildcards that are supported by graphite.
These are AFAIK [1]:
Additionally the "all" selector should return the filter itself.
This would be very hand for selecting e.g. just the metrics for the disk devices collected without partitions:
Filter DISK: disk-{sd[ab],md?}
Query: host.somehost.[[DISK]].disk_octets.read
[1] http://graphite.readthedocs.org/en/latest/render_api.html#graphing-metrics
The text was updated successfully, but these errors were encountered: