@cryptotaxi247 / netdata-1 / commits / 1f1ebf743

added physical reads/writes

Costa Tsaousis (ktsaou) committed May 10, 2014 at 00:46 UTC 1f1ebf743e353c36b1c3f56ea126858b84a297fc
1 file changed +34 -4
apps_plugin.c
+34 -4
@@ -866,7 +866,7 @@ void show_dimensions(void)
866 }
867 fprintf(stdout, "END\n");
868
869 - fprintf(stdout, "BEGIN apps.reads\n");
869 + fprintf(stdout, "BEGIN apps.lreads\n");
870 for (w = wanted_root; w ; w = w->next) {
871 if(w->target || (!w->processes && !w->exposed)) continue;
872
@@ -874,13 +874,29 @@ void show_dimensions(void)
874 }
875 fprintf(stdout, "END\n");
876
877 - fprintf(stdout, "BEGIN apps.writes\n");
877 + fprintf(stdout, "BEGIN apps.lwrites\n");
878 for (w = wanted_root; w ; w = w->next) {
879 if(w->target || (!w->processes && !w->exposed)) continue;
880
881 fprintf(stdout, "SET %s = %llu\n", w->name, w->io_logical_bytes_written);
882 }
883 fprintf(stdout, "END\n");
884 +
885 + fprintf(stdout, "BEGIN apps.preads\n");
886 + for (w = wanted_root; w ; w = w->next) {
887 + if(w->target || (!w->processes && !w->exposed)) continue;
888 +
889 + fprintf(stdout, "SET %s = %llu\n", w->name, w->io_storage_bytes_read);
890 + }
891 + fprintf(stdout, "END\n");
892 +
893 + fprintf(stdout, "BEGIN apps.pwrites\n");
894 + for (w = wanted_root; w ; w = w->next) {
895 + if(w->target || (!w->processes && !w->exposed)) continue;
896 +
897 + fprintf(stdout, "SET %s = %llu\n", w->name, w->io_storage_bytes_written);
898 + }
899 + fprintf(stdout, "END\n");
900 }
901
902 void show_charts(void)
@@ -956,14 +972,28 @@ void show_charts(void)
972 fprintf(stdout, "DIMENSION %s '' incremental 1 1\n", w->name);
973 }
974
959 - fprintf(stdout, "CHART apps.reads '' 'Apps Logical Reads' 'kilobytes/s' apps apps stacked 20002 %d\n", update_every);
975 + fprintf(stdout, "CHART apps.lreads '' 'Apps Logical Reads' 'kilobytes/s' apps apps stacked 20042 %d\n", update_every);
976 + for (w = wanted_root; w ; w = w->next) {
977 + if(w->target || (!w->processes && !w->exposed)) continue;
978 +
979 + fprintf(stdout, "DIMENSION %s '' incremental 1 1024\n", w->name);
980 + }
981 +
982 + fprintf(stdout, "CHART apps.lwrites '' 'Apps Logical Writes' 'kilobytes/s' apps apps stacked 20042 %d\n", update_every);
983 + for (w = wanted_root; w ; w = w->next) {
984 + if(w->target || (!w->processes && !w->exposed)) continue;
985 +
986 + fprintf(stdout, "DIMENSION %s '' incremental 1 1024\n", w->name);
987 + }
988 +
989 + fprintf(stdout, "CHART apps.preads '' 'Apps Reads' 'kilobytes/s' apps apps stacked 20002 %d\n", update_every);
990 for (w = wanted_root; w ; w = w->next) {
991 if(w->target || (!w->processes && !w->exposed)) continue;
992
993 fprintf(stdout, "DIMENSION %s '' incremental 1 1024\n", w->name);
994 }
995
966 - fprintf(stdout, "CHART apps.writes '' 'Apps Logical Writes' 'kilobytes/s' apps apps stacked 20002 %d\n", update_every);
996 + fprintf(stdout, "CHART apps.pwrites '' 'Apps Writes' 'kilobytes/s' apps apps stacked 20002 %d\n", update_every);
997 for (w = wanted_root; w ; w = w->next) {
998 if(w->target || (!w->processes && !w->exposed)) continue;
999