paperlesspost/graphiti — Issue #17: Parameterized graphs
Author: omry
Created: 2011-12-22 16:57:05+00:00
State: open

Does graphiti supports the notion of a parameterized graph, or graph template?
for example, I am collecting stats using munin. lets look at memory, munin collects multiple series about it.
a good way to look at them, is to stack them in a specific order, for example:

"targets": [
[
"servers.web1.system.memory.swap",
{}
],
[
"servers.web1.system.memory.active",
{}
],
[
"servers.web1.system.memory.free",
{}
]
]

Now, I will probably want to repeat this for every server I have, where I replace web1 in the targets with the name of the server I want the graph for.

To support this, the above example can become a template, like :

"targets": [
[
"servers.$NAME.system.memory.swap",
{}
],
[
"servers.$NAME.system.memory.active",
{}
],
[
"servers.$NAME.system.memory.free",
{}
]
]

And the name should be passed somehow as a parameter when creating the graph.
what do you think?