Skip to content

Commit 5ea22d2

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

File tree

6 files changed

+1845
-0
lines changed

6 files changed

+1845
-0
lines changed
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: <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)