This post summarises the progress in the first week of the coding period.
First week overlapped a bit with my final year engineering exams. But I managed to catch up the things well.
Now, To fetch the metric values from PMDA there are three popular ways provided by the pcp framework.
src/python/pcp/pmcc.py. It is nicely written class which provides easy and efficient ways to fetch the required metrics and their values. An example program using pmcc module is
Before implementing the example, I put some time to read the required pmcc code and the pcp-iotstat example. It gave the basic idea of what steps should be followed. Then wrote a small code which would basically fetch the metric
disk.all.write to print the total no of read and writes operations summed over all disks.
The code can be found here.
That’s all folks.