blob: 625b64ff165bbeaee84ac3b6d314fdddeb47b5b2 [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001
2{#
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16#}
17
18
Srikanth Vavilapallia7ae6512017-02-13 02:29:21 +000019tosca_definitions_version: tosca_simple_yaml_1_0
20
21description: Auto generated file to enable monitoring of infrastructure services (OpenStack, ONOS...etc).
22
23imports:
24 - custom_types/xos.yaml
25 - custom_types/monitoring_tosca_types.yaml
26
27topology_template:
28 node_templates:
29 service_ceilometer:
30 type: tosca.nodes.CeilometerService
31 properties:
32 no-create: true
33 no-update: true
34 no-delete: true
35
36 onos_monitoring_agent_head_node:
37 description: Monitoring agent info
38 type: tosca.nodes.InfraMonitoringAgentInfo
39 properties:
40 start_url: http://ceilometer-1.cord.lab:5004/monitoring/agent/onos/start
41 start_url_json_data: { get_artifact: [ SELF, onos_monitoring_service_endpoints, LOCAL_FILE] }
42 stop_url: http://ceilometer-1.cord.lab:5004/monitoring/agent/onos/stop
43 artifacts:
44 onos_monitoring_service_endpoints: /opt/cord_profile/onos_monitoring_service_endpoints.json
45
46 os_monitoring_agent_head_node:
47 description: Openstack Monitoring agent info
48 type: tosca.nodes.InfraMonitoringAgentInfo
49 properties:
50 start_url: http://ceilometer-1.cord.lab:5004/monitoring/agent/openstack/start
51 stop_url: http://ceilometer-1.cord.lab:5004/monitoring/agent/openstack/stop
52
53# OpenStack compute nodes
54{% for node in groups["compute"] %}
55 os_monitoring_agent_cp_{{ loop.index }}:
56 description: Openstack Monitoring agent info for {{ node }}
57 type: tosca.nodes.InfraMonitoringAgentInfo
58 properties:
59 start_url: http://{{ node }}:5004/monitoring/agent/openstack/start
60 stop_url: http://{{ node }}:5004/monitoring/agent/openstack/stop
61{% endfor %}
62
63 os_monitoring_collector_plugin:
64 description: Infra Monitoring collector plugin info
65 type: tosca.nodes.MonitoringCollectorPluginInfo
66 properties:
67 plugin_folder_path: /opt/xos/synchronizers/monitoring/ceilometer/ceilometer-plugins/network/ext_services/openstack_infra/
68 plugin_rabbit_exchange: openstack_infra
69
70 openstack_monitoring_publisher_tenant:
71 description: OpenStack Monitoring Publisher Tenant
72 type: tosca.nodes.OpenStackMonitoringPublisher
73 requirements:
74 - provider_service:
75 node: service_ceilometer
76 relationship: tosca.relationships.TenantOfService
77 - monitoring_collector_plugin:
78 node: os_monitoring_collector_plugin
79 relationship: tosca.relationships.ProvidesMonitoringCollectorPluginInfo
80 - monitoring_agent_1:
81 node: os_monitoring_agent_head_node
82 relationship: tosca.relationships.ProvidesInfraMonitoringAgentInfo
83 - monitoring_agent_2:
84 node: onos_monitoring_agent_head_node
85 relationship: tosca.relationships.ProvidesInfraMonitoringAgentInfo
86{% set count = 2 %}
87{% for node in groups["compute"] %}
88 - monitoring_agent_{{ count + loop.index }}:
89 node: os_monitoring_agent_cp_{{ loop.index }}
90 relationship: tosca.relationships.ProvidesInfraMonitoringAgentInfo
91{% endfor %}
92