[drraw-users] Trying to create a Grouped Dashboard with Templates Style Regex
Eric Law
ericslaw at gmail.com
Tue Dec 19 11:01:57 EST 2006
On 12/18/06, David wrote:
> 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...
>
The 'View' form appears before the normal display of the dashboard.
Hovering over the time periods shows that I could add fields to the
URL in hopes of satisfying the form. I tried View=1, but it didn't
work. I tried Base=1 and it worked.
>
> > 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....
>
Wonder what the top 5 questions are for a FAQ or cookbook might be.
My multicolumn dashboard was not the first mistake I've made.
I would also include tips on how to insure documenting the cases in
which the RRD file being displayed on the graph does and does not show
up in the graph title.
(I still dont know the answer there... but have some templates that
show it, and others that dont).
>
>
> > >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.
>
Hmmmm I wonder if having that subexpression parenthesis is causing it
to think that the user must pick a base for the dashboard?
>
> 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.-(.*)
>
The anchor '^' appears to be operating on the selection, not the
entire RRD file.
The dashboard works well with it there. This was another guess I was taking.
>
> > 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?
>
I've noticed that the form sometimes switches between Groups and Standard,
but checking the latest config, it's still set to Grouped.
> -David
> _______________________________________________
> drraw-users mailing list
> drraw-users at taranis.org
> http://web.taranis.org/mailman/listinfo/drraw-users
>
More information about the drraw-users
mailing list