Merge "Make changes for Influxdb 0.9 Latest Stable"

This commit is contained in:
Jenkins 2015-06-23 18:24:52 +00:00 committed by Gerrit Code Review
commit 6dbf85140f
1 changed files with 8 additions and 3 deletions

View File

@ -182,10 +182,15 @@ public class InfluxV9MetricDefinitionRepo implements MetricDefinitionRepo {
Map<String, String> dims = new HashMap<>();
for (int i = 0; i < cols.length; ++i) {
if (!cols[i].equals("_region")
&& !cols[i].equals("_tenant_id")
&& !cols[i].equals("_id")) {
// Dimension names that start with underscore are reserved. I.e., _key, _region, _tenant_id.
// Influxdb inserts _key.
// Monasca Persister inserts _region and _tenant_id.
if (!cols[i].startsWith("_")) {
if (!vals[i].equalsIgnoreCase("null")) {
dims.put(cols[i], vals[i]);
}
}