Skip to content

Commit 122b64d

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

File tree

9 files changed

+1868
-0
lines changed

9 files changed

+1868
-0
lines changed

doc/source/configuration/monitoring.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,19 @@ 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 in your
144+
cloud. StackHPC Kayobe Config will deploy this by default and it's necessary
145+
that some variables are set to allow deployment to progress.
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>
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"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../ansible/deploy-os-capacity-exporter.yml

0 commit comments

Comments
 (0)