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``:
|
- ``/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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user