Fix formatting of code block

The ipmi-exporter code blocks had too much indentation.

Change-Id: I2cf3ab4873d9df2dfe1375cf7e2e0e5dc6571120
This commit is contained in:
Pierre Riteau 2022-04-23 09:29:16 +02:00
parent 7a6aeff403
commit 8c64e48298

View File

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