<p>I'm configuring OpenTelemetry on a k8s cluster with the following configuration</p>
<pre><code>- job_name: MYAPP
  kubernetes_sd_configs:
  - role: pod
  metrics_path: /metrics
  scrape_interval: 10s
  relabel_configs:
  - source_labels: [__meta_kubernetes_namespace]
    action: keep
    regex: (myapp.*|custom.*)
  - source_labels: [__meta_kubernetes_namespace]
    action: replace
    target_label: namespace
  - source_labels: [__meta_kubernetes_pod_name]
    action: replace
    target_label: pod
  - source_labels: [__meta_kubernetes_pod_name, __meta_kubernetes_pod_ip]
    action: replace
    regex: (.*);(.*)
    replacement: $${2}-$${1}
    target_label: instance
  - source_labels: [__meta_kubernetes_pod_container_image]
    action: replace
    target_label: image
  - source_labels: [__meta_kubernetes_pod_container_name]
    action: replace
    target_label: container
  - source_labels: [__meta_kubernetes_pod_ip]
    action: replace
    regex: (.*)
    replacement: $${1}:3000
    target_label: __address__
</code></pre>
<p>All my microservices expose on <code>http://&lt;ip&gt;:3000/metrics</code> applications metrics.
My cluster has 8 nodes with more then 100 microservices.</p>
<p>How can I debug/list all targets detected by OpenTelemetry?</p>
<p>I need it because randomly, even if all the services are up &amp; running, I miss metrics, and it seems that kubernetes_sd_configs is not using some targets.</p>
<p>So how to debug if scraping is working well?</p>

dash1e
<p>Use/process/monitor <code>up</code> metric in the Prometheus:</p>
<pre><code>up{job=&quot;&lt;job-name&gt;&quot;, instance=&quot;&lt;instance-id&gt;&quot;}: 1 if the instance is healthy, i.e. reachable, or 0 if the scrape failed.
</code></pre>
<p>So in your case it can be:</p>
<pre><code>up{job=&quot;MYAPP&quot;}
</code></pre>
