Skip to content

fix: allow configuring scrapeProtocols for ServiceMonitor#732

Merged
ubajze merged 2 commits into
nautobot:developfrom
skrobul:prometheus-scrape-configs
Apr 2, 2026
Merged

fix: allow configuring scrapeProtocols for ServiceMonitor#732
ubajze merged 2 commits into
nautobot:developfrom
skrobul:prometheus-scrape-configs

Conversation

@skrobul
Copy link
Copy Markdown
Contributor

@skrobul skrobul commented Mar 23, 2026

DRF intermittently fails to negotiate content type while serving HTTP requests for metrics from Prometheus.

Details of this bug are available in nautobot/nautobot#8026

As a workaround, this PR adds ability to explicitly configure scrapeProtocols which effectively avoids the problem of content negotiation and thus triggering the bug.

DRF intermittently fails to negotiate content type while serving
HTTP requests for metrics from Prometheus.

Details of this bug are available in nautobot/nautobot#8026

As a workaround, this PR adds ability to explicitly configure
scrapeProtocols which effectively avoids the problem.
@ubajze ubajze self-assigned this Apr 1, 2026
@ubajze
Copy link
Copy Markdown
Contributor

ubajze commented Apr 2, 2026

@skrobul Thank you for opening this PR. Overall, the PR looks good. Do you mind adding scrapeProtocols: [] ' to values.yaml`?

metrics:
  serviceMonitor:

    # -- ([]string) <PROVIDE SHORT DESCRIPTION>
    scrapeProtocols: []

After that, I think we are good to merge.

@skrobul
Copy link
Copy Markdown
Contributor Author

skrobul commented Apr 2, 2026

@ubajze thanks for the review - added to values.yaml and updated helm-docs.

Copy link
Copy Markdown
Contributor

@ubajze ubajze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ubajze ubajze merged commit 2d3dff1 into nautobot:develop Apr 2, 2026
5 of 7 checks passed
@gertzakis gertzakis mentioned this pull request Apr 3, 2026
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.

2 participants