File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
os-capacity
2
2
===========
3
3
4
- This is a prototype tool to extract prototype information.
4
+ This is a prototype tool to extract capacity information.
5
5
6
6
.. note ::
7
7
@@ -25,6 +25,17 @@ Now lets get that installed inside a virtual environment:
25
25
source .venv-test/bin/activate
26
26
pip install -U .
27
27
28
+ Prometheus Exporter
29
+ -------------------
30
+
31
+ Assuming you have clouds.yaml in the right place and OS_CLOUD set:
32
+
33
+ .. code ::
34
+
35
+ ./os_capacity/prometheus.py
36
+ openstack_total_capacity_per_flavor{flavor="small"} 1
37
+ openstack_capacity_by_hostname{hypervisor="aio",flavor="small"} 1
38
+
28
39
Configuration
29
40
-------------
30
41
Original file line number Diff line number Diff line change 18
18
from cliff .lister import Lister
19
19
20
20
from os_capacity .data import metrics
21
+ from os_capacity import prometheus
21
22
from os_capacity import utils
22
- from os_capacity . data import candidates
23
+
23
24
24
25
25
26
class PrometheusAll (Lister ):
26
27
"""To be run as node exporter textfile collector."""
27
28
def take_action (self , parsed_args ):
28
- candidates .print_exporter_data (self .app )
29
+ prometheus .print_exporter_data (self .app )
29
30
# TODO(johngarbutt) a total hack!
30
31
return (('fake' ), [])
31
32
File renamed without changes.
You can’t perform that action at this time.
0 commit comments