Skip to content

Commit

Permalink
Merge pull request #19 from seabaylea/elasticsearch-2
Browse files Browse the repository at this point in the history
Update to work with Elasticsearch 2.x
  • Loading branch information
seabaylea committed Dec 8, 2015
2 parents 2196079 + b8d8165 commit 0e59186
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 30 deletions.
1 change: 0 additions & 1 deletion mappings/cpu.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"index": "appmetrics",
"type": "cpu",
"body": {
"_source" : {"compress" : true},
"_ttl" : {"enabled" : true, "default" : "90d"},
"properties": {
"timestamp": {"type": "date", "format": "dateOptionalTime"},
Expand Down
13 changes: 9 additions & 4 deletions mappings/eventloop.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"index": "appmetrics",
"type": "eventloop",
"body": {
"_source" : {"compress" : true},
"_ttl" : {"enabled" : true, "default" : "90d"},
"properties": {
"timestamp": {"type": "date", "format": "dateOptionalTime"},
Expand All @@ -13,9 +12,15 @@
"type": "nested",
"include_in_parent": true,
"properties": {
"latency.min": {"type": "long"},
"latency.max": {"type": "long"},
"latency.avg": {"type": "long"}
"latency": {
"type": "nested",
"include_in_parent": true,
"properties": {
"min": {"type": "long"},
"max": {"type": "long"},
"avg": {"type": "long"}
}
}
}
}
}
Expand Down
1 change: 0 additions & 1 deletion mappings/gc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"index": "appmetrics",
"type": "gc",
"body": {
"_source" : {"compress" : true},
"_ttl" : {"enabled" : true, "default" : "90d"},
"properties": {
"timestamp": {"type": "date", "format": "dateOptionalTime"},
Expand Down
3 changes: 1 addition & 2 deletions mappings/http.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"index": "appmetrics",
"type": "http",
"body": {
"_source" : {"compress" : true},
"_ttl" : {"enabled" : true, "default" : "90d"},
"properties": {
"timestamp": {"type": "date", "format": "dateOptionalTime"},
Expand All @@ -13,7 +12,7 @@
"type": "nested",
"include_in_parent": true,
"properties": {
"method": {"type": "string", "index": "not_analyzed"},
"method": {"type": "string", "index": "not_analyzed"},
"url": {"type": "string", "index": "not_analyzed"},
"duration": {"type": "long"}
}
Expand Down
1 change: 0 additions & 1 deletion mappings/leveldown.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"index": "appmetrics",
"type": "leveldown",
"body": {
"_source" : {"compress" : true},
"_ttl" : {"enabled" : true, "default" : "90d"},
"properties": {
"timestamp": {"type": "date", "format": "dateOptionalTime"},
Expand Down
1 change: 0 additions & 1 deletion mappings/memcached.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"index": "appmetrics",
"type": "memcached",
"body": {
"_source" : {"compress" : true},
"_ttl" : {"enabled" : true, "default" : "90d"},
"properties": {
"timestamp": {"type": "date", "format": "dateOptionalTime"},
Expand Down
31 changes: 18 additions & 13 deletions mappings/memory.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,34 @@
"index": "appmetrics",
"type": "memory",
"body": {
"_source" : {"compress" : true},
"_ttl" : {"enabled" : true, "default" : "90d"},
"properties": {
"timestamp": {"type": "date", "format": "dateOptionalTime"},
"hostName": {"type": "string", "index": "not_analyzed"},
"pid": {"type": "integer"},
"applicationName": {"type": "string", "index": "not_analyzed"},
"memory.process" : {
"memory" : {
"type": "nested",
"include_in_parent": true,
"properties": {
"private": {"type": "long"},
"physical": {"type": "long"},
"virtual": {"type": "long"}
"process" : {
"type": "nested",
"include_in_parent": true,
"properties": {
"private": {"type": "long"},
"physical": {"type": "long"},
"virtual": {"type": "long"}
}
},
"system" : {
"type": "nested",
"include_in_parent": true,
"properties": {
"physical": {"type": "long"},
"total": {"type": "long"}
}
}
}
},
"memory.system" : {
"type": "nested",
"include_in_parent": true,
"properties": {
"physical": {"type": "long"},
"total": {"type": "long"}
}
}
}
}
Expand Down
1 change: 0 additions & 1 deletion mappings/mongo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"index": "appmetrics",
"type": "mongo",
"body": {
"_source" : {"compress" : true},
"_ttl" : {"enabled" : true, "default" : "90d"},
"properties": {
"timestamp": {"type": "date", "format": "dateOptionalTime"},
Expand Down
1 change: 0 additions & 1 deletion mappings/mqlight.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"index": "appmetrics",
"type": "mqlight",
"body": {
"_source" : {"compress" : true},
"_ttl" : {"enabled" : true, "default" : "90d"},
"properties": {
"timestamp": {"type": "date", "format": "dateOptionalTime"},
Expand Down
1 change: 0 additions & 1 deletion mappings/mqtt.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"index": "appmetrics",
"type": "mqtt",
"body": {
"_source" : {"compress" : true},
"_ttl" : {"enabled" : true, "default" : "90d"},
"properties": {
"timestamp": {"type": "date", "format": "dateOptionalTime"},
Expand Down
1 change: 0 additions & 1 deletion mappings/mysql.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"index": "appmetrics",
"type": "mysql",
"body": {
"_source" : {"compress" : true},
"_ttl" : {"enabled" : true, "default" : "90d"},
"properties": {
"timestamp": {"type": "date", "format": "dateOptionalTime"},
Expand Down
1 change: 0 additions & 1 deletion mappings/postgres.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"index": "appmetrics",
"type": "postgres",
"body": {
"_source" : {"compress" : true},
"_ttl" : {"enabled" : true, "default" : "90d"},
"properties": {
"timestamp": {"type": "date", "format": "dateOptionalTime"},
Expand Down
1 change: 0 additions & 1 deletion mappings/redis.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"index": "appmetrics",
"type": "redis",
"body": {
"_source" : {"compress" : true},
"_ttl" : {"enabled" : true, "default" : "90d"},
"properties": {
"timestamp": {"type": "date", "format": "dateOptionalTime"},
Expand Down
1 change: 0 additions & 1 deletion mappings/socketio.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"index": "appmetrics",
"type": "socketio",
"body": {
"_source" : {"compress" : true},
"_ttl" : {"enabled" : true, "default" : "90d"},
"properties": {
"timestamp": {"type": "date", "format": "dateOptionalTime"},
Expand Down

0 comments on commit 0e59186

Please sign in to comment.