Skip to content

Instantly share code, notes, and snippets.

@bemeyert
Last active January 24, 2017 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bemeyert/a807223fb1f7db77081c2923fc692e60 to your computer and use it in GitHub Desktop.
Save bemeyert/a807223fb1f7db77081c2923fc692e60 to your computer and use it in GitHub Desktop.
Problem with Grafana and annotations via Elasticsearch
{
"event" : {
"aliases" : { },
"mappings" : {
"events" : {
"properties" : {
"@timestamp" : {
"type" : "date",
"format" : "strict_date_optional_time||epoch_millis"
},
"environment" : {
"type" : "string"
},
"project" : {
"type" : "string"
},
"tags" : {
"type" : "string"
},
"text" : {
"type" : "string"
},
"title" : {
"type" : "string"
}
}
}
},
"settings" : {
"index" : {
"creation_date" : "1485258231637",
"number_of_shards" : "5",
"number_of_replicas" : "2",
"uuid" : "ujMtDugtTlm72Zy7y2WU1A",
"version" : {
"created" : "2040399"
}
}
},
"warmers" : { }
}
}
"hits" : [ {
"_index" : "event",
"_type" : "events",
"_id" : "AVnQTAi8Oa0dfoHFpfQe",
"_score" : 1.0,
"_source" : {
"project" : "shorty",
"environment" : "shorty-prod",
"title" : "Shorty testet",
"tags" : [ "eins", "drei" ],
"text" : "Shorty bastelt noch immer herum",
"@timestamp" : "1485258335599"
}
# "tags" is an array
# grabbed it from tcpdump
{"search_type":"query_then_fetch","ignore_unavailable":true,"index":"event"}
{"query":{"bool":{"must":[{"range":{"@timestamp":{"from":1485239454989,"to":1485261054989,"format":"epoch_millis"}}},{"query_string":{"query":"*"}}]}},"size":10000}
# mappings:
# Time: @timestamp
# Title: title
# Tags: tags
# Text: text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment