Skip to content

Commit 754817c

Browse files
committed
no number type bug fix
1 parent e484143 commit 754817c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>scouter.plugin.server</groupId>
66
<artifactId>scouter-plugin-server-influxdb</artifactId>
7-
<version>1.0.1-SNAPSHOT</version>
7+
<version>1.0.2-SNAPSHOT</version>
88
<packaging>jar</packaging>
99

1010
<name>scouter-plugin-server-influxdb</name>

src/main/java/scouter/plugin/server/influxdb/InfluxdbPlugin.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ public void counter(final PerfCounterPack pack) {
160160
continue;
161161
}
162162
Object value = valueOrigin.toJavaObject();
163+
if(!(value instanceof Number)) {
164+
continue;
165+
}
163166
String key = field.getKey();
164167
builder.field(key, value);
165168
}

0 commit comments

Comments
 (0)