You can "tell" JMeter to store these values into .jtl results file by adding the following line to user.properties file (it is located in /bin folder of your JMeter installation)
sample_variables=r_g1,r_g2,r_g3
Variables will be stored in .jtl file along with the other test result information like
1434196234292,251,OS Process Sampler,0,OK,Thread Group 1-1,text,true,21,1,1,0,123,456,789
(scroll to the right of the line as the values may be hidden)
You can use Regular Expression Extractor to get the values from the OS Process Sampler as follows:
Configure it as follows:
r
r1=(\d+) r2=(\d+) r3=(\d+)
$1$$2$$3$
It will result in the following variables:
You can "tell" JMeter to store these values into .jtl results file by adding the following line to user.properties file (it is located in /bin folder of your JMeter installation)
Variables will be stored in .jtl file along with the other test result information like
(scroll to the right of the line as the values may be hidden)
See Apache JMeter Properties Customization Guide to learn more about JMeter properties and ways of setting/overriding them.
Once you store results you should be able to graph the values you can use Microsoft Excel, Libre Office or equivalent.