Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/e2e-v2/cases/kafka/kafka-monitoring/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ setup:
verify:
retry:
count: 20
interval: 3s
interval: 10s
cases:
- includes:
- ./kafka-cases.yaml
1 change: 1 addition & 0 deletions test/e2e-v2/cases/mqe/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ services:
service: oap
volumes:
- ./oal/core.oal:/skywalking/config/oal/core.oal
- ./oal/disable.oal:/skywalking/config/oal/disable.oal
environment:
SW_API_PIPELINE_BASELINE_SERVICE_HOST: baseline-server
depends_on:
Expand Down
19 changes: 19 additions & 0 deletions test/e2e-v2/cases/mqe/expected/disable-metrics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 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.

type: UNKNOWN
results: []
error: 'Metric: [endpoint_cpm] does not exist.'
debuggingtrace: null
4 changes: 4 additions & 0 deletions test/e2e-v2/cases/mqe/mqe-cases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,7 @@ cases:
expected: expected/baseline-OP.yml
- query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql metrics exec --expression="baseline(service_percentile{p='95,99'},upper)" --service-name=e2e-service-provider
expected: expected/baseline-label-OP.yml

# disable metrics
- query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql metrics exec --expression=endpoint_cpm --endpoint-name=POST:/users --service-name=e2e-service-provider
expected: expected/disable-metrics.yml
24 changes: 24 additions & 0 deletions test/e2e-v2/cases/mqe/oal/disable.oal
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* 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(endpoint_cpm);
Loading