Skip to content

allow headers to be added to prometheus requests#1757

Merged
aryan9600 merged 1 commit intofluxcd:mainfrom
otternq:metric-provider-headers
Mar 28, 2025
Merged

allow headers to be added to prometheus requests#1757
aryan9600 merged 1 commit intofluxcd:mainfrom
otternq:metric-provider-headers

Conversation

@otternq
Copy link
Copy Markdown
Contributor

@otternq otternq commented Jan 14, 2025

This update allows the Prometheus metrics provisioner to add HTTP headers to its requests.

I'm specifically adding this to support Grafana Mimir's multi-tenant feature. Mimir looks for the X-Scope-OrgID header to determine which tenant a query is for. Though I haven't tried it, it looks like Thanos also uses headers for multi-tenancy

Copy link
Copy Markdown
Member

@aryan9600 aryan9600 left a comment

Choose a reason for hiding this comment

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

thanks for this PR!

Signed-off-by: Nick Otter <otternq@gmail.com>
Co-authored-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
@aryan9600 aryan9600 force-pushed the metric-provider-headers branch from f8438ab to 8f9bb5b Compare March 26, 2025 19:34
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 26, 2025

Codecov Report

❌ Patch coverage is 23.52941% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 28.43%. Comparing base (12ee6cb) to head (8f9bb5b).
⚠️ Report is 91 commits behind head on main.

Files with missing lines Patch % Lines
pkg/apis/flagger/v1beta1/zz_generated.deepcopy.go 0.00% 13 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1757       +/-   ##
===========================================
- Coverage   39.44%   28.43%   -11.01%     
===========================================
  Files         287      287               
  Lines       22706    22802       +96     
===========================================
- Hits         8956     6484     -2472     
- Misses      12777    15596     +2819     
+ Partials      973      722      -251     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aryan9600 aryan9600 merged commit e0de40d into fluxcd:main Mar 28, 2025
18 checks passed
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.

4 participants