@cryptotaxi247 / netdata-1 / commits / f60d4d0e4

do not add apps_fix charts on freebsd

Costa Tsaousis (ktsaou) committed May 6, 2017 at 23:31 UTC f60d4d0e4ad8952dadb24d8f5dfddeddb5b2d507
1 file changed +31 -24
src/apps_plugin.c
+31 -24
@@ -2629,38 +2629,45 @@ void send_resource_usage_to_netdata(usec_t dt) {
2629 if(unlikely(!created_charts)) {
2630 created_charts = 1;
2631
2632 - fprintf(stdout
2633 - , "CHART netdata.apps_cpu '' 'Apps Plugin CPU' 'milliseconds/s' apps.plugin netdata.apps_cpu stacked 140000 %1$d\n"
2634 - "DIMENSION user '' incremental 1 1000\n"
2635 - "DIMENSION system '' incremental 1 1000\n"
2636 - "CHART netdata.apps_sizes '' 'Apps Plugin Files' 'files/s' apps.plugin netdata.apps_sizes line 140001 %1$d\n"
2637 - "DIMENSION calls '' incremental 1 1\n"
2638 - "DIMENSION files '' incremental 1 1\n"
2639 - "DIMENSION pids '' absolute 1 1\n"
2640 - "DIMENSION fds '' absolute 1 1\n"
2641 - "DIMENSION targets '' absolute 1 1\n"
2642 - "DIMENSION new_pids 'new pids' incremental 1 1\n"
2643 - "CHART netdata.apps_fix '' 'Apps Plugin Normalization Ratios' 'percentage' apps.plugin netdata.apps_fix line 140002 %1$d\n"
2644 - "DIMENSION utime '' absolute 1 %2$llu\n"
2645 - "DIMENSION stime '' absolute 1 %2$llu\n"
2646 - "DIMENSION gtime '' absolute 1 %2$llu\n"
2647 - "DIMENSION minflt '' absolute 1 %2$llu\n"
2648 - "DIMENSION majflt '' absolute 1 %2$llu\n"
2632 + fprintf(stdout,
2633 + "CHART netdata.apps_cpu '' 'Apps Plugin CPU' 'milliseconds/s' apps.plugin netdata.apps_cpu stacked 140000 %1$d\n"
2634 + "DIMENSION user '' incremental 1 1000\n"
2635 + "DIMENSION system '' incremental 1 1000\n"
2636 + "CHART netdata.apps_sizes '' 'Apps Plugin Files' 'files/s' apps.plugin netdata.apps_sizes line 140001 %1$d\n"
2637 + "DIMENSION calls '' incremental 1 1\n"
2638 + "DIMENSION files '' incremental 1 1\n"
2639 + "DIMENSION pids '' absolute 1 1\n"
2640 + "DIMENSION fds '' absolute 1 1\n"
2641 + "DIMENSION targets '' absolute 1 1\n"
2642 + "DIMENSION new_pids 'new pids' incremental 1 1\n"
2643 + , update_every
2644 + );
2645 +
2646 +#if (ALL_PIDS_ARE_READ_INSTANTLY == 0)
2647 + fprintf(stdout,
2648 + "CHART netdata.apps_fix '' 'Apps Plugin Normalization Ratios' 'percentage' apps.plugin netdata.apps_fix line 140002 %1$d\n"
2649 + "DIMENSION utime '' absolute 1 %2$llu\n"
2650 + "DIMENSION stime '' absolute 1 %2$llu\n"
2651 + "DIMENSION gtime '' absolute 1 %2$llu\n"
2652 + "DIMENSION minflt '' absolute 1 %2$llu\n"
2653 + "DIMENSION majflt '' absolute 1 %2$llu\n"
2654 , update_every
2655 , RATES_DETAIL
2656 );
2657
2658 if(include_exited_childs)
2654 - fprintf(stdout
2655 - , "CHART netdata.apps_children_fix '' 'Apps Plugin Exited Children Normalization Ratios' 'percentage' apps.plugin netdata.apps_children_fix line 140003 %1$d\n"
2656 - "DIMENSION cutime '' absolute 1 %2$llu\n"
2657 - "DIMENSION cstime '' absolute 1 %2$llu\n"
2658 - "DIMENSION cgtime '' absolute 1 %2$llu\n"
2659 - "DIMENSION cminflt '' absolute 1 %2$llu\n"
2660 - "DIMENSION cmajflt '' absolute 1 %2$llu\n"
2659 + fprintf(stdout,
2660 + "CHART netdata.apps_children_fix '' 'Apps Plugin Exited Children Normalization Ratios' 'percentage' apps.plugin netdata.apps_children_fix line 140003 %1$d\n"
2661 + "DIMENSION cutime '' absolute 1 %2$llu\n"
2662 + "DIMENSION cstime '' absolute 1 %2$llu\n"
2663 + "DIMENSION cgtime '' absolute 1 %2$llu\n"
2664 + "DIMENSION cminflt '' absolute 1 %2$llu\n"
2665 + "DIMENSION cmajflt '' absolute 1 %2$llu\n"
2666 , update_every
2667 , RATES_DETAIL
2668 );
2669 +#endif
2670 +
2671 }
2672
2673 fprintf(stdout,