Skip to content

Commit

Permalink
Not collecting unmapped fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Aug 13, 2020
1 parent d7066eb commit 60e3074
Showing 1 changed file with 1 addition and 46 deletions.
47 changes: 1 addition & 46 deletions metricbeat/module/elasticsearch/node_stats/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ var (
"deleted": c.Int("deleted"),
}),
"fielddata": c.Dict("fielddata", s.Schema{
"evictions": s.Object{
"count": c.Int("evictions"),
},
"memory": s.Object{
"bytes": c.Int("memory_size_in_bytes"),
},
Expand All @@ -104,29 +101,11 @@ var (
},
}),
"query_cache": c.Dict("query_cache", s.Schema{
"evictions": s.Object{
"count": c.Int("evictions"),
},
"hits": s.Object{
"count": c.Int("hit_count"),
},
"misses": s.Object{
"count": c.Int("miss_count"),
},
"memory": s.Object{
"bytes": c.Int("memory_size_in_bytes"),
},
}),
"request_cache": c.Dict("request_cache", s.Schema{
"evictions": s.Object{
"count": c.Int("evictions"),
},
"hits": s.Object{
"count": c.Int("hit_count"),
},
"misses": s.Object{
"count": c.Int("miss_count"),
},
"memory": s.Object{
"bytes": c.Int("memory_size_in_bytes"),
},
Expand Down Expand Up @@ -231,24 +210,17 @@ var (
"os": c.Dict("os", s.Schema{
"cpu": c.Dict("cpu", s.Schema{
"load_avg": c.Dict("load_average", s.Schema{
"1m": c.Float("1m", s.Optional),
"5m": c.Float("5m", s.Optional),
"15m": c.Float("15m", s.Optional),
"1m": c.Float("1m", s.Optional),
}, c.DictOptional), // No load average reported by ES on Windows
}),
"cgroup": c.Dict("cgroup", s.Schema{
"cpuacct": c.Dict("cpuacct", s.Schema{
"control_group": c.Str("control_group"),
"usage": s.Object{
"ns": c.Int("usage_nanos"),
},
}),
"cpu": c.Dict("cpu", s.Schema{
"control_group": c.Str("control_group"),
"cfs": s.Object{
"period": s.Object{
"us": c.Int("cfs_period_micros"),
},
"quota": s.Object{
"us": c.Int("cfs_quota_micros"),
},
Expand All @@ -260,9 +232,6 @@ var (
"times_throttled": s.Object{
"count": c.Int("number_of_times_throttled"),
},
"time_throtted": s.Object{
"ns": c.Int("time_throttled_nanos"),
},
}),
}),
"memory": c.Dict("memory", s.Schema{
Expand All @@ -281,24 +250,13 @@ var (
"cpu": c.Dict("cpu", s.Schema{
"pct": c.Int("percent"),
}),
"file_descriptors": s.Object{
"max": s.Object{
"count": c.Int("max_file_descriptors"),
},
"open": s.Object{
"count": c.Int("open_file_descriptors"),
},
},
}),
"thread_pool": c.Dict("thread_pool", s.Schema{
"bulk": c.Dict("bulk", threadPoolStatsSchema, c.DictOptional),
"index": c.Dict("index", threadPoolStatsSchema, c.DictOptional),
"write": c.Dict("write", threadPoolStatsSchema, c.DictOptional),
"generic": c.Dict("generic", threadPoolStatsSchema),
"get": c.Dict("get", threadPoolStatsSchema),
"management": c.Dict("management", threadPoolStatsSchema),
"search": c.Dict("search", threadPoolStatsSchema),
"watcher": c.Dict("watcher", threadPoolStatsSchema, c.DictOptional),
}),
}

Expand All @@ -325,9 +283,6 @@ var (
}

threadPoolStatsSchema = s.Schema{
"threads": s.Object{
"count": c.Int("threads"),
},
"queue": s.Object{
"count": c.Int("queue"),
},
Expand Down

0 comments on commit 60e3074

Please sign in to comment.