forked from canonical/prometheus-openstack-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prometheus-openstack-exporter.sample.yaml
59 lines (48 loc) · 2.72 KB
/
prometheus-openstack-exporter.sample.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
# Example configuration file for prometheus-openstack-exporter
# Copyright (C) 2016-2019 Canonical, Ltd.
#
listen_port: VAR_LISTEN_PORT # listenPort=9183
cache_refresh_interval: VAR_CACHE_REFRESH_INTERVAL # cacheRefreshInterval=300 In seconds
cache_file: VAR_CACHE_FILE # cacheFileName=$(mktemp -p /dev/shm/)
cloud: VAR_CLOUD # cloud=${OS_REGION_NAME:-mycloud}
openstack_allocation_ratio_vcpu: VAR_VCPU_RATIO # vcpuRatio=1.0
openstack_allocation_ratio_ram: VAR_RAM_RATIO # ramRatio=1.0
openstack_allocation_ratio_disk: VAR_DISK_RATIO # diskRatio=1.0
log_level: VAR_LOG_LEVEL # logLevel=INFO
# Configure the enabled collectors here. Note that the Swift account
# collector in particular has special requirements.
enabled_collectors: # enabledCollectors=cinder neutron nova
- VAR_ENABLED_COLLECTORS
# To export hypervisor_schedulable_instances metric set desired instance size
schedulable_instance_size:
ram_mbs: VAR_SCHEDULABLE_INSTANCE_RAM # schedulableInstanceRam=4096
vcpu: VAR_SCHEDULABLE_INSTANCE_VCPU # schedulableInstanceVcpu=2
disk_gbs: VAR_SCHEDULABLE_INSTANCE_DISK # schedulableInstanceDisk=20
# Uncomment if the cloud doesn't provide cinder / nova volumes:
use_nova_volumes: VAR_USE_NOVA_VOLUMES # useNovaVolumes=True
## Swift
# There is no way to retrieve them using OpenStack APIs
# For clouds deployed without swift, remove this part
swift_hosts: # swiftHosts=host1.example.com host2.example.com
- VAR_SWIFT_HOSTS
# 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: # keystoneTenantsMap="firstname,1234567890 secondname,0987654321"
- VAR_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: VAR_RESELLER_PREFIX # resellerPrefix=AUTH_
ring_path: VAR_RING_PATH # ringPath=/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: VAR_HASH_PATH_PREFIX # hashPathPrefix=
hash_path_suffix: VAR_HASH_PATH_SUFFIX # hashPathSuffix=