Skip to content

Commit 1df10c3

Browse files
authored
Merge pull request #501 from stackhpc/feature/yoga/redfish-exporter
Adds seed_redfish_exporter_container
2 parents d6b1b3a + bac0dc7 commit 1df10c3

File tree

10 files changed

+829
-1114
lines changed

10 files changed

+829
-1114
lines changed

doc/source/configuration/monitoring.rst

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,3 +247,37 @@ customer. The following are key considerations for that conversation:
247247
e.g. bond0 on a controller has eth0 and eth1 as members. bond1 on a compute
248248
uses eth0 and eth1 as members. This is not problematic as it is only
249249
the bond itself that is relabelled.
250+
251+
Redfish exporter
252+
================
253+
254+
Redfish exporter will query the overcloud BMCs via their redfish interfaces
255+
to produce various metrics relating to the hardware, and system health.
256+
257+
To configure the exporter, adjust the variables in
258+
``$KAYOBE_CONFIG_PATH/stackhpc-monitoring.yml`` to use appropriate values:
259+
260+
.. code-block:: yaml
261+
262+
# Whether the redfish exporter is enabled.
263+
stackhpc_enable_redfish_exporter: true
264+
265+
# Redfish exporter credentials
266+
redfish_exporter_default_username: "{{ ipmi_username }}"
267+
redfish_exporter_default_password: "{{ ipmi_password }}"
268+
269+
# The address of the BMC that is queried by redfish exporter for metrics.
270+
redfish_exporter_target_address: "{{ ipmi_address }}"
271+
272+
Deploy the exporter on the seed:
273+
274+
.. code-block:: console
275+
276+
kayobe seed service deploy -t seed-deploy-containers -kt none
277+
278+
It is required that you re-configure the Prometheus, Grafana
279+
services following deployment, to do this run the following Kayobe command.
280+
281+
.. code-block:: console
282+
283+
kayobe overcloud service reconfigure -kt grafana,prometheus
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
- name: Restart redfish exporter container if config changed
3+
become: true
4+
command: docker kill -s SIGHUP redfish_exporter
5+
when:
6+
- redfish_exporter_config is changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
3+
- name: Ensure /opt/kayobe/containers/redfish_exporter exists
4+
file:
5+
path: "/opt/kayobe/containers/redfish_exporter"
6+
state: directory
7+
mode: 0770
8+
become: true
9+
10+
- name: Template redfish exporter configuration file
11+
template:
12+
src: "{{ kayobe_config_path }}/containers/redfish_exporter/redfish_exporter.yml"
13+
dest: /opt/kayobe/containers/redfish_exporter/
14+
mode: 0660
15+
become: true
16+
register: redfish_exporter_config
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
hosts:
3+
default:
4+
username: "{{ redfish_exporter_default_username }}"
5+
password: "{{ redfish_exporter_default_password }}"

etc/kayobe/inventory/groups

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,9 @@ rgws
131131

132132
[cis-hardening:children]
133133
overcloud
134+
135+
###############################################################################
136+
# Monitoring groups.
137+
138+
[redfish_exporter_targets:children]
139+
overcloud

0 commit comments

Comments
 (0)