Kibana version:
7.3.0
Elasticsearch version:
7.3.0
APM Server version:
7.3.0
APM Agent language and version:
1.8.0 Java Agent
Original install method (e.g. download page, yum, deb, from source, etc.) and version:
elastic.co helm charts in self hosted k8s cluster
Fresh install or upgraded from other version?
fresh
Is there anything special in your setup? For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.
No. Straight forward setup. apm talking to elasticsearch, kibana reading from elasticsearch. Additionally but unrelated, filebeat sending to ES.
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
I try to instrument one of our JEE apps. The apm agent is up and running, and configured like that:
"-javaagent:MY_APP_HOME/lib/elastic-apm-agent-" + DependencyVersion.ELASTIC_APM_VERSION.version + ".jar",
"-Delastic.apm.service_name=iotcore-MY_STAGE-MY_REGION-MY_SERVICENAME",
"-Delastic.apm.application_packages=com.myapp.io",
"-Delastic.apm.server_urls=https://apm-server.example.net",
"-Delastic.apm.environment=MY_STAGE",
The code itself is annotated like that:
import co.elastic.apm.api.CaptureTransaction;
and in the class a @CaptureTransaction.
The service comes up and looks good, but on the APM server side, I get these exceptions:
WARN elasticsearch/client.go:535 Cannot index event publisher.Event{Content:beat.Event{Timestamp:time.Time{wall:0x2c0c3ec0, ext:63702599350, loc:(*time.Location)(nil)}, Meta:common.MapStr{"pipeline":"apm"}, Fields:common.MapStr{"agent":common.MapStr{"ephemeral_id":"dbe578c2-2ad3-453d-ba88-1abec74a33f7", "name":"java", "version":"1.8.0"}, "container":common.MapStr{"id":"9defbc7c02e976329ed66a7ee2226e5703765087c9906ada3ce060f70c447fdf"}, "ecs":common.MapStr{"version":"1.0.1"}, "host":common.MapStr{"architecture":"amd64", "hostname":"9defbc7c02e9", "ip":"100.103.216.192", "os":common.MapStr{"platform":"Linux"}}, "jvm":common.MapStr{"gc":common.MapStr{"count":355, "time":5698}}, "labels":common.MapStr{"name":"G1 Young Generation"}, "observer":common.MapStr{"ephemeral_id":"5b9e5e3b-80b5-4655-9327-c8fe420f80a7", "hostname":"apm-server-8778fd987-xtrdv", "id":"b7868a5f-ccef-4326-a2db-e44a45603d63", "type":"apm-server", "version":"7.3.0", "version_major":7}, "process":common.MapStr{"pid":1, "title":"/opt/jdk1.8.0_202/jre/bin/java"}, "processor":common.MapStr{"event":"metric", "name":"metric"}, "service":common.MapStr{"environment":"stage", "language":common.MapStr{"name":"Java", "version":"1.8.0_202"}, "name":"myapp", "runtime":common.MapStr{"name":"Java", "version":"1.8.0_202"}}}, Private:interface {}(nil), TimeSeries:false}, Flags:0x1} (status=400): {"type":"mapper_parsing_exception","reason":"failed to parse field [labels.name] of type [scaled_float] in document with id 'UYWh2GwBIt8udj3vizmd'. Preview of field's value: 'G1 Young Generation'","caused_by":{"type":"number_format_exception","reason":"For input string: \"G1 Young Generation\""}}
I'm a bit puzzled where that comes from. What would a CaptureTransaction have to do with some GC statistics?
Also, I have a second service which is Spring based and I don't see those kind of errors there.
Any help/pointers are appreciated