Skip to content

Instantly share code, notes, and snippets.

@tegud
Created February 19, 2016 12:37
Show Gist options
  • Save tegud/68c2c159275251f4063c to your computer and use it in GitHub Desktop.
Save tegud/68c2c159275251f4063c to your computer and use it in GitHub Desktop.
Template for using Elasticsearch as a Time Series Database
{
"metrics" : {
"order" : 0,
"template" : "metrics-*",
"settings" : {
"index" : {
"refresh_interval" : "5s"
}
},
"mappings" : {
"_default_" : {
"_source" : {
"enabled" : false
},
"dynamic_templates" : [ {
"strings" : {
"mapping" : {
"index" : "not_analyzed",
"type" : "string",
"doc_values" : true
},
"match_mapping_type" : "string",
"match" : "*"
}
} ],
"_all" : {
"enabled" : false
},
"properties" : {
"count_99" : {
"index" : "no",
"type" : "integer",
"doc_values" : true
},
"upper_25" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"upper" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"sum" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"sum_squares_25" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"sum_squares_75" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"sum_squares_95" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"upper_90" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"count_90" : {
"index" : "no",
"type" : "integer",
"doc_values" : true
},
"sum_squares_99" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"mean_25" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"sum_25" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"sum_squares_98" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"upper_98" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"upper_99" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"count_98" : {
"index" : "no",
"type" : "integer",
"doc_values" : true
},
"sum_squares" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"count_75" : {
"index" : "no",
"type" : "integer",
"doc_values" : true
},
"upper_75" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"value" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"count_95" : {
"index" : "no",
"type" : "integer",
"doc_values" : true
},
"upper_95" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"sum_squares_90" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"count_25" : {
"index" : "no",
"type" : "integer",
"doc_values" : true
},
"count_ps" : {
"index" : "no",
"type" : "integer",
"doc_values" : true
},
"std" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"lower" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"count" : {
"index" : "no",
"type" : "integer",
"doc_values" : true
},
"sum_90" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"mean_99" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"sum_95" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"value_boolean" : {
"index" : "no",
"type" : "boolean",
"doc_values" : true
},
"mean_98" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"sum_98" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"@timestamp" : {
"type" : "date",
"doc_values" : true
},
"mean_75" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"sum_75" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"median" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"sum_99" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"mean" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"value_string" : {
"index" : "no",
"type" : "string",
"doc_values" : true
},
"mean_90" : {
"index" : "no",
"type" : "float",
"doc_values" : true
},
"mean_95" : {
"index" : "no",
"type" : "float",
"doc_values" : true
}
}
}
},
"aliases" : { }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment