-
Notifications
You must be signed in to change notification settings - Fork 117
auto-generate graphs from wildcard #55
Comments
I have considered this to treat for instance node.munin.* and spit out a per node autogenerated set of graphs but have not gotten very far down that road yet |
This would be awesome functionality, and something I've thought about as well. |
I implemented it. I still need to test it a bit, but once I finished, I'll send you a pull request |
I sent 2 pull requests: I attached a small description of the change in the graphite-graph-dsl pull request, thought I'd better be more documented. Also, I have an example 'graph_gen' file for you. Since I'm fairly new to pull requests in GitHub, I don't know what's the best place for such a documentation and example. Can you advise? |
to help me review your feature I guess here is good, I def need to understand what this is all about better :) |
OK, area :none
background_color "#FFFFFF"
foreground_color "#333333"
major_grid_line_color "#ADADAD"
minor_grid_line_color "#E5E5E5"
generator :context => /(stats_counts\.target\.[\w-]+\.\d+)\.[\w-]+/,
:naming_pattern => /stats_counts\.target\.([\w-]+\.\d+)/,
:"field_prop:scale" => 1,
:stats => ["success", "error"],
:target_wrapper => 'integral(%s)' and generates from it new files with the 'graph' extension. From there on, the existing GraphiteGraph class takes over to generate the graphite URL. The file must hold a 'generator' component that must have the following:
Additional optional fields:
That's it. Everything else (such as the "area", "background_color" etc. components in the example above) will be passed on to all generated files. Also, if you put here regular "field" or "critical" or "warning" or any other component, they will appear in all generated files. A few important notes:
Another example: area :none
generator :context => /(stats\.gauges\.target\.[\w-]+\.\d+)\.[\w-]+/,
:naming_pattern => /stats\.gauges\.target\.([\w-]+\.\d+)/,
:"field_prop:scale" => 1,
:stats => ["status"] |
😍 |
👍👍 |
thumbs up here as well - is there any hopes for this to be a part of standard gdash? |
thumbs up, pretty much the only issue I have with gdash right now. |
Hi,
I use graphite a lot and have a few series of equivalent metrics for different devices/servers, for example:
stats.gauges.devices.*.*.status
Often new metrics of the same series are introduced, resulting in a long and dynamic list of metrics of the same series as above.
Currently, whenever there are new metrics (which happens a lot) I have to add new graphs for them manually to the matching Graphite/gdash dashboards.
I want to create a dashboard that would automatically detect and display the new metrics.
I could use a simple wildcard for a single "field" in gdash:
but that would result in a single graph with tons of metrics, rendering it hard to work with and practically unusable.
What I actually want to achieve is automatically creating a graph per metric, using the wildcard.
I searched a lot and didn't find a solution for this in gdash.
Is it currently supported? If not, is it planned to be?
Thank you
The text was updated successfully, but these errors were encountered: