-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Completely rewrote indexing: bulk, dynamic names.
Bulk indexing is now used when inserting documents. Dynamic indexes are created based on the UTC date (statsd-2014.03.03). A sample index template is provided.
- Loading branch information
1 parent
702efcd
commit 1003587
Showing
4 changed files
with
304 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
curl -XPUT localhost:9200/_template/statsd-template -d ' | ||
{ | ||
"template" : "statsd-*", | ||
"settings" : { | ||
"number_of_shards" : 1 | ||
}, | ||
"mappings" : { | ||
"counter" : { | ||
"_source" : { "enabled" : true }, | ||
"properties": { | ||
"@timestamp": { | ||
"format": "dateOptionalTime", | ||
"type": "date" | ||
}, | ||
"val": { | ||
"type": "long", | ||
"index": "not_analyzed" | ||
}, | ||
"ns": { | ||
"type": "string", | ||
"index": "not_analyzed" | ||
}, | ||
"grp": { | ||
"type": "string", | ||
"index": "not_analyzed" | ||
}, | ||
"tgt": { | ||
"type": "string", | ||
"index": "not_analyzed" | ||
}, | ||
"act": { | ||
"type": "string", | ||
"index": "not_analyzed" | ||
} | ||
} | ||
}, | ||
"timer" : { | ||
"_source" : { "enabled" : true }, | ||
"properties": { | ||
"@timestamp": { | ||
"format": "dateOptionalTime", | ||
"type": "date" | ||
}, | ||
"val": { | ||
"type": "long", | ||
"index": "not_analyzed" | ||
}, | ||
"ns": { | ||
"type": "string", | ||
"index": "not_analyzed" | ||
}, | ||
"grp": { | ||
"type": "string", | ||
"index": "not_analyzed" | ||
}, | ||
"tgt": { | ||
"type": "string", | ||
"index": "not_analyzed" | ||
}, | ||
"act": { | ||
"type": "string", | ||
"index": "not_analyzed" | ||
} | ||
} | ||
}, | ||
"timer_data" : { | ||
"_source" : { "enabled" : true }, | ||
"properties": { | ||
"@timestamp": { | ||
"format": "dateOptionalTime", | ||
"type": "date" | ||
}, | ||
"count_ps": { | ||
"type": "float", | ||
"index": "not_analyzed" | ||
}, | ||
"count": { | ||
"type": "float", | ||
"index": "not_analyzed" | ||
}, | ||
"upper": { | ||
"type": "float", | ||
"index": "not_analyzed" | ||
}, | ||
"lower": { | ||
"type": "float", | ||
"index": "not_analyzed" | ||
}, | ||
"mean": { | ||
"type": "float", | ||
"index": "not_analyzed" | ||
}, | ||
"median": { | ||
"type": "float", | ||
"index": "not_analyzed" | ||
}, | ||
"mean": { | ||
"type": "float", | ||
"index": "not_analyzed" | ||
}, | ||
"upper": { | ||
"type": "float", | ||
"index": "not_analyzed" | ||
}, | ||
"std": { | ||
"type": "float", | ||
"index": "not_analyzed" | ||
}, | ||
"sum": { | ||
"type": "float", | ||
"index": "not_analyzed" | ||
}, | ||
"mean_90": { | ||
"type": "float", | ||
"index": "not_analyzed" | ||
}, | ||
"upper_90": { | ||
"type": "float", | ||
"index": "not_analyzed" | ||
}, | ||
"sum_90": { | ||
"type": "float", | ||
"index": "not_analyzed" | ||
}, | ||
"ns": { | ||
"type": "string", | ||
"index": "not_analyzed" | ||
}, | ||
"grp": { | ||
"type": "string", | ||
"index": "not_analyzed" | ||
}, | ||
"tgt": { | ||
"type": "string", | ||
"index": "not_analyzed" | ||
}, | ||
"act": { | ||
"type": "string", | ||
"index": "not_analyzed" | ||
} | ||
} | ||
} | ||
} | ||
}' |
Oops, something went wrong.