File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
kolla/config/prometheus/prometheus.yml.d Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ # yamllint disable-file
2
+ ---
3
+ {% if stackhpc_enable_radosgw_usage_exporter | bool %}
4
+ {% raw %}
5
+ scrape_configs :
6
+ - job_name : ceph_radosgw_usage_exporter
7
+ honor_labels : true
8
+ scrape_interval : 15s
9
+ metric_relabel_configs :
10
+ - replacement : ${1}
11
+ source_labels : [owner,user]
12
+ target_label : tenant_id
13
+ separator : " "
14
+ regex : (.+)
15
+ static_configs :
16
+ - targets :
17
+ {% for host in groups['monitoring'] %}
18
+ - " {{ 'api' | kolla_address(host) | put_address_in_context('url') }}:{% endraw %}{{ stackhpc_radosgw_usage_exporter_port }}{% raw %}"
19
+ {% endfor %}
20
+ {% endraw %}
21
+ {% endif %}
Original file line number Diff line number Diff line change @@ -31,3 +31,4 @@ stackhpc_os_capacity_openstack_verify: true
31
31
# Enabling this will result in templating radosge_usage_exporter endpoint as
32
32
# Prometheus scrape targets during deployment.
33
33
stackhpc_enable_radosgw_usage_exporter : false
34
+ stackhpc_radosgw_usage_exporter_port : 9242
You can’t perform that action at this time.
0 commit comments