forked from canonical/prometheus-openstack-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prometheus-openstack-exporter.yaml
63 lines (52 loc) · 2.06 KB
/
prometheus-openstack-exporter.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Example configuration file for prometheus-openstack-exporter
# Copyright (C) 2016-2019 Canonical, Ltd.
#
listen_port: 9183
cache_refresh_interval: 300 # In seconds
cache_file: /var/cache/prometheus-openstack-exporter/mycloud
cloud: mycloud
openstack_allocation_ratio_vcpu: 2.5
openstack_allocation_ratio_ram: 1.1
openstack_allocation_ratio_disk: 1.0
log_level: INFO
# Configure the enabled collectors here. Note that the Swift account
# collector in particular has special requirements.
enabled_collectors:
- cinder
- neutron
- nova
- swift
# - swift-account-usage
# To export hypervisor_schedulable_instances metric set desired instance size
schedulable_instance_size:
ram_mbs: 4096
vcpu: 2
disk_gbs: 20
# Uncomment if the cloud doesn't provide cinder / nova volumes:
#use_nova_volumes: False
## Swift
# There is no way to retrieve them using OpenStack APIs
# For clouds deployed without swift, remove this part
swift_hosts:
- host1.example.com
- host2.example.com
# There is no API to ask Swift for a list of accounts it knows about.
# Even if there were, Swift (in common case of Keystone auth, at
# least) only knows them by the corresponding tenant ID, which would
# be a less than useful label without post-processing. The following
# should point to a file containing one line per tenant, with the
# tenant name first, then whitespace, followed by the tenant ID.
keystone_tenants_map:
# The reseller prefix is typically used by the Swift middleware to
# keep accounts with different providers separate. We would ideally
# look this up dynamically from the Swift configuration.
# The Keystone middlware defaults to the following value.
reseller_prefix: AUTH_
ring_path: /etc/swift
# These will typically be read from /etc/swift/swift.conf. If that
# file cannot be opened, then the Swift library will log an error and
# try to exit. To run p-s-a-e as a user other than Swift, these
# settings must be set to the same values as Swift itself, and the
# above must point to an always-current readable copy of the rings.
hash_path_prefix:
hash_path_suffix: