RRD Tool : Add 2 rrd graphs - graph

I have 3 RRD graphs for ipTraffic. I want to add those three RRD graphs as one to display the total ipTraffic graph.
Please can someone guide me on this?

If you are using RRDTool directly, and your data are in separate RRD files, then you can still use rrd graph with your DS definitions referring to different RRD files. There is no requirement in RRDTool to have only a single source of data.
rrdtool graph ...
DEF:a=file1.rrd:ds0:AVERAGE
DEF:b=file2.rrd:ds0:AVERAGE
DEF:c=file3.rrd:ds0:AVERAGE
...
LINE:a#ff0000:File_1
LINE:b#00ff00:File_2
LINE:c#0000ff:File_3
More documentation and examples exist at the RRDTool website
However, from your context I would guess that you are possibly using MRTG in confunction with RRDTool to collect and display the data? If this is the case, then the only way you can do it without coding is if you are using the Routers2 frontend for MRTG/RRD. In this case, you can use the routers.cgi*Graph directive to define a userdefined graph that displays multiple Targets on the same axis. If your Targets are in separate configuration files, then you can always build a new configuration file that uses Include to include them into a single place before defining the UserDefined graph over the top.
An alternative is if you use rrdcgi, but this will require you to compose the RRDTool commandline by hand, as in the first case.

Related

Plotting multiple variables in JMeter Custom Graph

Using the below configuration I am able to plot a variable in JMeter custom graph section.
But is there a way to plot similar multiple variables in same graph?
<sample_variables>var1</sample_variables>
<jmeter.reportgenerator.graph.custom_graph1.classname>org.apache.jmeter.report.processor.graph.impl.CustomGraphConsumer</jmeter.reportgenerator.graph.custom_graph1.classname>
<jmeter.reportgenerator.graph.custom_graph1.title>Test Custom Graph 1</jmeter.reportgenerator.graph.custom_graph1.title>
<jmeter.reportgenerator.graph.custom_graph1.property.set_Y_Axis>Response Times</jmeter.reportgenerator.graph.custom_graph1.property.set_Y_Axis>
<jmeter.reportgenerator.graph.custom_graph1.property.set_X_Axis>Over Time</jmeter.reportgenerator.graph.custom_graph1.property.set_X_Axis>
<jmeter.reportgenerator.graph.custom_graph1.property.set_granularity>60000</jmeter.reportgenerator.graph.custom_graph1.property.set_granularity>
<jmeter.reportgenerator.graph.custom_graph1.property.set_Sample_Variable_Name>var1</jmeter.reportgenerator.graph.custom_graph1.property.set_Sample_Variable_Name>
As of JMeter 5.5 it's not possible, however you can have multiple charts, one per Sample Variable
Also JMeter .jtl result files are basically CSV files so you can add another page and use i.e. Google Charts library for plotting whatever you want there.

Graphviz: How to include multiple graphs in the same graph?

In Jupyter notebook, I am writing code that deals with a graph. It involves a series of transformations on the given graph. I am using graphviz to render the graphs inline. I can only render one graph at a time.
How do I render more than one graph side by side so that I can see successive transformations of the graph?
I know that 'subgraph' can be used to cluster different components of the graph. But I can't use it because it draws connections between all those subgraphs.
But I can't use it because it draws connections between all those subgraphs.
Sounds like the problem is that you have nodes with the same names across different subgraphs.
GraphViz has no per-subgraph namespacing mechanism. Therefore, you will need to somehow make all node names unique, even across subgraphs. You could do this by, for example, prefixing every node name with an unique subgraph ID.
Note that node labels don't need to be the same as node names. For more information, see:
graphviz: subgraph has same node, how to unique

Elki plot cluster points directly from java

Is it possible to plot Elki's cluster results to a graph directly using Elki? I don't see any test cases http://elki.dbs.ifi.lmu.de/browser/elki/elki/src/test/java#de/lmu/ifi/dbs/elki which do this. I know it's possible to plot points using java but I wanted to do that using Elki.
Please see the class ExportVisualizations to generate SVG plots.
http://elki.dbs.ifi.lmu.de/browser/elki/addons/batikvis/src/main/java/de/lmu/ifi/dbs/elki/visualization/ExportVisualizations.java
Visualizations are in the "addon/batikvis" module, because of the Apache Batik dependency.
To display the SVG file, use Apache Batik.

How to extract plots from Netlogo?

I have to write a report about a model that I have built using Netlogo. I have made many plots of model's variables and I'd like to extract them and put them in my report to show how these variables vary upon the time. These variables represent what the change of some parameters imply. So, I'd like to obtain a better plot than netlogo's one, because netlogo's plots haven't got enumerated axis and I'd like plots with enumerated axis.
It would be amazing to put the plot in a word document or in a power point document
See the NetLogo dictionary entry for export-all-plots. The easiest way to access this is the menu File > Export > Export All Plots ... and then choose a folder/directory to store the file and a file name. You will then get a file in csv format that you can open in your graphing package (eg R, Excel).

Graphite: multiple series with a single command

I would like to put two series in the same graph on the graphite dashboard. However, since the dashboard requires single-line commands I could not find a way that doesn't involve the use of a wildcard.
Here's an example of the two series I would like in the same graph:
sum(base.foo.bar.positive.*)
sum(base.foo.bar.negative.*)
I tried several separators but I could not get it to work. Any ideas?
You have a few options here...
Merge the 2 graphs on to the graph via the drag and drop in the dashboard
OR
Use the sumSeriesWithWildcards() function
Merge 2 or more wildcard matching
Open your first graph on the dashboard
Open your second graph on the same dashboard
Click and hold the second graph and drag it over the first graph
Use groupByNode() and wildcard matching
This is not as nice, and will not always work however you will be able to do this all in one line.
sumSeriesWithWildcards(base.foo.bar.{positive,negative}.*, 3)
This will do the following:
Select all all the graphs that match base.foo.bar.positive.* and base.foo.bar.negative.*
Sum the data by the node at position 3: positive, negative
You might want to have a read over the following page: http://graphite.readthedocs.org/en/1.0/functions.html

Resources