-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathvcloud-types.yaml
More file actions
61 lines (55 loc) · 2.2 KB
/
vcloud-types.yaml
File metadata and controls
61 lines (55 loc) · 2.2 KB
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
node_types:
###########################################################
# We define a type that inherits vcloud's default
# server, and adds monitoring capabillities on top of it.
###########################################################
nodecellar.nodes.MonitoredServer:
derived_from: cloudify.vcloud.nodes.Server
properties:
cloudify_agent:
default:
user: { get_input: agent_user }
home_dir: /home/ubuntu
server:
default:
catalog: { get_input: catalog }
template: { get_input: template }
hardware:
cpu: { get_input: server_cpu }
memory: { get_input: server_memory }
management_network:
default: { get_input: management_network_name }
interfaces:
###########################################################
# We are infact telling cloudify to install a diamond
# monitoring agent on the server.
#
# (see https://github.com/BrightcoveOS/Diamond)
###########################################################
cloudify.interfaces.monitoring_agent:
install:
implementation: diamond.diamond_agent.tasks.install
inputs:
diamond_config:
default:
interval: { get_input: diamond_reporting_interval }
start: diamond.diamond_agent.tasks.start
stop: diamond.diamond_agent.tasks.stop
uninstall: diamond.diamond_agent.tasks.uninstall
###########################################################
# Adding some collectors. These collectors are necessary
# for the Cloudify UI to display the deafult metrics.
###########################################################
cloudify.interfaces.monitoring:
start:
implementation: diamond.diamond_agent.tasks.add_collectors
inputs:
collectors_config:
default:
CPUCollector: {}
MemoryCollector: {}
LoadAverageCollector: {}
DiskUsageCollector:
config:
devices: x?vd[a-z]+[0-9]*$
NetworkCollector: {}