Skip to content

Commit e41bf90

Browse files
authored
Add example scrape target
1 parent e7d2133 commit e41bf90

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,17 @@ Here is some example output from the exporter:::
9191
openstack_hypervisor_placement_allocatable_capacity{hypervisor="ctrl1",resource="VCPU"} 320.0
9292
openstack_hypervisor_placement_allocatable_capacity{hypervisor="ctrl1",resource="MEMORY_MB"} 622635.0
9393
openstack_hypervisor_placement_allocatable_capacity{hypervisor="ctrl1",resource="DISK_GB"} 19551.0
94+
95+
Example of a prometheus scrape config:::
96+
97+
- job_name: os_capacity
98+
relabel_configs:
99+
- regex: ([^:]+):\d+
100+
source_labels:
101+
- __address__
102+
target_label: instance
103+
static_configs:
104+
- targets:
105+
- localhost:9000
106+
scrape_interval: 2m
107+
scrape_timeout: 1m

0 commit comments

Comments
 (0)