# OpenTelemetry Metrics exporter (DotNet)

**URL:** <https://discuss.elastic.co/t/opentelemetry-metrics-exporter-dotnet/305578>\
**Category:** Elastic Observability\
**Created:** [May 25, 2022, 8:44am UTC](https://discuss.elastic.co/t/opentelemetry-metrics-exporter-dotnet/305578 "2022-05-25T08:44:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![piotrkula](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/piotrkula/32/106129_2.png) [@piotrkula](https://discuss.elastic.co/u/piotrkula)\
**Post date:** [May 25, 2022, 8:44am UTC](https://discuss.elastic.co/t/opentelemetry-metrics-exporter-dotnet/305578/1 "2022-05-25T08:44:23Z")

</div>

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

```auto
{
  "_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

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/5/454854e35a00b9c6e01525b5fd70380ec1fd3aa3.png)

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

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/a/ca6c0d10af2db9a8101a89c82cbb37943224dc0b.png)

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

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/d/bdab909d5f99745e277e0db9c8f3224a9717772e.png)

---

<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:** [November 4, 2022, 8:35am UTC](https://discuss.elastic.co/t/opentelemetry-metrics-exporter-dotnet/305578/2 "2022-11-04T08:35:39Z")

</div>


