Not receiving scraped metrics from Open Telemetry prometheus receiver

I’m using the open telemetry prometheus receiver to scrape pods via service discovery. So far I haven’t seen any of my desired metrics come through to my sink.

My OTEL collector is configured to scrape metrics using the prometheus receiver like the following:

otelDeployment:
  ...
  config:
    receivers:
      ...
      prometheus:
        config:
          scrape_configs:
            - job_name: 'kubernetes-qdrant-pod-metrics'
              scrape_interval: 1s
              scrape_timeout: 1s
              kubernetes_sd_configs:
              - role: pod
              relabel_configs:
              - source_labels: [__meta_kubernetes_pod_annotation_x_prometheus_scrape]
                action: keep
                regex: true
              - source_labels: [__meta_kubernetes_pod_annotation_x_prometheus_scheme]
                action: replace
                target_label: __scheme__
                regex: (https?)
              - source_labels: [__meta_kubernetes_pod_annotation_x_prometheus_path]
                action: replace
                target_label: __metrics_path__
                regex: (.+)
              - source_labels: [__address__, __meta_kubernetes_pod_annotation_x_prometheus_port]
                action: replace
                target_label: __address__
                regex: ([^:]+)(?::d+)?;(d+)
                replacement: $$1:$$2
    ...
    service:
      ...
      pipelines:
        ...
        metrics:
          receivers: [ otlp, prometheus ]
          processors: [ resource, batch ]
          exporters: [ otlp ]
        ...

My pod has the appropriate labels corresponding to the above. I know this because when I use promtool check service-discovery with the above config (just the prometheus part of it) in a pod that approximates the collector (meaning it has the same service account), it is able to do service discovery exactly as intended.

An example of one of what promtool returns for a given matching pod is the following:

{
      "__address__": "10.244.20.145:6333",
      "__metrics_path__": "/metrics",
      "__scheme__": "http",
      "__scrape_interval__": "1s",
      "__scrape_timeout__": "1s",
      "instance": "10.244.20.145:6333",
      "job": "kubernetes-qdrant-pod-metrics",
}

If you stitch together the address, path, and scheme together for this one, you get:

# curl https://10.244.20.145:6333/metrics
# HELP app_info information about qdrant server
# TYPE app_info counter
app_info{name="qdrant",version="1.10.1"} 1
...

So the scrape rules seem to be configured correctly.

Additionally, as you can see above, I’ve added the prometheus receiver into the list of metrics pipeline receivers.

One way of debugging this could be to increase the log level of the collector in case there are some issues hiding there that can’t be seen. I haven’t been able to figure out how to do that yet either though.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật