# OpenTelemetry metrics are not properly shown on Kibana

**URL:** https://discuss.elastic.co/t/opentelemetry-metrics-are-not-properly-shown-on-kibana/325478
**Category:** APM
**Tags:** docker, java, open-telemetry
**Created:** [February 14, 2023, 1:28pm UTC](https://discuss.elastic.co/t/opentelemetry-metrics-are-not-properly-shown-on-kibana/325478 "2023-02-14T13:28:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![nicolas.orbes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nicolas.orbes/32/24719_2.png) [@nicolas.orbes](https://discuss.elastic.co/u/nicolas.orbes)
#### Post date: [February 14, 2023, 1:28pm UTC](https://discuss.elastic.co/t/opentelemetry-metrics-are-not-properly-shown-on-kibana/325478/1 "2023-02-14T13:28:56Z")

</div>

**Kibana version** : 8.6.1

**Elasticsearch version** : 8.6.1

**APM Server version** : 8.6.1

**OpenTelementry Java Agent** : 1.22.1

**Original install method (e.g. download page, yum, deb, from source, etc.) and version**:  
We used the docker compose published here: [elasticsearch/docker-compose.yml at main · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/blob/main/docs/reference/setup/install/docker/docker-compose.yml) and added the following section for the APM Server:

```yaml
  apm-server:
    depends_on:
      kibana:
        condition: service_healthy
    image: docker.elastic.co/apm/apm-server:${STACK_VERSION}
    volumes:
      - certs:/usr/share/apm-server/certs
    ports:
      - ${APM_PORT}:8200
    command: >
      apm-server -e
         -E output.elasticsearch.hosts=["es01:9200"]
         -E output.elasticsearch.protocol=https
         -E output.elasticsearch.username=elastic
         -E output.elasticsearch.password=${ELASTIC_PASSWORD}
         -E output.elasticsearch.ssl.enabled=true
         -E output.elasticsearch.ssl.certificate_authorities=/usr/share/apm-server/certs/ca/ca.crt
         -E output.elasticsearch.ssl.certificate=/usr/share/apm-server/certs/es01/es01.crt
         -E output.elasticsearch.ssl.key=/usr/share/apm-server/certs/es01/es01.key
    healthcheck:
      test:
        [
          "CMD-SHELL",
          "curl --write-out 'HTTP %{http_code}' --fail --silent --output /dev/null http://localhost:8200/",
        ]
      interval: 10s
      timeout: 10s
      retries: 120

```

**Fresh install**

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:

We received all logs, metrics, and traces from our sample Java application. Both logs and traces are perfectly shown in Kibana —\> APM —\> Services option, but the metrics tab is empty.

But there are a lot of metrics under Analytics —\> Discovery.

Should we do something to have that data properly displayed in the APM section?

 ![Screen Shot 2023-02-14 at 10.28.09](https://us1.discourse-cdn.com/elastic/original/3X/d/9/d9af24b19240d5e20e81e87a783b924386e3cbe0.jpeg)

**Steps to reproduce** :

1. Setup Elasticsearch, Kibana and APM Server (Oficial Docker compose + APM Server)
2. Install the APM Integration from Kibana
3. Instrument PetClinic (SpringBoot application) with OpenTelemetry Java Agent to export logs, metrics, and traces directly to APM Server

---

<div class="post-metadata">

### Author: ![Sylvain\_Juge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sylvain_juge/32/55521_2.png) [@Sylvain\_Juge](https://discuss.elastic.co/u/Sylvain_Juge)
#### Post date: [February 14, 2023, 2:04pm UTC](https://discuss.elastic.co/t/opentelemetry-metrics-are-not-properly-shown-on-kibana/325478/2 "2023-02-14T14:04:24Z")

</div>

Hi @nicolas.orbes , thanks for reporting this.

There is currently an issue open to fix the OpenTelemetry mappings for JVM metrics, so it it very likely related to [OpenTelemetry JVM metrics are not properly mapped · Issue #12 · elastic/apm-data · GitHub](https://github.com/elastic/apm-data/issues/12)

My plan is to start working on it short term, so hopefully we can provide a fix for that very soon.

---

<div class="post-metadata">

### Author: ![nicolas.orbes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nicolas.orbes/32/24719_2.png) [@nicolas.orbes](https://discuss.elastic.co/u/nicolas.orbes)
#### Post date: [February 14, 2023, 2:46pm UTC](https://discuss.elastic.co/t/opentelemetry-metrics-are-not-properly-shown-on-kibana/325478/3 "2023-02-14T14:46:43Z")

</div>

Oh, lucky my, just run into an open issue 😉

Thanks @Sylvain_Juge for your quick answer, hope you can tackle this soon, happy coding!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 7, 2023, 10:47am UTC](https://discuss.elastic.co/t/opentelemetry-metrics-are-not-properly-shown-on-kibana/325478/4 "2023-03-07T10:47:01Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
