Skip to content

Commit

Permalink
Create istio receiver module
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-sheng committed Aug 9, 2018
1 parent 39abdb6 commit 6ee67e6
Show file tree
Hide file tree
Showing 21 changed files with 905 additions and 1 deletion.
3 changes: 3 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,6 @@
licenses.

iconfont(from antd): https://github.com/ant-design/antd-init/tree/master/examples/local-iconfont MIT
proto files from istio/istio: https://github.com/istio/istio Apache 2.0
proto files from istio/api: https://github.com/istio/api Apache 2.0
proto files from gogo/protobuf: https://github.com/gogo/protobuf BSD-3
19 changes: 18 additions & 1 deletion NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,21 @@ This product bundles icons/fonts in skywalking-ui/public/font/iconfont folder
from the ant-design project,
https://github.com/ant-design/antd-init/tree/master/examples/local-iconfont
Licensed under the MIT license, confirmed by ant-design team member.
https://github.com/ant-design/ant-design/issues/10243
https://github.com/ant-design/ant-design/issues/10243

This product bundles the following proto files
1. apm-protocol/apm-network/src/main/proto/service-mesh-probe/istio-metric.proto
2. apm-protocol/apm-network/src/main/proto/policy/v1beta1/type.proto
3. apm-protocol/apm-network/src/main/proto/policy/v1beta1/value_type.proto
4. apm-protocol/apm-network/src/main/proto/mixer/adapter/model/v1beta1/extensions.proto
5. apm-protocol/apm-network/src/main/proto/mixer/adapter/model/v1beta1/report.proto
from the istio projects,
https://github.com/istio/istio
https://github.com/istio/api
Licensed under the Apache 2.0 license.

This product bundles the following proto file
1. apm-protocol/apm-network/src/main/proto/gogoproto/gogo.proto
from the gogo/protobuf project,
https://github.com/gogo/protobuf
Licensed under the BSD-3-Clause license.
3 changes: 3 additions & 0 deletions apm-dist/release-docs/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ The text of each license is the standard Apache 2.0 license.
zipkin 2.9.1: https://github.com/openzipkin/zipkin, Apache 2.0
sharding-jdbc-core 2.0.3: https://github.com/sharding-sphere/sharding-sphere, Apache 2.0
kubernetes-client 2.0.0: https://github.com/kubernetes-client/java, Apache 2.0
proto files from istio/istio: https://github.com/istio/istio Apache 2.0
proto files from istio/api: https://github.com/istio/api Apache 2.0

========================================================================
MIT licenses
Expand Down Expand Up @@ -329,6 +331,7 @@ The text of each license is also included at licenses/LICENSE-[project].txt.
Google: protobuf-java 3.4.0: https://github.com/google/protobuf/blob/master/java/pom.xml , BSD-3-Clause
Google: protobuf-java-util 3.4.0: https://github.com/google/protobuf/blob/master/java/pom.xml , BSD-3-Clause
reflectasm 1.11.3: https://github.com/EsotericSoftware/reflectasm , BSD-3-Clause
gogo-protobuf, proto files: https://github.com/gogo/protobuf BSD-3-Clause

========================================================================
MPL 2.0 licenses
Expand Down
17 changes: 17 additions & 0 deletions apm-dist/release-docs/NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,23 @@ https://github.com/ant-design/antd-init/tree/master/examples/local-iconfont
Licensed under the MIT license, confirmed by ant-design team member.
https://github.com/ant-design/ant-design/issues/10243

This product bundles the following proto files
1. apm-protocol/apm-network/src/main/proto/service-mesh-probe/istio-metric.proto
2. apm-protocol/apm-network/src/main/proto/policy/v1beta1/type.proto
3. apm-protocol/apm-network/src/main/proto/policy/v1beta1/value_type.proto
4. apm-protocol/apm-network/src/main/proto/mixer/adapter/model/v1beta1/extensions.proto
5. apm-protocol/apm-network/src/main/proto/mixer/adapter/model/v1beta1/report.proto
from the istio projects,
https://github.com/istio/istio
https://github.com/istio/api
Licensed under the Apache 2.0 license.

This product bundles the following proto file
1. apm-protocol/apm-network/src/main/proto/gogoproto/gogo.proto
from the gogo/protobuf project,
https://github.com/gogo/protobuf
Licensed under the BSD-3-Clause license.

========================================================================

grpc-java NOTICE
Expand Down
36 changes: 36 additions & 0 deletions apm-dist/release-docs/licenses/LICENSE-gogo-protobuf.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Protocol Buffers for Go with Gadgets

Copyright (c) 2013, The GoGo Authors. All rights reserved.
http://github.com/gogo/protobuf

Go support for Protocol Buffers - Google's data interchange format

Copyright 2010 The Go Authors. All rights reserved.
https://github.com/golang/protobuf

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

1 change: 1 addition & 0 deletions oap-server/server-receiver-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<module>skywalking-trace-receiver-plugin</module>
<module>zipkin-receiver-plugin</module>
<module>skywalking-mesh-receiver-plugin</module>
<module>skywalking-istio-telemetry-receiver-plugin</module>
</modules>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?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.
~
-->

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>skywalking-istio-telemetry-receiver-plugin</artifactId>
<groupId>org.apache.skywalking</groupId>
<version>6.0.0-alpha-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>istio-telemetry-receiver-module</artifactId>


</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* 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.
*
*/

package org.apache.skywalking.oap.server.receiver.istio.telemetry.module;

import org.apache.skywalking.oap.server.library.module.ModuleDefine;

public class IstioTelemetryReceiverModule extends ModuleDefine {
public static final String NAME = "istio-telemetry";

@Override public String name() {
return NAME;
}

@Override public Class[] services() {
return new Class[0];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# 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.
#
#


org.apache.skywalking.oap.server.receiver.istio.telemetry.module.IstioTelemetryReceiverModule
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?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.
~
-->

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>skywalking-istio-telemetry-receiver-plugin</artifactId>
<groupId>org.apache.skywalking</groupId>
<version>6.0.0-alpha-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>istio-telemetry-receiver-provider</artifactId>
<dependencies>
<dependency>
<groupId>org.apache.skywalking</groupId>
<artifactId>istio-telemetry-receiver-module</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.skywalking</groupId>
<artifactId>server-core</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>


</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*
* 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.
*
*/

package org.apache.skywalking.oap.server.receiver.istio.telemetry.provider;

import org.apache.skywalking.oap.server.core.CoreModule;
import org.apache.skywalking.oap.server.library.module.ModuleConfig;
import org.apache.skywalking.oap.server.library.module.ModuleDefine;
import org.apache.skywalking.oap.server.library.module.ModuleProvider;
import org.apache.skywalking.oap.server.library.module.ModuleStartException;
import org.apache.skywalking.oap.server.library.module.ServiceNotProvidedException;
import org.apache.skywalking.oap.server.receiver.istio.telemetry.module.IstioTelemetryReceiverModule;

public class IstioTelemetryReceiverProvider extends ModuleProvider {
@Override public String name() {
return "default";
}

@Override public Class<? extends ModuleDefine> module() {
return IstioTelemetryReceiverModule.class;
}

@Override public ModuleConfig createConfigBeanIfAbsent() {
return null;
}

@Override public void prepare() throws ServiceNotProvidedException, ModuleStartException {
}

@Override public void start() throws ServiceNotProvidedException, ModuleStartException {
}

@Override public void notifyAfterCompleted() throws ServiceNotProvidedException, ModuleStartException {

}

@Override public String[] requiredModules() {
return new String[] {CoreModule.NAME};
}
}
Loading

0 comments on commit 6ee67e6

Please sign in to comment.