Skip to content

Commit dac261d

Browse files
authored
2.1.3 (#7)
* Update to commons 2.2.3 * Update to commons 2.2.3 * Update to commons 2.2.3 * Fixing a missed bug * Disk Usage bug fix, version upgrade * Update to commons 2.2.3
1 parent f886e5d commit dac261d

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# AppDynamics Extensions Linux Monitor CHANGELOG
22

3+
4+
## 2.1.4 - Jun5, 2020
5+
1. Disk Usgae Bug fix
6+
37
## 2.1.3 - May 8, 2020
48
1. Moved Linux monitor to commons 2.2.3 framework
59

Diff for: pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<groupId>com.appdynamics.extensions</groupId>
1313
<artifactId>linux-monitoring-extension</artifactId>
14-
<version>2.1.3</version>
14+
<version>2.1.4</version>
1515
<packaging>jar</packaging>
1616

1717
<name>linux-monitoring-extension</name>

Diff for: src/main/java/com/appdynamics/extensions/linux/Stats.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ public List<Metric> getDiskUsage() {
203203
logger.debug("Fetching diskusage metricStats");
204204
BufferedReader reader = null;
205205
Map<String, Object> stats = new HashMap<>();
206+
List<Metric> metricData = new ArrayList<>();
206207
try {
207208
Process process = Runtime.getRuntime().exec(Constants.DISK_USAGE_CMD);
208209
process.waitFor();
@@ -239,7 +240,10 @@ boolean isBase(String[] stats) {
239240
}
240241
}
241242

242-
return generateMetrics(stats, "diskUsageStats");
243+
for(Map.Entry entry: stats.entrySet()){
244+
metricData.addAll(generateMetrics((Map<String, String>)entry.getValue(), "diskUsageStats", String.valueOf(entry.getKey())));
245+
}
246+
return metricData;
243247
}
244248

245249
public List<Metric> getFileStats() {

0 commit comments

Comments
 (0)