OpenTelemetry Metrics exporter (DotNet)

Hello

I have hooked up metrics instrumentation in dotnet and use the OpenTelemetry exporter, which is supposed to map all metrics to the OTLP standard.

I can see metrics in the metric analyser but I do not understand why I can not see anything in the Inventory tab?

This is an example metric entry.

I manually add attributes to the exporter for environment, host.name, and host.hostname as I thought maybe that was the key info missing for that "dashboard"
But sadly not- I cant find any other documentation on how to populate this . It would be super benefecial since I already have Logs and Traces hooked in and working.. missing element is Metrics

{
  "_index": ".ds-metrics-apm.app.workerservice_filewatch-default-2022.05.24-000001",
  "_id": "P_lg-oABsbYOwXESks3J",
  "_version": 1,
  "_score": null,
  "fields": {
    "service.node.name": [
      "f5e07733-761e-4c58-838c-28bc1bd2d9fa"
    ],
    "labels.host_hostname": [
      "ssllt138"
    ],
    "host.hostname": [
      "ssllt138"
    ],
    "service.language.name": [
      "unknown"
    ],
    "processor.event": [
      "metric"
    ],
    "agent.name": [
      "otlp"
    ],
    "host.name": [
      "ssllt138"
    ],
    "event.agent_id_status": [
      "missing"
    ],
    "service.environment": [
      "localdev-ssllt138"
    ],
    "service.name": [
      "workerservice_filewatch"
    ],
    "process.memory.usage": [
      103288832
    ],
    "data_stream.namespace": [
      "default"
    ],
    "processor.name": [
      "metric"
    ],
    "observer.hostname": [
      "46df51e3d349"
    ],
    "data_stream.type": [
      "metrics"
    ],
    "metricset.name": [
      "app"
    ],
    "event.ingested": [
      "2022-05-25T08:41:14.000Z"
    ],
    "observer.id": [
      "af9139ee-9e9d-49f8-9fe7-468effb85632"
    ],
    "@timestamp": [
      "2022-05-25T08:41:15.440Z"
    ],
    "observer.ephemeral_id": [
      "28297aa2-0042-430a-8a97-9d1ff286360e"
    ],
    "observer.version": [
      "8.2.0"
    ],
    "ecs.version": [
      "1.12.0"
    ],
    "observer.type": [
      "apm-server"
    ],
    "data_stream.dataset": [
      "apm.app.workerservice_filewatch"
    ],
    "agent.version": [
      "unknown"
    ]
  },
  "highlight": {
    "host.hostname": [
      "@kibana-highlighted-field@ssllt138@/kibana-highlighted-field@"
    ]
  },
  "sort": [
    1653468075440
  ]
}

The mappings that seem to be coming through but somehow are not mapping

The metrics tab on the Services is not showing anything useful. Logs and Traces are working fine.

And metrics explorer on metrics that I managed to find by digging around on the Discover tab

1 Like