http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventbuilders/HealthStatisticsEventBuilder.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventbuilders/HealthStatisticsEventBuilder.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventbuilders/HealthStatisticsEventBuilder.xml new file mode 100644 index 0000000..92f8d8a --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventbuilders/HealthStatisticsEventBuilder.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<eventBuilder name="HealthStatisticsEventBuilder" statistics="disable" + trace="enable" xmlns="http://wso2.org/carbon/eventbuilder"> + <from eventAdaptorName="DefaultWSO2EventInputAdaptor" eventAdaptorType="wso2event"> + <property name="stream">cartridge_agent_health_stats</property> + <property name="version">1.0.0</property> + </from> + <mapping customMapping="disable" type="wso2event"/> + <to streamName="cartridge_agent_health_stats" version="1.0.0"/> +</eventBuilder>
http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventbuilders/LoadBalancerStatisticsEventBuilder.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventbuilders/LoadBalancerStatisticsEventBuilder.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventbuilders/LoadBalancerStatisticsEventBuilder.xml new file mode 100644 index 0000000..8090e63 --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventbuilders/LoadBalancerStatisticsEventBuilder.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<eventBuilder name="LoadBalancerStatisticsEventBuilder" + statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventbuilder"> + <from eventAdaptorName="DefaultWSO2EventInputAdaptor" eventAdaptorType="wso2event"> + <property name="stream">in_flight_requests</property> + <property name="version">1.0.0</property> + </from> + <mapping customMapping="disable" type="wso2event"/> + <to streamName="in_flight_requests" version="1.0.0"/> +</eventBuilder> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/AverageInFlightRequestsEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/AverageInFlightRequestsEventFormatter.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/AverageInFlightRequestsEventFormatter.xml new file mode 100644 index 0000000..5955866 --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/AverageInFlightRequestsEventFormatter.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<eventFormatter name="AverageRequestsInflightEventFormatter" + statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventformatter"> + <from streamName="average_in_flight_requests" version="1.0.0"/> + <mapping customMapping="enable" type="json"> + <inline>{"org.apache.stratos.messaging.event.health.stat.AverageRequestsInFlightEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{count}}"}}}</inline> + </mapping> + <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> + <property name="transport.jms.Destination">summarized-health-stats</property> + </to> +</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/AverageLoadAverageEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/AverageLoadAverageEventFormatter.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/AverageLoadAverageEventFormatter.xml new file mode 100644 index 0000000..a0e2052 --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/AverageLoadAverageEventFormatter.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<eventFormatter name="AverageLoadAverageEventFormatter" + statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventformatter"> + <from streamName="average_load_average_stats" version="1.0.0"/> + <mapping customMapping="enable" type="json"> + <inline>{"org.apache.stratos.messaging.event.health.stat.AverageLoadAverageEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{average_load_average}}"}}}</inline> + </mapping> + <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> + <property name="transport.jms.Destination">summarized-health-stats</property> + </to> +</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/AverageMemoryConsumptionEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/AverageMemoryConsumptionEventFormatter.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/AverageMemoryConsumptionEventFormatter.xml new file mode 100644 index 0000000..cbcab0a --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/AverageMemoryConsumptionEventFormatter.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<eventFormatter name="AverageMemoryConsumptionEventFormatter" + statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventformatter"> + <from streamName="average_memory_consumption_stats" version="1.0.0"/> + <mapping customMapping="enable" type="json"> + <inline>{"org.apache.stratos.messaging.event.health.stat.AverageMemoryConsumptionEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{average_memory_consumption}}"}}}</inline> + </mapping> + <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> + <property name="transport.jms.Destination">summarized-health-stats</property> + </to> +</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/FaultMessageEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/FaultMessageEventFormatter.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/FaultMessageEventFormatter.xml new file mode 100644 index 0000000..96264ca --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/FaultMessageEventFormatter.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<eventFormatter name="FaultMessageEventFormatter" + statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventformatter"> + <from streamName="fault_message" version="1.0.0"/> + <mapping customMapping="enable" type="json"> + <inline>{"org.apache.stratos.messaging.event.health.stat.MemberFaultEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","memberId":"{{member_id}}","partitionId":"{{partition_id}}"}}}</inline> + </mapping> + <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> + <property name="transport.jms.Destination">summarized-health-stats</property> + </to> +</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/GradientInFlightRequestsEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/GradientInFlightRequestsEventFormatter.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/GradientInFlightRequestsEventFormatter.xml new file mode 100644 index 0000000..2b5045b --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/GradientInFlightRequestsEventFormatter.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<eventFormatter name="GradientInFlightRequestsEventFormatter" statistics="disable" + trace="disable" xmlns="http://wso2.org/carbon/eventformatter"> + <from streamName="gradient_in_flight_requests" version="1.0.0"/> + <mapping customMapping="enable" type="json"> + <inline>{"org.apache.stratos.messaging.event.health.stat.GradientOfRequestsInFlightEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{count}}"}}}</inline> + </mapping> + <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> + <property name="transport.jms.Destination">summarized-health-stats</property> + </to> +</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/GradientLoadAverageEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/GradientLoadAverageEventFormatter.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/GradientLoadAverageEventFormatter.xml new file mode 100644 index 0000000..7fa3d7a --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/GradientLoadAverageEventFormatter.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<eventFormatter name="GradientLoadAverageEventFormatter" + statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventformatter"> + <from streamName="gradient_load_average_stats" version="1.0.0"/> + <mapping customMapping="enable" type="json"> + <inline>{"org.apache.stratos.messaging.event.health.stat.GradientOfLoadAverageEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{gradient_load_average}}"}}}</inline> + </mapping> + <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> + <property name="transport.jms.Destination">summarized-health-stats</property> + </to> +</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/GradientMemoryConsumptionEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/GradientMemoryConsumptionEventFormatter.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/GradientMemoryConsumptionEventFormatter.xml new file mode 100644 index 0000000..8c3b871 --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/GradientMemoryConsumptionEventFormatter.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<eventFormatter name="GradientMemoryConsumptionEventFormatter" + statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventformatter"> + <from streamName="gradient_memory_consumption_stats" version="1.0.0"/> + <mapping customMapping="enable" type="json"> + <inline>{"org.apache.stratos.messaging.event.health.stat.GradientOfMemoryConsumptionEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{gradient_memory_consumption}}"}}}</inline> + </mapping> + <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> + <property name="transport.jms.Destination">summarized-health-stats</property> + </to> +</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberAverageLoadAverageEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberAverageLoadAverageEventFormatter.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberAverageLoadAverageEventFormatter.xml new file mode 100644 index 0000000..cab6df6 --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberAverageLoadAverageEventFormatter.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<eventFormatter name="MemberAverageLoadAverageEventFormatter" + statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventformatter"> + <from streamName="member_average_load_average_stats" version="1.0.0"/> + <mapping customMapping="enable" type="json"> + <inline>{"org.apache.stratos.messaging.event.health.stat.MemberAverageLoadAverageEvent":{"message":{"memberId":"{{member_id}}","clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{member_average_load_average}}"}}}</inline> + </mapping> + <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> + <property name="transport.jms.Destination">summarized-health-stats</property> + </to> +</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberAverageMemoryConsumptionEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberAverageMemoryConsumptionEventFormatter.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberAverageMemoryConsumptionEventFormatter.xml new file mode 100644 index 0000000..7f6e1f8 --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberAverageMemoryConsumptionEventFormatter.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<eventFormatter name="MemberAverageMemoryConsumptionEventFormatter" + statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventformatter"> + <from streamName="member_average_memory_consumption_stats" version="1.0.0"/> + <mapping customMapping="enable" type="json"> + <inline>{"org.apache.stratos.messaging.event.health.stat.MemberAverageMemoryConsumptionEvent":{"message":{"memberId":"{{member_id}}","clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{member_average_memory_consumption}}"}}}</inline> + </mapping> + <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> + <property name="transport.jms.Destination">summarized-health-stats</property> + </to> +</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberGradientLoadAverageEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberGradientLoadAverageEventFormatter.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberGradientLoadAverageEventFormatter.xml new file mode 100644 index 0000000..af73b46 --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberGradientLoadAverageEventFormatter.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<eventFormatter name="MemberGradientLoadAverageEventFormatter" + statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventformatter"> + <from streamName="member_gradient_load_average_stats" version="1.0.0"/> + <mapping customMapping="enable" type="json"> + <inline>{"org.apache.stratos.messaging.event.health.stat.MemberGradientOfLoadAverageEvent":{"message":{"memberId":"{{member_id}}","clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{member_gradient_load_average}}"}}}</inline> + </mapping> + <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> + <property name="transport.jms.Destination">summarized-health-stats</property> + </to> +</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberGradientMemoryConsumptionEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberGradientMemoryConsumptionEventFormatter.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberGradientMemoryConsumptionEventFormatter.xml new file mode 100644 index 0000000..702f149 --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberGradientMemoryConsumptionEventFormatter.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<eventFormatter name="MemberGradientMemoryConsumptionEventFormatter" + statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventformatter"> + <from streamName="member_gradient_memory_consumption_stats" version="1.0.0"/> + <mapping customMapping="enable" type="json"> + <inline>{"org.apache.stratos.messaging.event.health.stat.MemberGradientOfMemoryConsumptionEvent":{"message":{"memberId":"{{member_id}}","clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{member_gradient_memory_consumption}}"}}}</inline> + </mapping> + <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> + <property name="transport.jms.Destination">summarized-health-stats</property> + </to> +</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberSecondDerivativeLoadAverageEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberSecondDerivativeLoadAverageEventFormatter.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberSecondDerivativeLoadAverageEventFormatter.xml new file mode 100644 index 0000000..5281652 --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberSecondDerivativeLoadAverageEventFormatter.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<eventFormatter name="MemberSecondDerivativeLoadAverageEventFormatter" + statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventformatter"> + <from streamName="member_second_derivative_load_average_stats" version="1.0.0"/> + <mapping customMapping="enable" type="json"> + <inline>{"org.apache.stratos.messaging.event.health.stat.MemberSecondDerivativeOfLoadAverageEvent":{"message":{"memberId":"{{member_id}}","clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{member_second_derivative_load_average}}"}}}</inline> + </mapping> + <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> + <property name="transport.jms.Destination">summarized-health-stats</property> + </to> +</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberSecondDerivativeMemoryConsumptionEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberSecondDerivativeMemoryConsumptionEventFormatter.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberSecondDerivativeMemoryConsumptionEventFormatter.xml new file mode 100644 index 0000000..2e32be3 --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/MemberSecondDerivativeMemoryConsumptionEventFormatter.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<eventFormatter name="MemberSecondDerivativeMemoryConsumptionEventFormatter" + statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventformatter"> + <from streamName="member_second_derivative_memory_consumption_stats" version="1.0.0"/> + <mapping customMapping="enable" type="json"> + <inline>{"org.apache.stratos.messaging.event.health.stat.MemberSecondDerivativeOfMemoryConsumptionEvent":{"message":{"memberId":"{{member_id}}","clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{member_second_derivative_memory_consumption}}"}}}</inline> + </mapping> + <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> + <property name="transport.jms.Destination">summarized-health-stats</property> + </to> +</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/SecondDerivativeInFlightRequestsEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/SecondDerivativeInFlightRequestsEventFormatter.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/SecondDerivativeInFlightRequestsEventFormatter.xml new file mode 100644 index 0000000..61862d1 --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/SecondDerivativeInFlightRequestsEventFormatter.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<eventFormatter name="SecondDerivativeEventFormatter" + statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventformatter"> + <from streamName="second_derivative_in_flight_requests" version="1.0.0"/> + <mapping customMapping="enable" type="json"> + <inline>{"org.apache.stratos.messaging.event.health.stat.SecondDerivativeOfRequestsInFlightEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{count}}"}}}</inline> + </mapping> + <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> + <property name="transport.jms.Destination">summarized-health-stats</property> + </to> +</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/SecondDerivativeLoadAverageEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/SecondDerivativeLoadAverageEventFormatter.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/SecondDerivativeLoadAverageEventFormatter.xml new file mode 100644 index 0000000..3dc4a74 --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/SecondDerivativeLoadAverageEventFormatter.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<eventFormatter name="SecondDerivativeLoadAverageEventFormatter" + statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventformatter"> + <from streamName="second_derivative_load_average_stats" version="1.0.0"/> + <mapping customMapping="enable" type="json"> + <inline>{"org.apache.stratos.messaging.event.health.stat.SecondDerivativeOfLoadAverageEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{second_derivative_load_average}}"}}}</inline> + </mapping> + <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> + <property name="transport.jms.Destination">summarized-health-stats</property> + </to> +</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/SecondDerivativeMemoryConsumptionEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/SecondDerivativeMemoryConsumptionEventFormatter.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/SecondDerivativeMemoryConsumptionEventFormatter.xml new file mode 100644 index 0000000..bb0f70c --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/eventformatters/SecondDerivativeMemoryConsumptionEventFormatter.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<eventFormatter name="SecondDerivativeMemoryConsumptionEventFormatter" + statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventformatter"> + <from streamName="second_derivative_memory_consumption_stats" version="1.0.0"/> + <mapping customMapping="enable" type="json"> + <inline>{"org.apache.stratos.messaging.event.health.stat.SecondDerivativeOfMemoryConsumptionEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{second_derivative_memory_consumption}}"}}}</inline> + </mapping> + <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> + <property name="transport.jms.Destination">summarized-health-stats</property> + </to> +</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/AverageHeathRequest.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/AverageHeathRequest.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/AverageHeathRequest.xml new file mode 100644 index 0000000..b60a0bf --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/AverageHeathRequest.xml @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<executionPlan name="AverageHeathRequest" statistics="disable" + trace="enable" xmlns="http://wso2.org/carbon/eventprocessor"> + <description>This will average health stats of an instance over a minute.</description> + <siddhiConfiguration> + <property name="siddhi.enable.distributed.processing">false</property> + <property name="siddhi.persistence.snapshot.time.interval.minutes">0</property> + </siddhiConfiguration> + <importedStreams> + <stream as="health_avg_processsor" name="cartridge_agent_health_stats" version="1.0.0"/> + </importedStreams> + <queryExpressions><![CDATA[ + from health_avg_processsor [health_description == 'ports_not_open'] + select cluster_id, cluster_instance_id, network_partition_id, member_id, partition_id insert into fault_message; + from health_avg_processsor + select cluster_id, cluster_instance_id, network_partition_id, member_id, partition_id, health_description, value, + stratos:concat(cluster_id, '-' , cluster_instance_id) as health_grad_cluster_network + insert into health_avg_concatinator; + define partition health_avg_cluster_partition by health_avg_concatinator.health_grad_cluster_network; + define partition member_health_avg_cluster_partition by health_avg_processsor.member_id; + from health_avg_concatinator [health_description == 'load_average'] + #window.timeBatch(1 min) select cluster_id, cluster_instance_id, network_partition_id, avg(value) as average_load_average + insert into average_load_average_stats + partition by health_avg_cluster_partition; + from health_avg_processsor [health_description == 'load_average'] + #window.timeBatch(1 min) select member_id, cluster_id, cluster_instance_id, network_partition_id, avg(value) as member_average_load_average + insert into member_average_load_average_stats + partition by member_health_avg_cluster_partition; + from health_avg_processsor [health_description == 'memory_consumption'] + #window.timeBatch(1 min) select member_id, cluster_id, cluster_instance_id, network_partition_id, avg(value) as member_average_memory_consumption + insert into member_average_memory_consumption_stats + partition by member_health_avg_cluster_partition; + from health_avg_concatinator [health_description == 'memory_consumption'] + #window.timeBatch(1 min) select cluster_id, cluster_instance_id, network_partition_id, avg(value) as average_memory_consumption + insert into average_memory_consumption_stats + partition by health_avg_cluster_partition; + ]]></queryExpressions> + <exportedStreams> + <stream name="average_load_average_stats" passthroughFlow="disable" + valueOf="average_load_average_stats" version="1.0.0"/> + <stream name="member_average_load_average_stats" passthroughFlow="disable" + valueOf="member_average_load_average_stats" version="1.0.0"/> + <stream name="member_average_memory_consumption_stats" passthroughFlow="disable" + valueOf="member_average_memory_consumption_stats" version="1.0.0"/> + <stream name="average_memory_consumption_stats" passthroughFlow="disable" + valueOf="average_memory_consumption_stats" version="1.0.0"/> + <stream name="fault_message" passthroughFlow="disable" + valueOf="fault_message" version="1.0.0"/> + </exportedStreams> +</executionPlan> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/AverageInFlightRequestsFinder.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/AverageInFlightRequestsFinder.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/AverageInFlightRequestsFinder.xml new file mode 100644 index 0000000..20b94da --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/AverageInFlightRequestsFinder.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<executionPlan name="AverageInFlightRequestsFinder" statistics="disable" + trace="enable" xmlns="http://wso2.org/carbon/eventprocessor"> + <description>This will average the number of requests in flight over a minute.</description> + <siddhiConfiguration> + <property name="siddhi.enable.distributed.processing">false</property> + <property name="siddhi.persistence.snapshot.time.interval.minutes">0</property> + </siddhiConfiguration> + <importedStreams> + <stream as="avg_rif_stat" name="in_flight_requests" version="1.0.0"/> + </importedStreams> + <queryExpressions><![CDATA[ + from avg_rif_stat + select cluster_id, cluster_instance_id, network_partition_id, in_flight_request_count, + stratos:concat(cluster_id, '-' ,cluster_instance_id) as avg_rif_cluster_network + insert into avg_rif_concat; + define partition avg_rif_cluster_partition by avg_rif_concat.avg_rif_cluster_network; + from avg_rif_concat#window.timeBatch(1 min) + select cluster_id, cluster_instance_id, network_partition_id, avg(in_flight_request_count) as count + insert into average_in_flight_requests + partition by avg_rif_cluster_partition; + ]]></queryExpressions> + <exportedStreams> + <stream name="average_in_flight_requests" + valueOf="average_in_flight_requests" version="1.0.0"/> + </exportedStreams> +</executionPlan> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/GradientOfHealthRequest.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/GradientOfHealthRequest.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/GradientOfHealthRequest.xml new file mode 100644 index 0000000..fcbc24e --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/GradientOfHealthRequest.xml @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<executionPlan name="GradientOfHealthRequest" statistics="disable" + trace="disable" xmlns="http://wso2.org/carbon/eventprocessor"> + <description>This will find the gradient of the heath request over a minute.</description> + <siddhiConfiguration> + <property name="siddhi.enable.distributed.processing">false</property> + <property name="siddhi.persistence.snapshot.time.interval.minutes">0</property> + </siddhiConfiguration> + <importedStreams> + <stream as="health_grad_processsor" name="cartridge_agent_health_stats" version="1.0.0"/> + </importedStreams> + <queryExpressions><![CDATA[ + from health_grad_processsor + #window.stratos:faultHandling(1min, member_id) select cluster_id, cluster_instance_id, network_partition_id, member_id, partition_id + group by cluster_id, network_partition_id + insert into fault_message; + from health_grad_processsor + select cluster_id, cluster_instance_id, network_partition_id, member_id, partition_id, health_description, value, + stratos:concat(cluster_id, '-' , cluster_instance_id) as health_grad_cluster_network + insert into health_grad_concatinator; + define partition health_grad_cluster_partition by health_grad_concatinator.health_grad_cluster_network; + define partition member_health_grad_cluster_partition by health_grad_processsor.member_id; + from health_grad_concatinator [health_description == 'load_average'] + #window.stratos:gradient(1 min, value) select cluster_id, cluster_instance_id, network_partition_id, value as gradient_load_average + insert into gradient_load_average_stats + partition by health_grad_cluster_partition; + from health_grad_processsor [health_description == 'load_average'] + #window.stratos:gradient(1 min, value) select member_id, cluster_id, cluster_instance_id, network_partition_id, value as member_gradient_load_average + insert into member_gradient_load_average_stats + partition by member_health_grad_cluster_partition; + from health_grad_processsor [health_description == 'memory_consumption'] + #window.stratos:gradient(1 min, value) select member_id, cluster_id, cluster_instance_id, network_partition_id, value as member_gradient_memory_consumption + insert into member_gradient_memory_consumption_stats partition by member_health_grad_cluster_partition; + from health_grad_concatinator [health_description == 'memory_consumption'] + #window.stratos:gradient(1 min, value) select cluster_id, cluster_instance_id, network_partition_id, value as gradient_memory_consumption + insert into gradient_memory_consumption_stats + partition by health_grad_cluster_partition;]]></queryExpressions> + <exportedStreams> + <stream name="gradient_load_average_stats" + valueOf="gradient_load_average_stats" version="1.0.0"/> + <stream name="gradient_memory_consumption_stats" + valueOf="gradient_memory_consumption_stats" version="1.0.0"/> + <stream name="member_gradient_load_average_stats" + valueOf="member_gradient_load_average_stats" version="1.0.0"/> + <stream name="member_gradient_memory_consumption_stats" + valueOf="member_gradient_memory_consumption_stats" version="1.0.0"/> + <stream name="fault_message" passthroughFlow="disable" + valueOf="fault_message" version="1.0.0"/> + </exportedStreams> +</executionPlan> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/GradientOfRequestsInFlightFinder.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/GradientOfRequestsInFlightFinder.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/GradientOfRequestsInFlightFinder.xml new file mode 100644 index 0000000..fff4a8a --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/GradientOfRequestsInFlightFinder.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<executionPlan name="GradientOfRequestsInFlightFinder" + statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventprocessor"> + <description>This will find the gradient of the number of requests in flight over a minute.</description> + <siddhiConfiguration> + <property name="siddhi.enable.distributed.processing">false</property> + <property name="siddhi.persistence.snapshot.time.interval.minutes">0</property> + </siddhiConfiguration> + <importedStreams> + <stream as="gradient_rif_processor" name="in_flight_requests" version="1.0.0"/> + </importedStreams> + <queryExpressions><![CDATA[ + from gradient_rif_processor + select cluster_id, cluster_instance_id, network_partition_id, in_flight_request_count, + stratos:concat(cluster_id, '-' , network_partition_id) as request_grad_cluster_network + insert into gradient_rif_concatinator; + define partition request_grad_cluster_partition by gradient_rif_concatinator.request_grad_cluster_network; + from gradient_rif_concatinator + #window.stratos:gradient(1 min, in_flight_request_count) + select cluster_id, cluster_instance_id, network_partition_id,in_flight_request_count as count + insert into gradient_in_flight_requests + partition by request_grad_cluster_partition; +]]></queryExpressions> + <exportedStreams> + <stream name="gradient_in_flight_requests" valueOf="gradient_in_flight_requests" version="1.0.0"/> + </exportedStreams> +</executionPlan> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/SecondDerivativeOfHealthRequest.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/SecondDerivativeOfHealthRequest.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/SecondDerivativeOfHealthRequest.xml new file mode 100644 index 0000000..0fa4a0a --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/SecondDerivativeOfHealthRequest.xml @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<executionPlan name="SecondDerivativeOfHealthRequest" + statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventprocessor"> + <description>This will find the second derivative of health stats over a minute.</description> + <siddhiConfiguration> + <property name="siddhi.enable.distributed.processing">false</property> + <property name="siddhi.persistence.snapshot.time.interval.minutes">0</property> + </siddhiConfiguration> + <importedStreams> + <stream as="health_second_der_request" name="cartridge_agent_health_stats" version="1.0.0"/> + </importedStreams> + <queryExpressions><![CDATA[ + from health_second_der_request + select member_id, cluster_id, cluster_instance_id, network_partition_id, health_description, value, + stratos:concat(cluster_id, '-' ,cluster_instance_id) as health_second_der_cluster_network + insert into health_second_der_concat; + define partition health_second_der_cluster_partition by health_second_der_concat.health_second_der_cluster_network; + from health_second_der_concat [health_description == 'memory_consumption'] + #window.stratos:secondDerivative(1 min, value) select cluster_id, cluster_instance_id, network_partition_id, value as second_derivative_memory_consumption + insert into second_derivative_memory_consumption_stats + partition by health_second_der_cluster_partition; + from health_second_der_concat [health_description == 'load_average'] + #window.stratos:secondDerivative(1 min, value) select cluster_id, cluster_instance_id, network_partition_id, value as second_derivative_load_average + insert into second_derivative_load_average_stats + partition by health_second_der_cluster_partition; + define partition health_second_der_member_partition by health_second_der_request.member_id; + from health_second_der_request [health_description == 'memory_consumption'] + #window.stratos:secondDerivative(1 min, value) + select member_id, cluster_id, cluster_instance_id, network_partition_id, value as member_second_derivative_memory_consumption + insert into member_second_derivative_memory_consumption_stats + partition by health_second_der_member_partition; + from health_second_der_request [health_description == 'load_average'] + #window.stratos:secondDerivative(1 min, value) + select member_id, cluster_id, cluster_instance_id, network_partition_id, value as member_second_derivative_load_average + insert into member_second_derivative_load_average_stats + partition by health_second_der_member_partition;]]></queryExpressions> + <exportedStreams> + <stream name="second_derivative_memory_consumption_stats" + valueOf="second_derivative_memory_consumption_stats" version="1.0.0"/> + <stream name="second_derivative_load_average_stats" + valueOf="second_derivative_load_average_stats" version="1.0.0"/> + <stream name="member_second_derivative_memory_consumption_stats" + valueOf="member_second_derivative_memory_consumption_stats" version="1.0.0"/> + <stream name="member_second_derivative_load_average_stats" + valueOf="member_second_derivative_load_average_stats" version="1.0.0"/> + </exportedStreams> +</executionPlan> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/SecondDerivativeOfRequestsInFlightFinder.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/SecondDerivativeOfRequestsInFlightFinder.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/SecondDerivativeOfRequestsInFlightFinder.xml new file mode 100644 index 0000000..c8e4ed5 --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/executionplans/SecondDerivativeOfRequestsInFlightFinder.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<executionPlan name="SecondDerivativeOfRequestsInFlightFinder" + statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventprocessor"> + <description>This will find the second derivative of the number of requests in flight over a minute.</description> + <siddhiConfiguration> + <property name="siddhi.enable.distributed.processing">false</property> + <property name="siddhi.persistence.snapshot.time.interval.minutes">0</property> + </siddhiConfiguration> + <importedStreams> + <stream as="second_der_rif" name="in_flight_requests" version="1.0.0"/> + </importedStreams> + <queryExpressions><![CDATA[ + from second_der_rif + select cluster_id, cluster_instance_id, network_partition_id, in_flight_request_count, + stratos:concat(cluster_id, '-' ,network_partition_id) as rif_second_der_cluster_network + insert into rif_second_der_concat; + define partition rif_second_der_cluster_partition by rif_second_der_concat.rif_second_der_cluster_network; + from rif_second_der_concat#window.stratos:secondDerivative(1 min, in_flight_request_count) + select cluster_id, cluster_instance_id, network_partition_id,in_flight_request_count as count + insert into second_derivative_in_flight_requests + partition by rif_second_der_cluster_partition; + ]]></queryExpressions> + <exportedStreams> + <stream name="second_derivative_in_flight_requests" + valueOf="second_derivative_in_flight_requests" version="1.0.0"/> + </exportedStreams> +</executionPlan> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/inputeventadaptors/DefaultWSO2EventInputAdaptor.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/inputeventadaptors/DefaultWSO2EventInputAdaptor.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/inputeventadaptors/DefaultWSO2EventInputAdaptor.xml new file mode 100644 index 0000000..77af463 --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/inputeventadaptors/DefaultWSO2EventInputAdaptor.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<inputEventAdaptor name="DefaultWSO2EventInputAdaptor" + statistics="disable" trace="enable" type="wso2event" xmlns="http://wso2.org/carbon/eventadaptormanager"/> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/outputeventadaptors/DefaultWSO2EventOutputAdaptor.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/outputeventadaptors/DefaultWSO2EventOutputAdaptor.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/outputeventadaptors/DefaultWSO2EventOutputAdaptor.xml new file mode 100644 index 0000000..4438d2c --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/outputeventadaptors/DefaultWSO2EventOutputAdaptor.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<outputEventAdaptor name="DefaultWSO2EventOutputAdaptor" + statistics="disable" trace="disable" type="wso2event" xmlns="http://wso2.org/carbon/eventadaptormanager"> + <property name="username">admin</property> + <property name="receiverURL">tcp://localhost:7661</property> + <property name="password">admin</property> + <property name="authenticatorURL">ssl://localhost:7761</property> +</outputEventAdaptor> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/outputeventadaptors/JMSOutputAdaptor.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/outputeventadaptors/JMSOutputAdaptor.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/outputeventadaptors/JMSOutputAdaptor.xml new file mode 100644 index 0000000..59c3653 --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/outputeventadaptors/JMSOutputAdaptor.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<outputEventAdaptor name="JMSOutputAdaptor" statistics="disable" + trace="enable" type="jms" xmlns="http://wso2.org/carbon/eventadaptormanager"> + <!--property name="java.naming.provider.url">CEP_HOME/repository/conf/jndi.properties</property--> + <property name="java.naming.provider.url">tcp://localhost:61616</property> + <property name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</property> + <property name="transport.jms.ConnectionFactoryJNDIName">TopicConnectionFactory</property> + <property name="transport.jms.DestinationType">topic</property> +</outputEventAdaptor> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.0.0/streamdefinitions/stream-manager-config.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.0.0/streamdefinitions/stream-manager-config.xml b/extensions/cep/modules/artifacts/wso2cep-3.0.0/streamdefinitions/stream-manager-config.xml new file mode 100644 index 0000000..4c4c7e0 --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.0.0/streamdefinitions/stream-manager-config.xml @@ -0,0 +1,309 @@ +<?xml version='1.0'?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<streamManagerConfiguration xmlns="http://wso2.org/carbon/streammanager"> + <!-- in-flight requests stream definitions start --> + <streamDefinition name="in_flight_requests" version="1.0.0"> + <description>in-flight request count</description> + <nickName>in-flight requests</nickName> + <metaData> + </metaData> + <correlationData> + </correlationData> + <payloadData> + <property name="cluster_id" type="String"/> + <property name="cluster_instance_id" type="String"/> + <property name="network_partition_id" type="String"/> + <property name="in_flight_request_count" type="double"/> + </payloadData> + </streamDefinition> + + <streamDefinition name="gradient_in_flight_requests" version="1.0.0"> + <description>gradient of in flight request count</description> + <nickName>gradient in flight requests</nickName> + <metaData> + </metaData> + <correlationData> + </correlationData> + <payloadData> + <property name="cluster_id" type="String"/> + <property name="cluster_instance_id" type="String"/> + <property name="network_partition_id" type="String"/> + <property name="count" type="double"/> + </payloadData> + </streamDefinition> + + <streamDefinition name="average_in_flight_requests" version="1.0.0"> + <description>average of in-flight request count</description> + <nickName>average in-flight requests</nickName> + <metaData> + </metaData> + <correlationData> + </correlationData> + <payloadData> + <property name="cluster_id" type="String"/> + <property name="cluster_instance_id" type="String"/> + <property name="network_partition_id" type="String"/> + <property name="count" type="double"/> + </payloadData> + </streamDefinition> + + <streamDefinition name="second_derivative_in_flight_requests" version="1.0.0"> + <description>second derivative of in-flight request count</description> + <nickName>second derivative in-flight requests</nickName> + <metaData> + </metaData> + <correlationData> + </correlationData> + <payloadData> + <property name="cluster_id" type="String"/> + <property name="cluster_instance_id" type="String"/> + <property name="network_partition_id" type="String"/> + <property name="count" type="double"/> + </payloadData> + </streamDefinition> + <!-- in-flight requests stream definitions end --> + + <!-- cartridge agent health stats stream definitions start --> + <streamDefinition name="cartridge_agent_health_stats" version="1.0.0"> + <description>agent health stats</description> + <nickName>agent health stats</nickName> + <metaData> + </metaData> + <correlationData> + </correlationData> + <payloadData> + <property name="cluster_id" type="String" /> + <property name="cluster_instance_id" type="String"/> + <property name="network_partition_id" type="String"/> + <property name="member_id" type="String" /> + <property name="partition_id" type="String" /> + <property name="health_description" type="String"/> + <property name="value" type="double"/> + </payloadData> + </streamDefinition> + + <streamDefinition name="average_load_average_stats" version="1.0.0"> + <description>average load average stats</description> + <nickName>average load average stats</nickName> + <metaData> + </metaData> + <correlationData> + </correlationData> + <payloadData> + <property name="cluster_id" type="String" /> + <property name="cluster_instance_id" type="String"/> + <property name="network_partition_id" type="String"/> + <property name="average_load_average" type="double"/> + </payloadData> + </streamDefinition> + + <streamDefinition name="average_memory_consumption_stats" version="1.0.0"> + <description>average memory consumption stats</description> + <nickName>average memory consumption stats</nickName> + <metaData> + </metaData> + <correlationData> + </correlationData> + <payloadData> + <property name="cluster_id" type="String"/> + <property name="cluster_instance_id" type="String"/> + <property name="network_partition_id" type="String"/> + <property name="average_memory_consumption" type="double"/> + </payloadData> + </streamDefinition> + + <streamDefinition name="gradient_load_average_stats" version="1.0.0"> + <description>gradient load average stats</description> + <nickName>gradient load average stats</nickName> + <metaData> + </metaData> + <correlationData> + </correlationData> + <payloadData> + <property name="cluster_id" type="String" /> + <property name="cluster_instance_id" type="String"/> + <property name="network_partition_id" type="String"/> + <property name="gradient_load_average" type="double"/> + </payloadData> + </streamDefinition> + + <streamDefinition name="gradient_memory_consumption_stats" version="1.0.0"> + <description>gradient memoryconsumption stats</description> + <nickName>gradient memoryconsumption stats</nickName> + <metaData> + </metaData> + <correlationData> + </correlationData> + <payloadData> + <property name="cluster_id" type="String" /> + <property name="cluster_instance_id" type="String"/> + <property name="network_partition_id" type="String"/> + <property name="gradient_memory_consumption" type="double"/> + </payloadData> + </streamDefinition> + + <streamDefinition name="second_derivative_memory_consumption_stats" version="1.0.0"> + <description>second derivative memory consumption stats</description> + <nickName>second derivative memory consumption stats</nickName> + <metaData> + </metaData> + <correlationData> + </correlationData> + <payloadData> + <property name="cluster_id" type="String" /> + <property name="cluster_instance_id" type="String"/> + <property name="network_partition_id" type="String"/> + <property name="second_derivative_memory_consumption" type="double"/> + </payloadData> + </streamDefinition> + + <streamDefinition name="second_derivative_load_average_stats" version="1.0.0"> + <description>second derivative load average stats</description> + <nickName>second derivative load average stats</nickName> + <metaData> + </metaData> + <correlationData> + </correlationData> + <payloadData> + <property name="cluster_id" type="String" /> + <property name="cluster_instance_id" type="String"/> + <property name="network_partition_id" type="String"/> + <property name="second_derivative_load_average" type="double"/> + </payloadData> + </streamDefinition> + + <streamDefinition name="fault_message" version="1.0.0"> + <description>fault message</description> + <nickName>fault message</nickName> + <metaData> + </metaData> + <correlationData> + </correlationData> + <payloadData> + <property name="cluster_id" type="String"/> + <property name="cluster_instance_id" type="String"/> + <property name="network_partition_id" type="String"/> + <property name="member_id" type="String"/> + <property name="partition_id" type="String"/> + </payloadData> + </streamDefinition> + <!-- cartridge agent health stats stream definitions end --> + + <!-- This is for member_id wise grouping--> + <streamDefinition name="member_average_load_average_stats" version="1.0.0"> + <description>average load average stats</description> + <nickName>average load average stats</nickName> + <metaData> + </metaData> + <correlationData> + </correlationData> + <payloadData> + <property name="member_id" type="String" /> + <property name="cluster_id" type="String" /> + <property name="cluster_instance_id" type="String"/> + <property name="network_partition_id" type="String"/> + <property name="member_average_load_average" type="double"/> + </payloadData> + </streamDefinition> + + <streamDefinition name="member_average_memory_consumption_stats" version="1.0.0"> + <description>average memory consumption stats</description> + <nickName>average memory consumption stats</nickName> + <metaData> + </metaData> + <correlationData> + </correlationData> + <payloadData> + <property name="member_id" type="String"/> + <property name="cluster_id" type="String"/> + <property name="cluster_instance_id" type="String"/> + <property name="network_partition_id" type="String"/> + <property name="member_average_memory_consumption" type="double"/> + </payloadData> + </streamDefinition> + + <streamDefinition name="member_gradient_load_average_stats" version="1.0.0"> + <description>gradient load average stats</description> + <nickName>gradient load average stats</nickName> + <metaData> + </metaData> + <correlationData> + </correlationData> + <payloadData> + <property name="member_id" type="String" /> + <property name="cluster_id" type="String" /> + <property name="cluster_instance_id" type="String"/> + <property name="network_partition_id" type="String"/> + <property name="member_gradient_load_average" type="double"/> + </payloadData> + </streamDefinition> + + <streamDefinition name="member_gradient_memory_consumption_stats" version="1.0.0"> + <description>gradient memoryconsumption stats</description> + <nickName>gradient memoryconsumption stats</nickName> + <metaData> + </metaData> + <correlationData> + </correlationData> + <payloadData> + <property name="member_id" type="String" /> + <property name="cluster_id" type="String" /> + <property name="cluster_instance_id" type="String"/> + <property name="network_partition_id" type="String"/> + <property name="member_gradient_memory_consumption" type="double"/> + </payloadData> + </streamDefinition> + + <streamDefinition name="member_second_derivative_memory_consumption_stats" version="1.0.0"> + <description>second derivative memory consumption stats</description> + <nickName>second derivative memory consumption stats</nickName> + <metaData> + </metaData> + <correlationData> + </correlationData> + <payloadData> + <property name="member_id" type="String" /> + <property name="cluster_id" type="String" /> + <property name="cluster_instance_id" type="String"/> + <property name="network_partition_id" type="String"/> + <property name="member_second_derivative_memory_consumption" type="double"/> + </payloadData> + </streamDefinition> + + <streamDefinition name="member_second_derivative_load_average_stats" version="1.0.0"> + <description>second derivative load average stats</description> + <nickName>second derivative load average stats</nickName> + <metaData> + </metaData> + <correlationData> + </correlationData> + <payloadData> + <property name="member_id" type="String" /> + <property name="cluster_id" type="String" /> + <property name="cluster_instance_id" type="String"/> + <property name="network_partition_id" type="String"/> + <property name="member_second_derivative_load_average" type="double"/> + </payloadData> + </streamDefinition> + +</streamManagerConfiguration> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventbuilders/HealthStatisticsEventBuilder.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventbuilders/HealthStatisticsEventBuilder.xml b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventbuilders/HealthStatisticsEventBuilder.xml new file mode 100644 index 0000000..92f8d8a --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventbuilders/HealthStatisticsEventBuilder.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<eventBuilder name="HealthStatisticsEventBuilder" statistics="disable" + trace="enable" xmlns="http://wso2.org/carbon/eventbuilder"> + <from eventAdaptorName="DefaultWSO2EventInputAdaptor" eventAdaptorType="wso2event"> + <property name="stream">cartridge_agent_health_stats</property> + <property name="version">1.0.0</property> + </from> + <mapping customMapping="disable" type="wso2event"/> + <to streamName="cartridge_agent_health_stats" version="1.0.0"/> +</eventBuilder> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventbuilders/LoadBalancerStatisticsEventBuilder.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventbuilders/LoadBalancerStatisticsEventBuilder.xml b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventbuilders/LoadBalancerStatisticsEventBuilder.xml new file mode 100644 index 0000000..8090e63 --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventbuilders/LoadBalancerStatisticsEventBuilder.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<eventBuilder name="LoadBalancerStatisticsEventBuilder" + statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventbuilder"> + <from eventAdaptorName="DefaultWSO2EventInputAdaptor" eventAdaptorType="wso2event"> + <property name="stream">in_flight_requests</property> + <property name="version">1.0.0</property> + </from> + <mapping customMapping="disable" type="wso2event"/> + <to streamName="in_flight_requests" version="1.0.0"/> +</eventBuilder> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/AverageInFlightRequestsEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/AverageInFlightRequestsEventFormatter.xml b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/AverageInFlightRequestsEventFormatter.xml new file mode 100644 index 0000000..5955866 --- /dev/null +++ b/extensions/cep/modules/artifacts/wso2cep-3.1.0/eventformatters/AverageInFlightRequestsEventFormatter.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> + +<eventFormatter name="AverageRequestsInflightEventFormatter" + statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventformatter"> + <from streamName="average_in_flight_requests" version="1.0.0"/> + <mapping customMapping="enable" type="json"> + <inline>{"org.apache.stratos.messaging.event.health.stat.AverageRequestsInFlightEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{count}}"}}}</inline> + </mapping> + <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> + <property name="transport.jms.Destination">summarized-health-stats</property> + </to> +</eventFormatter>
