<?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 Re: Prometheus metric labels in a splunk metric index in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Prometheus-metric-labels-in-a-splunk-metric-index/m-p/683392#M114081</link>
    <description>&lt;P&gt;This is my current otel config:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;---
service:
  telemetry:
    logs:
      level: "debug"
    metrics:
      level: detailed
      address: ":8888"
  pipelines:
    metrics:
      receivers:
        - prometheus
      exporters:
        - splunk_hec

receivers:
  prometheus:
    config:
      scrape_configs:
        - job_name: jira_dev
          scrape_interval: 60s
          static_configs:
            - targets: [&amp;lt;hidden&amp;gt;:8060]

exporters:
  debug:
    verbosity: detailed
    sampling_initial: 5
    sampling_thereafter: 200
  splunk_hec:
    token: "&amp;lt;hidden&amp;gt;"
    endpoint: "https://&amp;lt;hidden&amp;gt;:8088/services/collector"
    source: "toolchainotel"
    sourcetype: "toolchain:test:metric"
    index: "onboarding_metric"
    tls:
      insecure_skip_verify: true&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 05 Apr 2024 10:45:22 GMT</pubDate>
    <dc:creator>joergherzinger</dc:creator>
    <dc:date>2024-04-05T10:45:22Z</dc:date>
    <item>
      <title>Prometheus metric labels in a splunk metric index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Prometheus-metric-labels-in-a-splunk-metric-index/m-p/683275#M114064</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to collect metrics from various sources with the OTel Collector and send them to our Splunk Enterprise instance via a HEC. Collecting and sending the metrics via OTel seems to work quite fine and I was quickly able to see metrics in my splunk index.&lt;/P&gt;&lt;P&gt;However, what I am completely missing are the labels of those prometheus metrics in Splunk. Here an example of some of the metrics I scrape:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;# HELP jmx_exporter_build_info A metric with a constant '1' value labeled with the version of the JMX exporter.
# TYPE jmx_exporter_build_info gauge
jmx_exporter_build_info{version="0.20.0",name="jmx_prometheus_javaagent",} 1.0
# HELP jvm_info VM version info
# TYPE jvm_info gauge
jvm_info{runtime="OpenJDK Runtime Environment",vendor="AdoptOpenJDK",version="11.0.8+10",} 1.0
# HELP jmx_config_reload_failure_total Number of times configuration have failed to be reloaded.
# TYPE jmx_config_reload_failure_total counter
jmx_config_reload_failure_total 0.0
# HELP jvm_gc_collection_seconds Time spent in a given JVM garbage collector in seconds.
# TYPE jvm_gc_collection_seconds summary
jvm_gc_collection_seconds_count{gc="G1 Young Generation",} 883.0
jvm_gc_collection_seconds_sum{gc="G1 Young Generation",} 133.293
jvm_gc_collection_seconds_count{gc="G1 Old Generation",} 0.0
jvm_gc_collection_seconds_sum{gc="G1 Old Generation",} 0.0
# HELP jvm_memory_pool_allocated_bytes_total Total bytes allocated in a given JVM memory pool. Only updated after GC, not continuously.
# TYPE jvm_memory_pool_allocated_bytes_total counter
jvm_memory_pool_allocated_bytes_total{pool="CodeHeap 'profiled nmethods'",} 6.76448896E8
jvm_memory_pool_allocated_bytes_total{pool="G1 Old Gen",} 1.345992784E10
jvm_memory_pool_allocated_bytes_total{pool="G1 Eden Space",} 9.062406160384E12
jvm_memory_pool_allocated_bytes_total{pool="CodeHeap 'non-profiled nmethods'",} 3.38238592E8
jvm_memory_pool_allocated_bytes_total{pool="G1 Survivor Space",} 1.6919822336E10
jvm_memory_pool_allocated_bytes_total{pool="Compressed Class Space",} 1.41419488E8
jvm_memory_pool_allocated_bytes_total{pool="Metaspace",} 1.141665096E9
jvm_memory_pool_allocated_bytes_total{pool="CodeHeap 'non-nmethods'",} 3544448.0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do see the values in Splunk, but especially for the last metric "jvm_memory_pool_allocated_bytes_total" the label of which pool is lost in splunk. Is this intentional or am I missing something. The getting started page for metrics also has no information on where those labels are stored and how I could query based on them (&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Metrics/GetStarted" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Metrics/GetStarted&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tia,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Jörg&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 15:16:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Prometheus-metric-labels-in-a-splunk-metric-index/m-p/683275#M114064</guid>
      <dc:creator>joergherzinger</dc:creator>
      <dc:date>2024-04-04T15:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Prometheus metric labels in a splunk metric index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Prometheus-metric-labels-in-a-splunk-metric-index/m-p/683384#M114080</link>
      <description>&lt;P&gt;Could you please share your current otel config with us?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 10:04:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Prometheus-metric-labels-in-a-splunk-metric-index/m-p/683384#M114080</guid>
      <dc:creator>PaulPanther</dc:creator>
      <dc:date>2024-04-05T10:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Prometheus metric labels in a splunk metric index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Prometheus-metric-labels-in-a-splunk-metric-index/m-p/683392#M114081</link>
      <description>&lt;P&gt;This is my current otel config:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;---
service:
  telemetry:
    logs:
      level: "debug"
    metrics:
      level: detailed
      address: ":8888"
  pipelines:
    metrics:
      receivers:
        - prometheus
      exporters:
        - splunk_hec

receivers:
  prometheus:
    config:
      scrape_configs:
        - job_name: jira_dev
          scrape_interval: 60s
          static_configs:
            - targets: [&amp;lt;hidden&amp;gt;:8060]

exporters:
  debug:
    verbosity: detailed
    sampling_initial: 5
    sampling_thereafter: 200
  splunk_hec:
    token: "&amp;lt;hidden&amp;gt;"
    endpoint: "https://&amp;lt;hidden&amp;gt;:8088/services/collector"
    source: "toolchainotel"
    sourcetype: "toolchain:test:metric"
    index: "onboarding_metric"
    tls:
      insecure_skip_verify: true&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 05 Apr 2024 10:45:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Prometheus-metric-labels-in-a-splunk-metric-index/m-p/683392#M114081</guid>
      <dc:creator>joergherzinger</dc:creator>
      <dc:date>2024-04-05T10:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Prometheus metric labels in a splunk metric index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Prometheus-metric-labels-in-a-splunk-metric-index/m-p/683665#M114124</link>
      <description>&lt;P&gt;Could you please try set parameter &lt;SPAN class=""&gt;resource_to_telemetry_conversion to true&lt;/SPAN&gt;?&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;exporters&lt;/SPAN&gt;:
  &lt;SPAN class=""&gt;prometheus&lt;/SPAN&gt;:
    &lt;SPAN class=""&gt;endpoint&lt;/SPAN&gt;: &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;1.2.3.4:1234&lt;SPAN class=""&gt;"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;    [..]
    &lt;SPAN class=""&gt;resource_to_telemetry_conversion&lt;/SPAN&gt;:
      &lt;SPAN class=""&gt;enabled&lt;/SPAN&gt;: &lt;SPAN class=""&gt;true&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/prometheusexporter" target="_blank" rel="noopener"&gt;opentelemetry-collector-contrib/exporter/prometheusexporter at main · open-telemetry/opentelemetry-collector-contrib · GitHub&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 07:10:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Prometheus-metric-labels-in-a-splunk-metric-index/m-p/683665#M114124</guid>
      <dc:creator>PaulPanther</dc:creator>
      <dc:date>2024-04-09T07:10:03Z</dc:date>
    </item>
  </channel>
</rss>

