Skip to content

Commit f3d4351

Browse files
Add os_exporter playbook, config and dashboards
1 parent 9ed844e commit f3d4351

File tree

8 files changed

+1889
-0
lines changed

8 files changed

+1889
-0
lines changed

doc/source/configuration/monitoring.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,34 @@ mgrs group and list them as the endpoints for prometheus. Additionally,
136136
depending on your configuration, you may need set the
137137
``kolla_enable_prometheus_ceph_mgr_exporter`` variable to ``true`` in order to
138138
enable the ceph mgr exporter.
139+
140+
OpenStack Capacity
141+
==================
142+
143+
OpenStack Capacity allows you to see how much space you have avaliable
144+
in your cloud. StackHPC Kayobe Config includes this exporter by default
145+
and it's necessary that some variables are set to allow deployment.
146+
147+
To successfully deploy OpenStack Capacity, you are required to specify
148+
the OpenStack application credentials in ``kayobe/secrets.yml`` as:
149+
150+
.. code-block:: yaml
151+
152+
secrets_os_exporter_auth_url: <some_auth_url>
153+
secrets_os_exporter_credential_id: <some_credential_id>
154+
secrets_os_exporter_credential_secret: <some_credential_secret>
155+
156+
After defining your credentials, You may deploy OpenStack Capacity
157+
using the ``ansible/deploy-os-capacity-exporter.yml`` Ansible playbook
158+
via Kayobe.
159+
160+
.. code-block:: console
161+
162+
kayobe playbook run ansible/deploy-os-capacity-exporter.yml
163+
164+
It is required that you re-configure the Prometheus, Grafana and HAProxy
165+
services following deployment, to do this run the following Kayobe command.
166+
167+
.. code-block:: console
168+
169+
kayobe overcloud service reconfigure -kt grafana,prometheus,haproxy
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
- hosts: monitoring
3+
gather_facts: false
4+
5+
tasks:
6+
- name: Create os-capacity directory
7+
ansible.builtin.file:
8+
path: /opt/kayobe/os-capacity/
9+
state: directory
10+
11+
- name: Template clouds.yml
12+
ansible.builtin.template:
13+
src: templates/os_capacity-clouds.yml.j2
14+
dest: /opt/kayobe/os-capacity/clouds.yaml
15+
16+
- name: Ensure os_capacity container is running
17+
docker_container:
18+
name: os_capacity
19+
image: ghcr.io/stackhpc/os-capacity:master
20+
env:
21+
OS_CLOUD: openstack
22+
OS_CLIENT_CONFIG_FILE: /etc/openstack/clouds.yaml
23+
mounts:
24+
- type: bind
25+
source: /opt/kayobe/os-capacity/
26+
target: /etc/openstack/
27+
network_mode: host
28+
restart_policy: unless-stopped
29+
become: true
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
clouds:
2+
openstack:
3+
auth:
4+
auth_url: "{{ secrets_os_exporter_auth_url }}"
5+
application_credential_id: "{{ secrets_os_exporter_credential_id }}"
6+
application_credential_secret: "{{ secrets_os_exporter_credential_secret }}"
7+
region_name: "RegionOne"
8+
interface: "internal"
9+
identity_api_version: 3
10+
auth_type: "v3applicationcredential"

0 commit comments

Comments
 (0)