Skip to content

fix: configure Nautobot metrics scraping protocols through chart#2064

Open
skrobul wants to merge 2 commits into
mainfrom
nautobot-fix-metrics-followup
Open

fix: configure Nautobot metrics scraping protocols through chart#2064
skrobul wants to merge 2 commits into
mainfrom
nautobot-fix-metrics-followup

Conversation

@skrobul
Copy link
Copy Markdown
Collaborator

@skrobul skrobul commented Jun 3, 2026

Reverts workaround from #1859 in favor of the upstream fix.

Closes https://rackspace.atlassian.net/browse/PUC-1485

skrobul added 2 commits June 3, 2026 20:10
sometimes the django-prometheus returns HTTP 406. The exact headers captured on the wire were:

Accept: application/openmetrics-text;version=1.0.0;escaping=allow-utf-8;q=0.6,application/openmetrics-text;version=0.0.1;q=0.5,text/plain;version=1.0.0;escaping=allow-utf-8;q=0.4,text/plain;version=0.0.4;q=0.3,*/*;q=0.2

after some experimentation we found that dropping version=0.4.0 after text/plain fixes the problem.

This PR addresses the same underlying issue by specifying the header through spec.scrapeProtocols on the ServiceMonitor resource.
@skrobul skrobul requested a review from a team June 3, 2026 19:13
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