Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/jenkins/jenkins_nodes_ | ||
|---|---|---|
| 157 | 157 |
print "graph_vlabel Executors\n"; |
| 158 | 158 |
print "graph_info The Graph shows the Jenkins Executors\n"; |
| 159 | 159 |
print "executors_offline.label offline\n"; |
| 160 |
print "executors_offline.type GAUGE\n";
|
|
| 160 |
print "executors_offline.type GAUGE\n"; |
|
| 161 | 161 |
print "executors_offline.draw AREA\n"; |
| 162 |
print "executors_offline.colour 8A8A8A\n";
|
|
| 162 |
print "executors_offline.colour 8A8A8A\n"; |
|
| 163 | 163 |
print "executors_busy.label busy\n"; |
| 164 |
print "executors_busy.type GAUGE\n";
|
|
| 164 |
print "executors_busy.type GAUGE\n"; |
|
| 165 | 165 |
print "executors_busy.draw STACK\n"; |
| 166 | 166 |
print "executors_idle.label idle\n"; |
| 167 |
print "executors_idle.type GAUGE\n";
|
|
| 168 |
print "executors_idle.draw STACK\n";
|
|
| 167 |
print "executors_idle.type GAUGE\n"; |
|
| 168 |
print "executors_idle.draw STACK\n"; |
|
| 169 | 169 |
} |
| 170 | 170 |
|
| 171 | 171 |
} else {
|
| ... | ... | |
| 249 | 249 |
} |
| 250 | 250 |
|
| 251 | 251 |
if( $type eq "executors" ) {
|
| 252 |
my $busyExecutors = $parsed->{'busyExecutors'};
|
|
| 253 |
my $totalExecutors = 0;
|
|
| 252 |
my $busyExecutors = $parsed->{'busyExecutors'};
|
|
| 253 |
my $totalExecutors = 0; |
|
| 254 | 254 |
my $offlineExecutors = 0; |
| 255 | 255 |
foreach my $cur(@{$parsed->{'computer'}}) {
|
| 256 | 256 |
$totalExecutors += $cur->{'numExecutors'};
|
| ... | ... | |
| 258 | 258 |
$offlineExecutors += $cur->{'numExecutors'};
|
| 259 | 259 |
} |
| 260 | 260 |
} |
| 261 |
print "executors_idle.value ", ($totalExecutors - $busyExecutors - $offlineExecutors), "\n";
|
|
| 262 |
print "executors_busy.value $busyExecutors\n";
|
|
| 263 |
print "executors_offline.value $offlineExecutors\n";
|
|
| 261 |
print "executors_idle.value ", ($totalExecutors - $busyExecutors - $offlineExecutors), "\n"; |
|
| 262 |
print "executors_busy.value $busyExecutors\n"; |
|
| 263 |
print "executors_offline.value $offlineExecutors\n"; |
|
| 264 | 264 |
} |
| 265 | 265 |
} |
| 266 | 266 |
|
Formats disponibles : Unified diff