[Monitoring] Add additional metric fields to Beats template (elastic/x-pack-elasticsearch#3337)

* [Monitoring] Add uptime.ms field to Beats template

* Add cpu mapping [WIP]

* sort fields

* hierarchical - no dots in fields

* add rss, more event metrics, system cpu and os load

* fix some mapping errors

Original commit: elastic/x-pack-elasticsearch@59cbcb4ee5
This commit is contained in:
Tim Sullivan 2018-01-12 14:26:04 -07:00 committed by GitHub
parent aba3f15d81
commit c9aa4e3d59
1 changed files with 148 additions and 51 deletions

View File

@ -1,74 +1,37 @@
{
"index_patterns": [ ".monitoring-beats-${monitoring.template.version}-*" ],
"version": 7000001,
"index_patterns": [
".monitoring-beats-${monitoring.template.version}-*"
],
"settings": {
"index.number_of_shards": 1,
"index.number_of_replicas": 0,
"index.auto_expand_replicas": "0-1",
"index.codec": "best_compression",
"index.format": 6,
"index.codec": "best_compression"
"index.number_of_replicas": 0,
"index.number_of_shards": 1
},
"version": 7000001,
"mappings": {
"doc": {
"dynamic": false,
"properties": {
"cluster_uuid": {
"type": "keyword"
},
"timestamp": {
"type": "date",
"format": "date_time"
},
"interval_ms": {
"type": "long"
},
"type": {
"type": "keyword"
},
"source_node": {
"properties": {
"uuid": {
"type": "keyword"
},
"host": {
"type": "keyword"
},
"transport_address": {
"type": "keyword"
},
"ip": {
"type": "keyword"
},
"name": {
"type": "keyword"
}
}
},
"beats_stats": {
"properties": {
"timestamp": {
"type": "date",
"format": "date_time"
},
"tags": {
"type": "keyword"
},
"beat": {
"properties": {
"uuid": {
"host": {
"type": "keyword"
},
"name": {
"type": "keyword"
},
"type": {
"type": "keyword"
},
"uuid": {
"type": "keyword"
},
"version": {
"type": "keyword"
},
"host": {
"type": "keyword"
},
"name": {
"type": "keyword"
}
}
},
@ -76,6 +39,41 @@
"properties": {
"beat": {
"properties": {
"cpu": {
"properties": {
"total": {
"properties": {
"norm": {
"properties": {
"pct": {
"type": "double"
}
}
},
"pct": {
"type": "double"
},
"value": {
"type": "double"
}
}
}
}
},
"info": {
"properties": {
"ephemeral_id": {
"type": "keyword"
},
"uptime": {
"properties": {
"ms": {
"type": "long"
}
}
}
}
},
"memstats": {
"properties": {
"gc_next": {
@ -86,6 +84,9 @@
},
"memory_total": {
"type": "long"
},
"rss": {
"type": "long"
}
}
}
@ -126,6 +127,12 @@
"batches": {
"type": "long"
},
"dropped": {
"type": "long"
},
"duplicates": {
"type": "long"
},
"failed": {
"type": "long"
},
@ -199,10 +206,100 @@
}
}
}
},
"system": {
"properties": {
"cpu": {
"properties": {
"cores": {
"type": "long"
},
"total": {
"properties": {
"norm": {
"properties": {
"pct": {
"type": "double"
}
}
},
"pct": {
"type": "double"
}
}
}
}
},
"load": {
"properties": {
"1": {
"type": "double"
},
"15": {
"type": "double"
},
"5": {
"type": "double"
},
"norm": {
"properties": {
"1": {
"type": "double"
},
"15": {
"type": "double"
},
"5": {
"type": "double"
}
}
}
}
}
}
}
}
},
"tags": {
"type": "keyword"
},
"timestamp": {
"format": "date_time",
"type": "date"
}
}
},
"cluster_uuid": {
"type": "keyword"
},
"interval_ms": {
"type": "long"
},
"source_node": {
"properties": {
"host": {
"type": "keyword"
},
"ip": {
"type": "keyword"
},
"name": {
"type": "keyword"
},
"transport_address": {
"type": "keyword"
},
"uuid": {
"type": "keyword"
}
}
},
"timestamp": {
"format": "date_time",
"type": "date"
},
"type": {
"type": "keyword"
}
}
}