elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.68k stars 8.23k forks source link

[APM Infrastructure View] - Java App containerized via docker not showing Infrastructure->Containers details #198797

Open jamie-wilson88 opened 3 weeks ago

jamie-wilson88 commented 3 weeks ago

Kibana version: Since 8.11, confirmed in > 8.15

Elasticsearch version:

Server OS version:

Browser version:

Browser OS version:

Original install method (e.g. download page, yum, from source, etc.): Confirmed in ESS

Describe the bug: When using a containerized application that is NOT using Kubernetes, the container details will not appear in App>Infrastructure>Containers

Steps to reproduce:

  1. Setup a Java application that is containerized using Docker (no Kubernetes)
  2. Install Elastic Agent
  3. Install Elastic Java APM agent 1.52.0
  4. Apply System integration and docker integration to the agent policy.
  5. Navigate in Kibana to the Application. Go to Infrastructure>Containers

Expected behavior: Docker container information would appear in the browser.

Screenshots (if relevant): Image

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context: The query filter for this tab is expecting kubernetes integration. This lack of container details will occur in a docker-only environment. Using just docker, metricbeat will gather "docker.container", but the filter query is specifically looking for kubernetes.container, which will never return results.

{"metrics":[{"aggregation":"avg","field":"kubernetes.container.cpu.usage.limit.pct"},{"aggregation":"avg","field":"kubernetes.container.memory.usage.bytes"}],"groupBy":"container.id","limit":10000,"indexPattern":"metrics-*,metricbeat-*","filterQuery":"{\"bool\":{\"filter\":[{\"term\":{\"event.dataset\":\"kubernetes.container\"}},{\"bool\":{\"filter\":[{\"terms\":{\"container.id\":

"filterQuery":"{\"bool\":{\"filter\":[{\"term\":{\"event.dataset\":\"kubernetes.container\" <--- will not return results since this setup only has docker.container
Erikg346 commented 3 weeks ago

I have the same issue: Image

elasticmachine commented 2 weeks ago

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

elasticmachine commented 1 week ago

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

maryam-saeidi commented 1 week ago

I assigned this ticket to @elastic/obs-ux-infra_services-team, as I think they own this view.