|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one or more |
| 2 | +# contributor license agreements. See the NOTICE file distributed with |
| 3 | +# this work for additional information regarding copyright ownership. |
| 4 | +# The ASF licenses this file to You under the Apache License, Version 2.0 |
| 5 | +# (the "License"); you may not use this file except in compliance with |
| 6 | +# the License. You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | + |
| 16 | +script: oap-server/server-starter/src/main/resources/meter-analyzer-config/php-runtime.yaml |
| 17 | +input: |
| 18 | + instance_php_process_cpu_utilization: |
| 19 | + - labels: |
| 20 | + instance: test-instance |
| 21 | + value: 100.0 |
| 22 | + instance_php_memory_used_mb: |
| 23 | + - labels: |
| 24 | + instance: test-instance |
| 25 | + value: 256.0 |
| 26 | + instance_php_memory_peak_mb: |
| 27 | + - labels: |
| 28 | + instance: test-instance |
| 29 | + value: 512.0 |
| 30 | + instance_php_virtual_memory_mb: |
| 31 | + - labels: |
| 32 | + instance: test-instance |
| 33 | + value: 1024.0 |
| 34 | + instance_php_thread_count: |
| 35 | + - labels: |
| 36 | + instance: test-instance |
| 37 | + value: 4.0 |
| 38 | + instance_php_open_fd_count: |
| 39 | + - labels: |
| 40 | + instance: test-instance |
| 41 | + value: 32.0 |
| 42 | +expected: |
| 43 | + meter_instance_php_process_cpu_utilization: |
| 44 | + entities: |
| 45 | + - scope: SERVICE_INSTANCE |
| 46 | + instance: test-instance |
| 47 | + layer: GENERAL |
| 48 | + samples: |
| 49 | + - labels: |
| 50 | + instance: test-instance |
| 51 | + value: 100.0 |
| 52 | + meter_instance_php_memory_used_mb: |
| 53 | + entities: |
| 54 | + - scope: SERVICE_INSTANCE |
| 55 | + instance: test-instance |
| 56 | + layer: GENERAL |
| 57 | + samples: |
| 58 | + - labels: |
| 59 | + instance: test-instance |
| 60 | + value: 256.0 |
| 61 | + meter_instance_php_memory_peak_mb: |
| 62 | + entities: |
| 63 | + - scope: SERVICE_INSTANCE |
| 64 | + instance: test-instance |
| 65 | + layer: GENERAL |
| 66 | + samples: |
| 67 | + - labels: |
| 68 | + instance: test-instance |
| 69 | + value: 512.0 |
| 70 | + meter_instance_php_virtual_memory_mb: |
| 71 | + entities: |
| 72 | + - scope: SERVICE_INSTANCE |
| 73 | + instance: test-instance |
| 74 | + layer: GENERAL |
| 75 | + samples: |
| 76 | + - labels: |
| 77 | + instance: test-instance |
| 78 | + value: 1024.0 |
| 79 | + meter_instance_php_thread_count: |
| 80 | + entities: |
| 81 | + - scope: SERVICE_INSTANCE |
| 82 | + instance: test-instance |
| 83 | + layer: GENERAL |
| 84 | + samples: |
| 85 | + - labels: |
| 86 | + instance: test-instance |
| 87 | + value: 4.0 |
| 88 | + meter_instance_php_open_fd_count: |
| 89 | + entities: |
| 90 | + - scope: SERVICE_INSTANCE |
| 91 | + instance: test-instance |
| 92 | + layer: GENERAL |
| 93 | + samples: |
| 94 | + - labels: |
| 95 | + instance: test-instance |
| 96 | + value: 32.0 |
0 commit comments