-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathaws-ec2-types.yaml
More file actions
55 lines (49 loc) · 1.96 KB
/
aws-ec2-types.yaml
File metadata and controls
55 lines (49 loc) · 1.96 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
node_types:
###########################################################
# We define a type that inherits ec2's default
# server, and adds monitoring capabillities on top of it.
###########################################################
nodecellar.nodes.MonitoredServer:
derived_from: cloudify.aws.nodes.Instance
properties:
cloudify_agent:
default:
user: { get_input: agent_user }
image_id:
default: { get_input: image }
instance_type:
default: { get_input: size }
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: {}