| <?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. |
| --> |
| |
| <application> |
| <type>TEST_APPLICATION</type> |
| <name>Test Monitoring Application</name> |
| <version>0.5.0-incubating</version> |
| <appClass>org.apache.eagle.app.TestStormApplication</appClass> |
| <viewPath>/apps/example</viewPath> |
| <configuration> |
| <property> |
| <name>message.content</name> |
| <displayName>Message</displayName> |
| <value>Hello, example application!</value> |
| <description>Just an sample configuration property</description> |
| </property> |
| </configuration> |
| |
| <!-- Output components --> |
| <streams> |
| <stream> |
| <streamId>TEST_STREAM_1</streamId> |
| <description>Example output stream #1</description> |
| <validate>true</validate> |
| <timeseries>true</timeseries> |
| <columns> |
| <column> |
| <name>metric</name> |
| <type>string</type> |
| </column> |
| <column> |
| <name>source</name> |
| <type>string</type> |
| </column> |
| <column> |
| <name>value</name> |
| <type>double</type> |
| <defaultValue>0.0</defaultValue> |
| </column> |
| </columns> |
| </stream> |
| <stream> |
| <streamId>TEST_STREAM_2</streamId> |
| <description>Example output stream #2</description> |
| <validate>true</validate> |
| <timeseries>true</timeseries> |
| <columns> |
| <column> |
| <name>metric</name> |
| <type>string</type> |
| </column> |
| <column> |
| <name>source</name> |
| <type>string</type> |
| </column> |
| <column> |
| <name>value</name> |
| <type>double</type> |
| <defaultValue>0.0</defaultValue> |
| </column> |
| </columns> |
| </stream> |
| </streams> |
| <docs> |
| <install> |
| # Step 1: Create source kafka topic named "${site}_example_source_topic" |
| |
| ./bin/kafka-topics.sh --create --topic example_source_topic --replication-factor 1 --replication 1 |
| |
| # Step 2: Set up data collector to flow data into kafka topic in |
| |
| ./bin/logstash -f log_collector.conf |
| |
| ## `log_collector.conf` sample as following: |
| |
| input { |
| |
| } |
| filter { |
| |
| } |
| output{ |
| |
| } |
| |
| # Step 3: start application |
| |
| # Step 4: monitor with featured portal or alert with policies |
| </install> |
| <uninstall> |
| # Step 1: stop and uninstall application |
| # Step 2: delete kafka topic named "${site}_example_source_topic" |
| # Step 3: stop logstash |
| </uninstall> |
| </docs> |
| </application> |