[drraw-users] Trying to create a Grouped Dashboard with Templates Style Regex
David Nolan
vitroth+ at cmu.edu
Mon Dec 18 22:52:41 EST 2006
On 12/18/06, Eric Law <ericslaw at gmail.com> wrote:
> David,
> Thanks for the quick response!
>
> I've stumbled upon how to use the Template Base field more properly
> (details below),
> but I am still prompted for the 'View' when I click on the dashboard.
>
It will always provide the time period and filter boxes at the top of
the page, but should be displaying graphs below those fields if its
working correctly...
> Also, is there a wiki or somesuch where we can put some 'recipes' ?
> It seems that using this tool is still a bit of hit-n-miss to find all
> the work-arounds
> and I'll have to learn and document them anyway....
I don't believe there is one now, but I'll second that idea....
> >From Template1:
> Base Regular Expression: bycolo.(.*).pool
> Selection Regular Expression: $1
> Examples:
> pools/pool-bycolo/datacenter1-admin/pool.rrd
> pools/pool-bycolo/datacenter1-search/pool.rrd
> pools/pool-bycolo/datacenter2-user/pool.rrd
> pools/pool-bycolo/datacenter2-catalog/pool.rrd
> I have about 80 of these
>
That looks good so far, I'll assume the templates themselves work.
> Dashboard:
> [1st template]
> Template/Available Template Selections: Template1
> Selection: datacenter1-admin
> *note: this doesn't seem to be used,
> but helps determine what your regex's are matched against?
Correct, this field is shown merely as an aid to building the dashboard.
> Template Style: Regex
> Template Base: (datacenter1.*)
> *note: trying to filter on just the first datacenter
> Row Name: ^datacenter.-(.*)
> *note: trying to extract just the functional pool name for each row
I don't think you need any parenthesis on the Template Base, as
subpatterns from this match are not used anywhere.
I wonder if your problem is the ^ in your Row Name, since the
selection you're matching against is already a partial file name from
the template match. Without looking at the code I could believe that
drraw is actually assembling a single regexp, not running one match
then a second match, which would mean you're putting a ^ in the middle
of a regexp. Try just: datacenter.-(.*)
> However, when I select this 'dashboard', it prompts me to select something,
> but the choice is only '1'. Is that the 'filter' for the dashboard?
> I'm not sure why the dashboard is asking for feedback when I view it.
>
That seems more like what a Standard dashboard does, instead of a
grouped dashboard. You didn't change the type by accident did you?
-David
More information about the drraw-users
mailing list