[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}-*" ], "index_patterns": [
"version": 7000001, ".monitoring-beats-${monitoring.template.version}-*"
],
"settings": { "settings": {
"index.number_of_shards": 1,
"index.number_of_replicas": 0,
"index.auto_expand_replicas": "0-1", "index.auto_expand_replicas": "0-1",
"index.codec": "best_compression",
"index.format": 6, "index.format": 6,
"index.codec": "best_compression" "index.number_of_replicas": 0,
"index.number_of_shards": 1
}, },
"version": 7000001,
"mappings": { "mappings": {
"doc": { "doc": {
"dynamic": false, "dynamic": false,
"properties": { "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": { "beats_stats": {
"properties": { "properties": {
"timestamp": {
"type": "date",
"format": "date_time"
},
"tags": {
"type": "keyword"
},
"beat": { "beat": {
"properties": { "properties": {
"uuid": { "host": {
"type": "keyword"
},
"name": {
"type": "keyword" "type": "keyword"
}, },
"type": { "type": {
"type": "keyword" "type": "keyword"
}, },
"uuid": {
"type": "keyword"
},
"version": { "version": {
"type": "keyword" "type": "keyword"
},
"host": {
"type": "keyword"
},
"name": {
"type": "keyword"
} }
} }
}, },
@ -76,6 +39,41 @@
"properties": { "properties": {
"beat": { "beat": {
"properties": { "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": { "memstats": {
"properties": { "properties": {
"gc_next": { "gc_next": {
@ -86,6 +84,9 @@
}, },
"memory_total": { "memory_total": {
"type": "long" "type": "long"
},
"rss": {
"type": "long"
} }
} }
} }
@ -126,6 +127,12 @@
"batches": { "batches": {
"type": "long" "type": "long"
}, },
"dropped": {
"type": "long"
},
"duplicates": {
"type": "long"
},
"failed": { "failed": {
"type": "long" "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"
} }
} }
} }