Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

host.name assigned with pod.name #2084

Closed
crespocarlos opened this issue Jul 18, 2024 · 1 comment
Closed

host.name assigned with pod.name #2084

crespocarlos opened this issue Jul 18, 2024 · 1 comment

Comments

@crespocarlos
Copy link

crespocarlos commented Jul 18, 2024

Describe the bug

When viewing the Hosts UI with Python APM service active in a k8s pod, Python agent monitored services report the pod name in the host.name, which makes the Hosts View display hosts that do not correlate with hosts monitored by the system integration.

Steps to reproduce

  • Run a python APM instrumented service in a k8s pod
  • Ingest that into ES
  • Open the Infra UI

edge-oblt can be used for the above.

Expected behavior

Only hosts (VMs) are expected to be present in the Hosts View.

Additional context

image image image

Sample doc

{
  "_index": ".ds-metrics-apm.app.opbeans_python-default-2024.07.17-000005",
  "_id": "w64vxZABi-i5Y9bCXbbY",
  "_score": 0,
  "_source": {
    "agent": {
      "activation_method": "unknown",
      "name": "python",
      "version": "6.22.3"
    },
    "cloud": {
      "availability_zone": "us-central1-c",
      "instance": {
        "id": "9037683114632400191",
        "name": "gke-edge-oblt-edge-oblt-pool-8fc2868f-gsl6"
      },
      "machine": {
        "type": "e2-highcpu-4"
      },
      "project": {
        "id": "elastic-observability"
      },
      "provider": "gcp",
      "region": "us-central1"
    },
    "data_stream": {
      "dataset": "apm.app.opbeans_python",
      "namespace": "default",
      "type": "metrics"
    },
    "host": {
      "architecture": "x86_64",
      "hostname": "opbeans-python-5967fc4646-p4d87",
      "ip": "34.132.199.117",
      "name": "opbeans-python-5967fc4646-p4d87",
      "os": {
        "platform": "linux"
      }
    },
    "metricset": {
      "name": "app"
    }
  }
}
@crespocarlos
Copy link
Author

I had a quick call with @Mpdreamz , and he explained that the non-matching host names shipped by APM agents are due to missing configuration as exemplified in this comment https://github.com/elastic/observability-dev/issues/3321#issuecomment-2236909682.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant