<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic OpenTelemetry and new metric dimension in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/OpenTelemetry-and-new-metric-dimension/m-p/268347#M35508</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After some time, I decided to add a new dimension (tag) to my metric. However, it appears that Dynatrace is not recognizing it. I can't see the new dimension when attempting to split the metric or in the metric details where all dimensions are listed. For testing purposes, I created an identical metric with a different name, and the additional dimension is visible there. This suggests there might be a caching issue or that the metric definition hasn't been updated.&lt;/P&gt;&lt;P&gt;I haven't found a way to remove the OpenTelemetry metric. What are my options for adding the new dimension to the metric without changing its name?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Marcin&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jan 2025 15:08:45 GMT</pubDate>
    <dc:creator>mkaszub</dc:creator>
    <dc:date>2025-01-24T15:08:45Z</dc:date>
    <item>
      <title>OpenTelemetry and new metric dimension</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/OpenTelemetry-and-new-metric-dimension/m-p/268347#M35508</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After some time, I decided to add a new dimension (tag) to my metric. However, it appears that Dynatrace is not recognizing it. I can't see the new dimension when attempting to split the metric or in the metric details where all dimensions are listed. For testing purposes, I created an identical metric with a different name, and the additional dimension is visible there. This suggests there might be a caching issue or that the metric definition hasn't been updated.&lt;/P&gt;&lt;P&gt;I haven't found a way to remove the OpenTelemetry metric. What are my options for adding the new dimension to the metric without changing its name?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Marcin&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 15:08:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/OpenTelemetry-and-new-metric-dimension/m-p/268347#M35508</guid>
      <dc:creator>mkaszub</dc:creator>
      <dc:date>2025-01-24T15:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: OpenTelemetry and new metric dimension</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/OpenTelemetry-and-new-metric-dimension/m-p/268400#M35512</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/85854"&gt;@mkaszub&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not an OTEL expert but, have you checked these domcumentaion topics:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/ingest-from/opentelemetry/getting-started/metrics/configuration#configure-opentelemetry-metrics-ingest" target="_blank"&gt;Configure OpenTelemetry metrics ingest — Dynatrace Docs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/ingest-from/opentelemetry/getting-started/metrics/limitations" target="_blank"&gt;OpenTelemetry metrics limitations — Dynatrace Docs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;János&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jan 2025 18:15:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/OpenTelemetry-and-new-metric-dimension/m-p/268400#M35512</guid>
      <dc:creator>Mizső</dc:creator>
      <dc:date>2025-01-26T18:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: OpenTelemetry and new metric dimension</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/OpenTelemetry-and-new-metric-dimension/m-p/268527#M35527</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/85854"&gt;@mkaszub&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Here are few things you can check.&lt;BR /&gt;1. Protocol and syntax for dimension: Check if it is following this:&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/metric-ingestion-protocol" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/metric-ingestion-protocol&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;2. Test using API and send dummy values onto the metric using that dimension.&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/api-metrics-v2" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/api-metrics-v2&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If point 2 works, maybe there is something wrong with the otel code sending data.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 01:45:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/OpenTelemetry-and-new-metric-dimension/m-p/268527#M35527</guid>
      <dc:creator>RohitBisht</dc:creator>
      <dc:date>2025-01-28T01:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: OpenTelemetry and new metric dimension</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/OpenTelemetry-and-new-metric-dimension/m-p/268573#M35532</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A class="" href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/85854" target="_self"&gt;&lt;SPAN class=""&gt;mkaszub&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I haven't had any issues adding / removing - example of our processors below.&amp;nbsp;&lt;BR /&gt;On changing them (adding too or deleting), The only way I could replicate what you are seeing is by looking within the same time window.&amp;nbsp; &amp;nbsp;after the time window has passed for the last metric captured it won't be shown.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  processors:
    attributes:
      actions:
      - key: k8s.cluster.name
        value: 'my cluster name'
        action: insert          
    cumulativetodelta: {}      
    filter:
      metrics:
        exclude:
          match_type: expr
          expressions:
          - MetricType == "Summary"
    memory_limiter:
      check_interval: 5s
      limit_percentage: 80
      spike_limit_percentage: 25
    batch/traces:
      send_batch_size: 5000
      send_batch_max_size: 5000
      timeout: 60s
    batch/metrics:
      send_batch_size: 3000
      send_batch_max_size: 3000
      timeout: 60s
    batch/logs:
      send_batch_size: 1800
      send_batch_max_size: 2000
      timeout: 60s      
    k8sattributes:
      auth_type: serviceAccount
      passthrough: false      
      extract:
        metadata:
        - k8s.pod.name
        - k8s.pod.uid
        - k8s.deployment.name
        - k8s.statefulset.name
        - k8s.daemonset.name
        - k8s.cronjob.name
        - k8s.namespace.name
        - k8s.node.name
        - k8s.cluster.uid
      pod_association:
      - sources:
        - from: resource_attribute
          name: k8s.pod.name
        - from: resource_attribute
          name: k8s.namespace.name
      - sources:
        - from: resource_attribute
          name: k8s.pod.ip
      - sources:
        - from: resource_attribute
          name: k8s.pod.uid
      - sources:
        - from: connection
    transform:
      error_mode: ignore
      trace_statements:
        - context: resource
          statements:
              - set(attributes["dt.kubernetes.workload.kind"], "statefulset") where IsString(attributes["k8s.statefulset.name"])
              - set(attributes["dt.kubernetes.workload.name"], attributes["k8s.statefulset.name"]) where IsString(attributes["k8s.statefulset.name"])
              - set(attributes["dt.kubernetes.workload.kind"], "deployment") where IsString(attributes["k8s.deployment.name"])
              - set(attributes["dt.kubernetes.workload.name"], attributes["k8s.deployment.name"]) where IsString(attributes["k8s.deployment.name"])
              - set(attributes["dt.kubernetes.workload.kind"], "daemonset") where IsString(attributes["k8s.daemonset.name"])
              - set(attributes["dt.kubernetes.workload.name"], attributes["k8s.daemonset.name"]) where IsString(attributes["k8s.daemonset.name"])
              - set(attributes["dt.kubernetes.cluster.id"], attributes["k8s.cluster.uid"]) where IsString(attributes["k8s.cluster.uid"])
      log_statements:
        - context: resource
          statements:
              - set(attributes["dt.kubernetes.workload.kind"], "statefulset") where IsString(attributes["k8s.statefulset.name"])
              - set(attributes["dt.kubernetes.workload.name"], attributes["k8s.statefulset.name"]) where IsString(attributes["k8s.statefulset.name"])
              - set(attributes["dt.kubernetes.workload.kind"], "deployment") where IsString(attributes["k8s.deployment.name"])
              - set(attributes["dt.kubernetes.workload.name"], attributes["k8s.deployment.name"]) where IsString(attributes["k8s.deployment.name"])
              - set(attributes["dt.kubernetes.workload.kind"], "daemonset") where IsString(attributes["k8s.daemonset.name"])
              - set(attributes["dt.kubernetes.workload.name"], attributes["k8s.daemonset.name"]) where IsString(attributes["k8s.daemonset.name"])
              - set(attributes["dt.kubernetes.cluster.id"], attributes["k8s.cluster.uid"]) where IsString(attributes["k8s.cluster.uid"])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 12:17:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/OpenTelemetry-and-new-metric-dimension/m-p/268573#M35532</guid>
      <dc:creator>gopher</dc:creator>
      <dc:date>2025-01-28T12:17:48Z</dc:date>
    </item>
  </channel>
</rss>

