Re: Multiples views of same data

"Kiss Gabor (Bitman)" <[email protected]> Thu, 13 May 2010 14:14:30 +0200 (CEST)
Newsgroups gmane.network.cricket.user
Message-ID <[email protected]>
> Is there a way to use the same data set in different views with different 
> draw-as directives?
> 
> I currently gather some basic data on one of our web sites:
> 
> datasource latf-login
>   ds-source  = "exec:0: /var/bbuser/bin/latfdata %bbdatadir%/%latfdatafile%"
>   rrd-ds-type   = GAUGE
> 
> datasource latf-follow-link
>   ds-source  = "exec:1: /var/bbuser/bin/latfdata %bbdatadir%/%latfdatafile%"
>   rrd-ds-type   = GAUGE
>   
> datasource latf-submit-form
>   ds-source     = "exec:2:/var/bbuser/bin/latfdata %bbdatadir%/%latfdatafile%"
>   rrd-ds-type   = GAUGE
> 
> datasource latf-dl-pdf
>   ds-source     = "exec:3:/var/bbuser/bin/latfdata %bbdatadir%/%latfdatafile%"
>   rrd-ds-type   = GAUGE
> 
> targetType  = latf-times
>   ds        = "latf-login, latf-follow-link, latf-submit-form, latf-dl-pdf"
>   view      = "latf-performance"
> 
> view  latf-performance
>     elements = "latf-login latf-follow-link latf-submit-form latf-dl-pdf"
> 
> Is there any way to use the same data gathered above but in a different view. 
> Specifically I'd like to have one normal line graph and another with the data  
> stacked.

Line type and stacking is described in Graph Dictionary rather than
View. The Cricket Reference guide writes:

| Each named graph dictionary entry (not --default--) should share the name of
| a datasource dictionary entry. In this respect, the graph dictionary could be
| merged with the datasource dictionary.

In other words each Graph belongs to one and only one Datasource and
vice versa. If you need different visual representations of the
same info you have to create several Datasources based on the same
DS-Source.
As far as I understand. :-)

Gabor

------------------------------------------------------------------------------