apps.plugin: remove "Normalization Ratio" internal charts (#18004)
apps remove normalization internal charts
Ilya Mashchenko committed
Jun 24, 2024 at 16:39 UTC
6dd9903b2827dd3bf5c69d32b05bbf83b8476425
1 file changed
-57
src/collectors/apps.plugin/apps_output.c
-57
@@ -62,30 +62,6 @@ void send_resource_usage_to_netdata(usec_t dt) {
62
"DIMENSION new_pids 'new pids' incremental 1 1\n"
63
, update_every
64
);
65
-
66
- fprintf(stdout,
67
- "CHART netdata.apps_fix '' 'Apps Plugin Normalization Ratios' 'percentage' apps.plugin netdata.apps_fix line 140002 %1$d\n"
68
- "DIMENSION utime '' absolute 1 %2$llu\n"
69
- "DIMENSION stime '' absolute 1 %2$llu\n"
70
- "DIMENSION gtime '' absolute 1 %2$llu\n"
71
- "DIMENSION minflt '' absolute 1 %2$llu\n"
72
- "DIMENSION majflt '' absolute 1 %2$llu\n"
73
- , update_every
74
- , RATES_DETAIL
75
- );
76
-
77
- if(include_exited_childs)
78
- fprintf(stdout,
79
- "CHART netdata.apps_children_fix '' 'Apps Plugin Exited Children Normalization Ratios' 'percentage' apps.plugin netdata.apps_children_fix line 140003 %1$d\n"
80
- "DIMENSION cutime '' absolute 1 %2$llu\n"
81
- "DIMENSION cstime '' absolute 1 %2$llu\n"
82
- "DIMENSION cgtime '' absolute 1 %2$llu\n"
83
- "DIMENSION cminflt '' absolute 1 %2$llu\n"
84
- "DIMENSION cmajflt '' absolute 1 %2$llu\n"
85
- , update_every
86
- , RATES_DETAIL
87
- );
88
-
65
}
66
67
fprintf(stdout,
@@ -118,39 +94,6 @@ void send_resource_usage_to_netdata(usec_t dt) {
94
, apps_groups_targets_count
95
, targets_assignment_counter
96
);
121
-
122
- fprintf(stdout,
123
- "BEGIN netdata.apps_fix %"PRIu64"\n"
124
- "SET utime = %u\n"
125
- "SET stime = %u\n"
126
- "SET gtime = %u\n"
127
- "SET minflt = %u\n"
128
- "SET majflt = %u\n"
129
- "END\n"
130
- , dt
131
- , (unsigned int)(utime_fix_ratio * 100 * RATES_DETAIL)
132
- , (unsigned int)(stime_fix_ratio * 100 * RATES_DETAIL)
133
- , (unsigned int)(gtime_fix_ratio * 100 * RATES_DETAIL)
134
- , (unsigned int)(minflt_fix_ratio * 100 * RATES_DETAIL)
135
- , (unsigned int)(majflt_fix_ratio * 100 * RATES_DETAIL)
136
- );
137
-
138
- if(include_exited_childs)
139
- fprintf(stdout,
140
- "BEGIN netdata.apps_children_fix %"PRIu64"\n"
141
- "SET cutime = %u\n"
142
- "SET cstime = %u\n"
143
- "SET cgtime = %u\n"
144
- "SET cminflt = %u\n"
145
- "SET cmajflt = %u\n"
146
- "END\n"
147
- , dt
148
- , (unsigned int)(cutime_fix_ratio * 100 * RATES_DETAIL)
149
- , (unsigned int)(cstime_fix_ratio * 100 * RATES_DETAIL)
150
- , (unsigned int)(cgtime_fix_ratio * 100 * RATES_DETAIL)
151
- , (unsigned int)(cminflt_fix_ratio * 100 * RATES_DETAIL)
152
- , (unsigned int)(cmajflt_fix_ratio * 100 * RATES_DETAIL)
153
- );
97
}
98
99
void send_collected_data_to_netdata(struct target *root, const char *type, usec_t dt) {