miroslavmasaryk | aa5f0fa | 2023-03-20 10:21:36 +0100 | [diff] [blame] | 1 | {{/* |
| 2 | # Copyright (c) 2023 Deutsche Telekom |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # 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 | lowercaseOutputName: true |
| 17 | rules: |
| 18 | # replicated Zookeeper |
| 19 | - pattern: "org.apache.ZooKeeperService<name0=ReplicatedServer_id(\\d+)><>(\\w+)" |
| 20 | name: "zookeeper_$2" |
| 21 | type: GAUGE |
| 22 | - pattern: "org.apache.ZooKeeperService<name0=ReplicatedServer_id(\\d+), name1=replica.(\\d+)><>(\\w+)" |
| 23 | name: "zookeeper_$3" |
| 24 | type: GAUGE |
| 25 | labels: |
| 26 | replicaId: "$2" |
| 27 | - pattern: "org.apache.ZooKeeperService<name0=ReplicatedServer_id(\\d+), name1=replica.(\\d+), name2=(\\w+)><>(Packets\\w+)" |
| 28 | name: "zookeeper_$4" |
| 29 | type: COUNTER |
| 30 | labels: |
| 31 | replicaId: "$2" |
| 32 | memberType: "$3" |
| 33 | - pattern: "org.apache.ZooKeeperService<name0=ReplicatedServer_id(\\d+), name1=replica.(\\d+), name2=(\\w+)><>(\\w+)" |
| 34 | name: "zookeeper_$4" |
| 35 | type: GAUGE |
| 36 | labels: |
| 37 | replicaId: "$2" |
| 38 | memberType: "$3" |
| 39 | - pattern: "org.apache.ZooKeeperService<name0=ReplicatedServer_id(\\d+), name1=replica.(\\d+), name2=(\\w+), name3=(\\w+)><>(\\w+)" |
| 40 | name: "zookeeper_$4_$5" |
| 41 | type: GAUGE |
| 42 | labels: |
| 43 | replicaId: "$2" |
| 44 | memberType: "$3" |