Skip to content

Conversation

@Binco97
Copy link

@Binco97 Binco97 commented Dec 3, 2025

The prometheus container runned with the docker-compose.yml was showing the following error:

msg="Failed to determine correct type of scrape target." component="scrape manager" scrape_pool=scaphandre target=http://scaphandre:8080/metrics content_type="" fallback_media_type="" err="non-compliant scrape target sending blank Content-Type and no fallback_scrape_protocol specified for target"

This was due to the fact that since version 3.x, prometheus needs to read a Content-Type alongside the metrics that specifies the scraping protocol to be used.

Adding the fallback_scrape_protocol fixes the problem but it probably would be a good idea to add a Content-Type too.

fix the scraping error "Failed to determine correct type of scrape target." of the prometheus container by setting a fallback_scrape_protocol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant