Merge "Fix formatting of code block"
This commit is contained in:
commit
756792e512
@ -110,48 +110,49 @@ files:
|
||||
|
||||
- ``/etc/kolla/config/prometheus/prometheus.yml.d/ipmi-exporter.yml``:
|
||||
|
||||
.. code-block:: jinja
|
||||
.. code-block:: jinja
|
||||
|
||||
---
|
||||
scrape_configs:
|
||||
- job_name: ipmi
|
||||
params:
|
||||
module: ["default"]
|
||||
scrape_interval: 1m
|
||||
scrape_timeout: 30s
|
||||
metrics_path: /ipmi
|
||||
scheme: http
|
||||
file_sd_configs:
|
||||
- files:
|
||||
- /etc/prometheus/extras/file_sd/ipmi-exporter-targets.yml
|
||||
refresh_interval: 5m
|
||||
relabel_configs:
|
||||
- source_labels: [__address__]
|
||||
separator: ;
|
||||
regex: (.*)
|
||||
target_label: __param_target
|
||||
replacement: ${1}
|
||||
action: replace
|
||||
- source_labels: [__param_target]
|
||||
separator: ;
|
||||
regex: (.*)
|
||||
target_label: instance
|
||||
replacement: ${1}
|
||||
action: replace
|
||||
- separator: ;
|
||||
regex: .*
|
||||
target_label: __address__
|
||||
replacement: "{{ ipmi_exporter_listen_address }}:9290"
|
||||
action: replace
|
||||
---
|
||||
scrape_configs:
|
||||
- job_name: ipmi
|
||||
params:
|
||||
module: ["default"]
|
||||
scrape_interval: 1m
|
||||
scrape_timeout: 30s
|
||||
metrics_path: /ipmi
|
||||
scheme: http
|
||||
file_sd_configs:
|
||||
- files:
|
||||
- /etc/prometheus/extras/file_sd/ipmi-exporter-targets.yml
|
||||
refresh_interval: 5m
|
||||
relabel_configs:
|
||||
- source_labels: [__address__]
|
||||
separator: ;
|
||||
regex: (.*)
|
||||
target_label: __param_target
|
||||
replacement: ${1}
|
||||
action: replace
|
||||
- source_labels: [__param_target]
|
||||
separator: ;
|
||||
regex: (.*)
|
||||
target_label: instance
|
||||
replacement: ${1}
|
||||
action: replace
|
||||
- separator: ;
|
||||
regex: .*
|
||||
target_label: __address__
|
||||
replacement: "{{ ipmi_exporter_listen_address }}:9290"
|
||||
action: replace
|
||||
|
||||
where ``ipmi_exporter_listen_address`` is a variable containing the IP address of
|
||||
the node where the exporter is running.
|
||||
|
||||
- ``/etc/kolla/config/prometheus/extras/file_sd/ipmi-exporter-targets.yml``:
|
||||
.. code-block:: yaml
|
||||
|
||||
---
|
||||
- targets:
|
||||
- 192.168.1.1
|
||||
labels:
|
||||
job: ipmi_exporter
|
||||
.. code-block:: yaml
|
||||
|
||||
---
|
||||
- targets:
|
||||
- 192.168.1.1
|
||||
labels:
|
||||
job: ipmi_exporter
|
||||
|
Loading…
x
Reference in New Issue
Block a user