Hi there!
By default labels has several mappings, and all apply. Do you find in your template something like this?:
{
"labels": {
"mapping": {
"type": "keyword"
},
"match_mapping_type": "string",
"path_match": "labels.*"
}
},
{
"labels": {
"mapping": {
"type": "boolean"
},
"match_mapping_type": "boolean",
"path_match": "labels.*"
}
},
{
"labels": {
"mapping": {
"scaling_factor": 1000000,
"type": "scaled_float"
},
"match_mapping_type": "*",
"path_match": "labels.*"
}
},
You can also see if you are actually using the template generated by the apm-server by running apm-server export template > template.json and comparing that with the one you have in Elasticsearch.