未验证 提交 95e912be 编写于 作者: wu-sheng's avatar wu-sheng 提交者: GitHub

Merge branch 'master' into docker/agent

...@@ -70,8 +70,9 @@ Release Notes. ...@@ -70,8 +70,9 @@ Release Notes.
* Add function `retagByK8sMeta` and opt type `K8sRetagType.Pod2Service` in MAL for k8s to relate pods and services. * Add function `retagByK8sMeta` and opt type `K8sRetagType.Pod2Service` in MAL for k8s to relate pods and services.
* Make the flushing metrics operation concurrent. * Make the flushing metrics operation concurrent.
* Fix ALS K8SServiceRegistry didn't remove the correct entry. * Fix ALS K8SServiceRegistry didn't remove the correct entry.
* Using "service.istio.io/canonical-name" to replace "app" label to resolve Envoy ALS service name * Using "service.istio.io/canonical-name" to replace "app" label to resolve Envoy ALS service name.
* Append the root slash(/) to getIndex and getTemplate requests in ES client * Append the root slash(/) to getIndex and getTemplate requests in ES client.
* Fix `disable` statement not working. This bug exists since 8.0.0.
#### UI #### UI
* Update selector scroller to show in all pages. * Update selector scroller to show in all pages.
......
...@@ -101,6 +101,8 @@ Some of the aggregation and metrics are defined through core hard codes. Example ...@@ -101,6 +101,8 @@ Some of the aggregation and metrics are defined through core hard codes. Example
This `disable` statement is designed to render them inactive. This `disable` statement is designed to render them inactive.
By default, none of them are disabled. By default, none of them are disabled.
**NOTICE**, all disable statements should be in `oal/disable.oal` script file.
## Examples ## Examples
``` ```
// Calculate p99 of both Endpoint1 and Endpoint2 // Calculate p99 of both Endpoint1 and Endpoint2
......
...@@ -68,14 +68,3 @@ database_access_resp_time = from(DatabaseAccess.latency).longAvg(); ...@@ -68,14 +68,3 @@ database_access_resp_time = from(DatabaseAccess.latency).longAvg();
database_access_sla = from(DatabaseAccess.*).percent(status == true); database_access_sla = from(DatabaseAccess.*).percent(status == true);
database_access_cpm = from(DatabaseAccess.*).cpm(); database_access_cpm = from(DatabaseAccess.*).cpm();
database_access_percentile = from(DatabaseAccess.latency).percentile(10); database_access_percentile = from(DatabaseAccess.latency).percentile(10);
// Disable unnecessary hard core stream, targeting @Stream#name
/////////
// disable(segment);
// disable(endpoint_relation_server_side);
// disable(top_n_database_statement);
// disable(zipkin_span);
// disable(jaeger_span);
// disable(profile_task);
// disable(profile_task_log);
// disable(profile_task_segment_snapshot);
/*
* 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.
*
*/
///////////////////////////////////////////////////////////////
//
// Disable unnecessary hard core stream, targeting @Stream#name
//
///////////////////////////////////////////////////////////////
// disable(segment);
// disable(endpoint_relation_server_side);
// disable(top_n_database_statement);
// disable(zipkin_span);
// disable(jaeger_span);
// disable(profile_task);
// disable(profile_task_log);
// disable(profile_task_segment_snapshot);
\ No newline at end of file
...@@ -50,6 +50,7 @@ import org.apache.skywalking.oap.server.core.config.group.EndpointNameGrouping; ...@@ -50,6 +50,7 @@ import org.apache.skywalking.oap.server.core.config.group.EndpointNameGrouping;
import org.apache.skywalking.oap.server.core.config.group.EndpointNameGroupingRuleWatcher; import org.apache.skywalking.oap.server.core.config.group.EndpointNameGroupingRuleWatcher;
import org.apache.skywalking.oap.server.core.management.ui.template.UITemplateInitializer; import org.apache.skywalking.oap.server.core.management.ui.template.UITemplateInitializer;
import org.apache.skywalking.oap.server.core.management.ui.template.UITemplateManagementService; import org.apache.skywalking.oap.server.core.management.ui.template.UITemplateManagementService;
import org.apache.skywalking.oap.server.core.oal.rt.DisableOALDefine;
import org.apache.skywalking.oap.server.core.oal.rt.OALEngineLoaderService; import org.apache.skywalking.oap.server.core.oal.rt.OALEngineLoaderService;
import org.apache.skywalking.oap.server.core.profile.ProfileTaskMutationService; import org.apache.skywalking.oap.server.core.profile.ProfileTaskMutationService;
import org.apache.skywalking.oap.server.core.query.AggregationQueryService; import org.apache.skywalking.oap.server.core.query.AggregationQueryService;
...@@ -118,6 +119,7 @@ public class CoreModuleProvider extends ModuleProvider { ...@@ -118,6 +119,7 @@ public class CoreModuleProvider extends ModuleProvider {
private final SourceReceiverImpl receiver; private final SourceReceiverImpl receiver;
private ApdexThresholdConfig apdexThresholdConfig; private ApdexThresholdConfig apdexThresholdConfig;
private EndpointNameGroupingRuleWatcher endpointNameGroupingRuleWatcher; private EndpointNameGroupingRuleWatcher endpointNameGroupingRuleWatcher;
private OALEngineLoaderService oalEngineLoaderService;
public CoreModuleProvider() { public CoreModuleProvider() {
super(); super();
...@@ -161,8 +163,6 @@ public class CoreModuleProvider extends ModuleProvider { ...@@ -161,8 +163,6 @@ public class CoreModuleProvider extends ModuleProvider {
throw new ModuleStartException(e.getMessage(), e); throw new ModuleStartException(e.getMessage(), e);
} }
StreamAnnotationListener streamAnnotationListener = new StreamAnnotationListener(getManager());
AnnotationScan scopeScan = new AnnotationScan(); AnnotationScan scopeScan = new AnnotationScan();
scopeScan.registerListener(new DefaultScopeDefine.Listener()); scopeScan.registerListener(new DefaultScopeDefine.Listener());
try { try {
...@@ -264,9 +264,10 @@ public class CoreModuleProvider extends ModuleProvider { ...@@ -264,9 +264,10 @@ public class CoreModuleProvider extends ModuleProvider {
this.registerServiceImplementation(CommandService.class, new CommandService(getManager())); this.registerServiceImplementation(CommandService.class, new CommandService(getManager()));
// add oal engine loader service implementations // add oal engine loader service implementations
this.registerServiceImplementation(OALEngineLoaderService.class, new OALEngineLoaderService(getManager())); oalEngineLoaderService = new OALEngineLoaderService(getManager());
this.registerServiceImplementation(OALEngineLoaderService.class, oalEngineLoaderService);
annotationScan.registerListener(streamAnnotationListener); annotationScan.registerListener(new StreamAnnotationListener(getManager()));
if (moduleConfig.isGRPCSslEnabled()) { if (moduleConfig.isGRPCSslEnabled()) {
this.remoteClientManager = new RemoteClientManager(getManager(), moduleConfig.getRemoteTimeout(), this.remoteClientManager = new RemoteClientManager(getManager(), moduleConfig.getRemoteTimeout(),
...@@ -293,6 +294,9 @@ public class CoreModuleProvider extends ModuleProvider { ...@@ -293,6 +294,9 @@ public class CoreModuleProvider extends ModuleProvider {
grpcServer.addHandler(new HealthCheckServiceHandler()); grpcServer.addHandler(new HealthCheckServiceHandler());
remoteClientManager.start(); remoteClientManager.start();
// Disable OAL script has higher priority
oalEngineLoaderService.load(DisableOALDefine.INSTANCE);
try { try {
receiver.scan(); receiver.scan();
annotationScan.scan(); annotationScan.scan();
......
/*
* 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.core.oal.rt;
public class DisableOALDefine extends OALDefine {
public static final DisableOALDefine INSTANCE = new DisableOALDefine();
private DisableOALDefine() {
super(
"oal/disable.oal",
"org.apache.skywalking.oap.server.core.source"
);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册