-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathcloudstack-types.yaml
More file actions
82 lines (73 loc) · 2.84 KB
/
cloudstack-types.yaml
File metadata and controls
82 lines (73 loc) · 2.84 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
node_types:
###########################################################
# We define a type that inherits cloudstack's default
# virtual machine, and adds monitoring
# capabillities on top of it.
#
# Two things to note here:
#
# - We use our 'management_network_resource_id' input
# as the default value for the management network name.
#
# This will be used for letting the management machine
# know which ip it should connect to when installing
# agents.
#
# - We use our 'nodecellar_network_resource_id' input
# as the default value for the host network.
#
###########################################################
nodecellar.nodes.MonitoredServer:
derived_from: cloudify.cloudstack.nodes.VirtualMachine
properties:
management_network_name:
#####################################################
# This is needed for identification of which nic
# to look for when obtaining the VM ip address
#####################################################
default: { get_input: management_network_resource_id }
cloudify_agent:
default:
user: { get_input: agent_user }
server:
default:
image_id: { get_input: image }
size: { get_input: size }
# Uncomment network definition for cloudstack-vpc
# network:
# default:
# default_network: { get_input: nodecellar_network_resource_id }
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: {}