File tree Expand file tree Collapse file tree 10 files changed +374
-66
lines changed
grafana/dashboards/openstack
prometheus/prometheus.yml.d Expand file tree Collapse file tree 10 files changed +374
-66
lines changed Original file line number Diff line number Diff line change @@ -20,3 +20,4 @@ ignore: |
20
20
.github/
21
21
.gitlab/
22
22
.gitlab-ci.yml
23
+ *etc/kayobe/kolla/config/prometheus/prometheus.yml.d/70-oscapacity.yml
Original file line number Diff line number Diff line change @@ -141,17 +141,25 @@ OpenStack Capacity
141
141
==================
142
142
143
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.
144
+ in your cloud. StackHPC Kayobe Config includes a playbook for manual
145
+ deployment, and it's necessary that some variables are set before
146
+ running this playbook.
146
147
147
148
To successfully deploy OpenStack Capacity, you are required to specify
148
149
the OpenStack application credentials in ``kayobe/secrets.yml `` as:
149
150
150
151
.. code-block :: yaml
151
152
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>
153
+ secrets_os_capacity_auth_url : <some_auth_url>
154
+ secrets_os_capacity_credential_id : <some_credential_id>
155
+ secrets_os_capacity_credential_secret : <some_credential_secret>
156
+
157
+ Additionally, you are required to enable a conditional flag to allow
158
+ HAProxy configuration to be templated to controllers during deployment.
159
+
160
+ .. code-block :: yaml
161
+
162
+ stackhpc_enable_os_capacity : true
155
163
156
164
After defining your credentials, You may deploy OpenStack Capacity
157
165
using the ``ansible/deploy-os-capacity-exporter.yml `` Ansible playbook
Original file line number Diff line number Diff line change 4
4
5
5
tasks :
6
6
- name : Create os-capacity directory
7
- ansible.builtin. file :
7
+ file :
8
8
path : /opt/kayobe/os-capacity/
9
9
state : directory
10
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
11
+ - name : Create env-file
12
+ file :
13
+ path : /opt/kayobe/os-capacity/env-file
14
+ state : touch
15
+
16
+ - name : Read admin-openrc file
17
+ shell :
18
+ cmd : " cat $KOLLA_CONFIG_PATH/admin-openrc.sh | awk '{print $2}' | tail -n +5"
19
+ register : credentials
20
+
21
+ - name : Write environment variables to env-file
22
+ copy :
23
+ content : " {{ credentials.stdout_lines }}"
24
+ dest : /opt/kayobe/os-capacity/env-file
25
+
26
+ - name : Set TLS verification to false.
27
+ lineinfile :
28
+ path : /opt/kayobe/os-capacity/env-file
29
+ line : " OS_INSECURE=1"
30
+ when : kolla_enable_tls_internal | bool
15
31
16
32
- name : Ensure os_capacity container is running
17
33
docker_container :
18
34
name : os_capacity
19
35
image : ghcr.io/stackhpc/os-capacity:master
20
- env :
21
- OS_CLOUD : openstack
22
- OS_CLIENT_CONFIG_FILE : /etc/openstack/clouds.yaml
36
+ env-file : /opt/kayobe/os-capacity/env-file
23
37
mounts :
24
38
- type : bind
25
39
source : /opt/kayobe/os-capacity/
Original file line number Diff line number Diff line change 1
1
clouds:
2
2
openstack:
3
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 }}"
4
+ auth_url: "{{ secrets_os_capacity_auth_url }}"
5
+ application_credential_id: "{{ secrets_os_capacity_credential_id }}"
6
+ application_credential_secret: "{{ secrets_os_capacity_credential_secret }}"
7
7
region_name: "RegionOne"
8
8
interface: "internal"
9
9
identity_api_version: 3
10
10
auth_type: "v3applicationcredential"
11
+ {% if kolla_enable_tls_internal | bool %}
12
+ verify: False
13
+ {% endif %}
Original file line number Diff line number Diff line change 1
- {% raw % }
2
1
{
3
2
"annotations" : {
4
3
"list" : [
25
24
"editable" : true ,
26
25
"fiscalYearStartMonth" : 0 ,
27
26
"graphTooltip" : 0 ,
28
- "id" : 2084495 ,
29
27
"links" : [],
30
28
"liveNow" : false ,
31
29
"panels" : [
86
84
},
87
85
"textMode" : " auto"
88
86
},
89
- "pluginVersion" : " 9.4.7 " ,
87
+ "pluginVersion" : " 10.1.2 " ,
90
88
"repeat" : " flavors" ,
91
89
"repeatDirection" : " h" ,
92
90
"targets" : [
424
422
"tooltip" : false ,
425
423
"viz" : false
426
424
},
425
+ "insertNulls" : false ,
427
426
"lineInterpolation" : " linear" ,
428
427
"lineWidth" : 1 ,
429
428
"pointSize" : 5 ,
465
464
"y" : 17
466
465
},
467
466
"id" : 5 ,
467
+ "interval" : " 30m" ,
468
468
"options" : {
469
469
"legend" : {
470
470
"calcs" : [
522
522
"tooltip" : false ,
523
523
"viz" : false
524
524
},
525
+ "insertNulls" : false ,
525
526
"lineInterpolation" : " linear" ,
526
527
"lineWidth" : 1 ,
527
528
"pointSize" : 5 ,
563
564
"y" : 17
564
565
},
565
566
"id" : 16 ,
567
+ "interval" : " 30m" ,
566
568
"options" : {
567
569
"legend" : {
568
570
"calcs" : [
646
648
"tooltip" : false ,
647
649
"viz" : false
648
650
},
651
+ "insertNulls" : false ,
649
652
"lineInterpolation" : " smooth" ,
650
653
"lineStyle" : {
651
654
"fill" : " solid"
689
692
"y" : 26
690
693
},
691
694
"id" : 6 ,
695
+ "interval" : " 30m" ,
692
696
"options" : {
693
697
"legend" : {
694
698
"calcs" : [
750
754
"tooltip" : false ,
751
755
"viz" : false
752
756
},
757
+ "insertNulls" : false ,
753
758
"lineInterpolation" : " linear" ,
754
759
"lineWidth" : 1 ,
755
760
"pointSize" : 5 ,
791
796
"y" : 26
792
797
},
793
798
"id" : 4 ,
799
+ "interval" : " 30m" ,
794
800
"options" : {
795
801
"legend" : {
796
802
"calcs" : [
836
842
"current" : {
837
843
"selected" : false ,
838
844
"text" : " Prometheus" ,
839
- "value" : " Prometheus "
845
+ "value" : " PBFA97CFB590B2093 "
840
846
},
841
847
"description" : " The prometheus datasource used for queries." ,
842
848
"hide" : 0 ,
885
891
]
886
892
},
887
893
"time" : {
888
- "from" : " now-24h " ,
894
+ "from" : " now-2d " ,
889
895
"to" : " now"
890
896
},
891
897
"timepicker" : {},
894
900
"uid" : " g__ksD67z" ,
895
901
"version" : 1 ,
896
902
"weekStart" : " "
897
- }
898
- {% endraw % }
903
+ }
You can’t perform that action at this time.
0 commit comments