blob: a2b55afc1c3aca3f7913504d0b22a9e6aa6805ab [file] [log] [blame]
Srikanth Vavilapallia7ae6512017-02-13 02:29:21 +00001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Auto generated file to enable monitoring of infrastructure services (OpenStack, ONOS...etc).
4
5imports:
6 - custom_types/xos.yaml
7 - custom_types/monitoring_tosca_types.yaml
8
9topology_template:
10 node_templates:
11 service_ceilometer:
12 type: tosca.nodes.CeilometerService
13 properties:
14 no-create: true
15 no-update: true
16 no-delete: true
17
18 onos_monitoring_agent_head_node:
19 description: Monitoring agent info
20 type: tosca.nodes.InfraMonitoringAgentInfo
21 properties:
22 start_url: http://ceilometer-1.cord.lab:5004/monitoring/agent/onos/start
23 start_url_json_data: { get_artifact: [ SELF, onos_monitoring_service_endpoints, LOCAL_FILE] }
24 stop_url: http://ceilometer-1.cord.lab:5004/monitoring/agent/onos/stop
25 artifacts:
26 onos_monitoring_service_endpoints: /opt/cord_profile/onos_monitoring_service_endpoints.json
27
28 os_monitoring_agent_head_node:
29 description: Openstack Monitoring agent info
30 type: tosca.nodes.InfraMonitoringAgentInfo
31 properties:
32 start_url: http://ceilometer-1.cord.lab:5004/monitoring/agent/openstack/start
33 stop_url: http://ceilometer-1.cord.lab:5004/monitoring/agent/openstack/stop
34
35# OpenStack compute nodes
36{% for node in groups["compute"] %}
37 os_monitoring_agent_cp_{{ loop.index }}:
38 description: Openstack Monitoring agent info for {{ node }}
39 type: tosca.nodes.InfraMonitoringAgentInfo
40 properties:
41 start_url: http://{{ node }}:5004/monitoring/agent/openstack/start
42 stop_url: http://{{ node }}:5004/monitoring/agent/openstack/stop
43{% endfor %}
44
45 os_monitoring_collector_plugin:
46 description: Infra Monitoring collector plugin info
47 type: tosca.nodes.MonitoringCollectorPluginInfo
48 properties:
49 plugin_folder_path: /opt/xos/synchronizers/monitoring/ceilometer/ceilometer-plugins/network/ext_services/openstack_infra/
50 plugin_rabbit_exchange: openstack_infra
51
52 openstack_monitoring_publisher_tenant:
53 description: OpenStack Monitoring Publisher Tenant
54 type: tosca.nodes.OpenStackMonitoringPublisher
55 requirements:
56 - provider_service:
57 node: service_ceilometer
58 relationship: tosca.relationships.TenantOfService
59 - monitoring_collector_plugin:
60 node: os_monitoring_collector_plugin
61 relationship: tosca.relationships.ProvidesMonitoringCollectorPluginInfo
62 - monitoring_agent_1:
63 node: os_monitoring_agent_head_node
64 relationship: tosca.relationships.ProvidesInfraMonitoringAgentInfo
65 - monitoring_agent_2:
66 node: onos_monitoring_agent_head_node
67 relationship: tosca.relationships.ProvidesInfraMonitoringAgentInfo
68{% set count = 2 %}
69{% for node in groups["compute"] %}
70 - monitoring_agent_{{ count + loop.index }}:
71 node: os_monitoring_agent_cp_{{ loop.index }}
72 relationship: tosca.relationships.ProvidesInfraMonitoringAgentInfo
73{% endfor %}
74