Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prometheus is unable to scrape metrics from Scaphandre #400

Open
vprashar2929 opened this issue Nov 15, 2024 · 1 comment
Open

Prometheus is unable to scrape metrics from Scaphandre #400

vprashar2929 opened this issue Nov 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@vprashar2929
Copy link

Bug description

When prometheus latest or v3.0.0 is used to scrape scaphandre metrics it is unable to do so due to target sending blank Content-Type

To Reproduce

  1. Deploy prometheus using latest or v3.0.0
  2. Deploy Scaphandre using compose manifests

Expected behavior

Scaphandre should have a valid Content-type added to the request header and prometheus should be able to scrape metrics from Scaphandre

Screenshots

Screenshot 2024-11-15 at 11 14 24 PM
Screenshot 2024-11-15 at 11 14 08 PM

Environment

  • Linux distribution version [Fedora 39]
  • Kernel version (6.11.6-100.fc39.x86_64)

Additional context

@vprashar2929 vprashar2929 added the bug Something isn't working label Nov 15, 2024
@jsmrcaga
Copy link

For anyone looking for a solution, you can define the protocol in your prometheus configuration directly, using the fallback_scrape_protocol label.

From a simple testing on my end, the correct type is PrometheusText1.0.0

Example:

scrape_configs:
  - job_name: scaphandre
    scheme: http
    fallback_scrape_protocol: PrometheusText1.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants