-
Notifications
You must be signed in to change notification settings - Fork 23
Put the RadosGW Usage Exporter behind HAProxy #1697
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
Merged
Alex-Welsh
merged 3 commits into
stackhpc/2024.1
from
radosgw-usage-exporter-behind-haproxy
Jun 12, 2025
+49
−6
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
etc/kayobe/kolla/config/haproxy/services.d/radosgw_usage_exporter.cfg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{% if stackhpc_enable_radosgw_usage_exporter | bool %} | ||
{% raw %} | ||
frontend radosgw_usage_exporter_frontend | ||
mode http | ||
http-request del-header X-Forwarded-Proto | ||
option httplog | ||
option forwardfor | ||
http-request set-header X-Forwarded-Proto https if { ssl_fc } | ||
{% if kolla_enable_tls_internal | bool %} | ||
bind {{ kolla_internal_vip_address }}:{{ stackhpc_radosgw_usage_exporter_frontend_port }} ssl crt /etc/haproxy/certificates/haproxy-internal.pem | ||
{% else %} | ||
bind {{ kolla_internal_vip_address }}:{{ stackhpc_radosgw_usage_exporter_frontend_port }} | ||
{% endif %} | ||
default_backend radosgw_usage_exporter_backend | ||
|
||
backend radosgw_usage_exporter_backend | ||
mode http | ||
|
||
{% for host in groups['monitoring'] %} | ||
{% set host_name = hostvars[host].ansible_facts.hostname %} | ||
{% set host_ip = 'api' | kolla_address(host) %} | ||
server {{ host_name }} {{ host_ip }}:{{ stackhpc_radosgw_usage_exporter_backend_port }} check inter 2000 rise 2 fall 5 | ||
{% endfor %} | ||
{% endraw %} | ||
{% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
releasenotes/notes/radosgw-usage-exporter-behind-haproxy-e4371d2732f2a081.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
features: | ||
- | | ||
The radosgw-usage-exporter is now put behind HAProxy. To facilitate this, | ||
``stackhpc_radosgw_usage_exporter_port`` had been renamed to | ||
``stackhpc_radosgw_usage_exporter_backend_port`` (it remains 9242) and | ||
``stackhpc_radosgw_usage_exporter_frontend_port`` (defaults to 9240) has | ||
been introduced. | ||
fixes: | ||
- | | ||
Fixes an issue where object storage metrics were missing from Prometheus by | ||
putting the radosgw-usage-exporter behind HAProxy. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.