Problems with stagemonitor-metrics index mapping in ElasticSearch5.4.3 / Kibana5.4.3 #308
Comments
You're right! But I don't quite understand whats wrong with the mapping. Do you have any clue? The strange thing is that stagemonitor manually creates the index pattern for stagemonitor-metrics Why do you manually want to create the index pattern? |
You point me in the right direction .... "stagemonitor should do that work" ... so I checked my logs and found this
I "forgot" to mention that I am using docker-compose in order to launch all services involved, thus the problem is that I forgot to control the boot sequence, so I need to ensure that ES is completely up&running before launching other apps For anyone interested check docker/compose#374 Now logs are nicer :)
And metric's mappings are the ones defined in your json template
Kibana's dashboards and indexes patterns are also there (stagemonitor-metrics-* and stagemonitor-spans-*) |
One more case where the startup logs saved a lot of headache :)
The |
While playing with the following combo : Stagemonitor-0.82.0, ElasticSearch5.4.3, Kibana5.4.3 I came across that the following index definitions : stagemonitor-metrics and stagemonitor-spans are not exactly the same regarding the "@timestamp" field/property definition.
The metrics definition also add ""format": "epoch_millis""
https://github.com/stagemonitor/stagemonitor/blob/master/stagemonitor-tracing-elasticsearch/src/main/resources/stagemonitor-elasticsearch-span-index-template.json
https://github.com/stagemonitor/stagemonitor/blob/master/stagemonitor-core/src/main/resources/stagemonitor-elasticsearch-metrics-index-template.json
I think that because of this mappings of those indexes are not the same in ES
"stagemonitor-spans-2017.08.25" : {
"mappings" : {
"spans" : {
"properties" : {
"@timestamp" : {
"type" : "date"
},
"stagemonitor-metrics-2017.08.25" : {
"mappings" : {
"metrics" : {
"properties" : {
"@timestamp" : {
"type" : "long"
},
In Kibana I can perfectly define the index pattern for spans as [stagemonitor-spans-]YYYY.MM.DD and Kibana founds timestamp field as a "Time-field name" BUT I am unable to do the same for metrics.
The text was updated successfully, but these errors were encountered: